Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

documentation: remove docbook in favour of asciidoc #290

Merged
merged 1 commit into from
Nov 22, 2020

Conversation

ThomasAdam
Copy link
Member

@ThomasAdam ThomasAdam commented Nov 22, 2020

Many years ago, documentation in fvwm went from raw manpages to docbook format as a canonical source. The idea was that this horrific XML source could generate both manpages and HTML files.

This worked fine, however it meant that writing documentation became an horrendous chore -- the XML markup was verbose, unsightly and got in the way of actually documenting anything.

Although markup languages have an overhead, asciidoc seems like a good replacement for bringing back the documentation to as close to plain text as possible -- and can still generate the single-source files to other output formats beyond just man pages.

This commit does a few things:

  • Converts roff output to asciidoc (originally via Pandoc)
  • Removes docbook support
  • Hooks in asciidoc
  • Updates CI/CD

The asciidoc generator of choice is asciidoctor.

HTML generation of documentation has been removed. Hence, the option of --enable-htmldoc via ./configure no longer exists.

Although this commit should be several small ones, getting this to build incrementally is difficult.

@ThomasAdam ThomasAdam added this to the 1.0.2 milestone Nov 22, 2020
@ThomasAdam ThomasAdam self-assigned this Nov 22, 2020
@ThomasAdam ThomasAdam force-pushed the ta/man-to-asciidoc branch 2 times, most recently from 7dcecd3 to d627ad1 Compare November 22, 2020 03:24
@ThomasAdam ThomasAdam changed the title WIP: man-to-asciidoc documentation: remove docbook in favour of asciidoc Nov 22, 2020
@ThomasAdam ThomasAdam marked this pull request as ready for review November 22, 2020 03:29
Many years ago, documentation in fvwm went from raw manpages to docbook
format as a canonical source.  The idea was that this horrific XML
source could generate both manpages and HTML files.

This worked fine, however it meant that writing documentation became an
horrendous chore -- the XML markup was verbose, unsightly and got in the
way of actually documenting anything.

Although markup languages have an overhead, asciidoc seems like a good
replacement for bringing back the documentation to as close to plain
text as possible -- and can still generate the single-source files to
other output formats beyond just man pages.

This commit does a few things:

* Converts roff output to asciidoc (originally via Pandoc)
* Removes docbook support
* Hooks in asciidoc
* Updates CI/CD

The asciidoc generator of choice is `asciidoctor`.

HTML generation of documentation has been removed.  Hence, the option of
`--enable-htmldoc` via `./configure` no longer exists.

Although this commit should be several small ones, getting this to build
incrementally is difficult.
@ThomasAdam ThomasAdam merged commit a72eef5 into master Nov 22, 2020
@ThomasAdam ThomasAdam deleted the ta/man-to-asciidoc branch November 22, 2020 18:01
@ThomasAdam ThomasAdam added the type:breaking Issue is not backwards-compatible and will break configs/build label Dec 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:breaking Issue is not backwards-compatible and will break configs/build
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant