Skip to content

shawngiese/mydocs

Repository files navigation

DocBook solutions

Two documentation solutions are presented here. The first, uses AsciiDoc markup to create multiple text files that can be built into a book or website. The second is a collection of DocBook customizations that I have found useful. The folder structure is a possible method of organizing your files, customize it as needed.

Information about creating a free DocBook toolchain is available in the wiki of this project. The toolchain enables you to build documents from DocBook files. You can also use the software that comes with AsciiDoc or export your text from AsciiDoc to DocBook and then use your preferred DocBook tools to make the final document output.

Why use a markup langauge?

A markup language creates readable text files and avoids the complexity of learning DocBook XML tags. This enables you to use any text editor on any operating system to update and create documents. You can even use a web browser to edit the files if those files are stored on a server like GitHub.

What do I lose using a markup language?

Documents cannot be validated before you try to build a document and you do not have access to all of the DocBook tags. Both of these issues can be resolved to some extent. You can attempt building end documents at any time to check for errors. If you really need all of the structure offered by DocBook tags then you will need your authors trained in writing DocBook and they will typically need XML writing software. If you need to separate content for different output, you can do that with conditional markup in AsciiDoc. So, there are workarounds for these issues and I think that in many cases the use of markup text is easier to write in than XML.

Why use AsciiDoc?

There are many other markup languages that allow users to edit and format files but AsciiDoc allows you to link multiple text files (such as chapters or sections) together when you export, and export using the DocBook format. You can also export text to HTML slideshows, HTML websites and documents in ePub and PDF formats. Using the DocBook files enables automatic indexes, table of contents, and exporting to custom PDFs and webhelp depending on your DocBook tools. AsciiDoc is free so any user can build final documents.

Where’s the power?

With AsciiDoc files stored in a server solution like GitHub, multiple users can work with documents online, edit documents using their preferred text editor or easily submit change requests. Combine this with a continuous integration server like Jenkins, and you can script daily builds of the final document and immediate builds of a changed file to verify formatting and document structure. Using scripts to build the final document ensures that all documents have a consistent look and contain any necessary content like legal text or project introductions.

AsciiDoc can be downloaded from https://asciidoc.org/. Output samples at https://github.com/shawngiese/mydocs/tree/master/book1/output.

About

Using markup to write books

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published