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

Add the command line used to create the HTML #5

Open
brentfraser opened this issue Mar 6, 2018 · 5 comments
Open

Add the command line used to create the HTML #5

brentfraser opened this issue Mar 6, 2018 · 5 comments

Comments

@brentfraser
Copy link
Contributor

What is the asciidoc command line used to produce the HTML version of the Reference Manual? We may want to include that as a file in this repo.

@moovida
Copy link
Member

moovida commented Mar 7, 2018

It is not exactly simple, but we can find the best way. It would indeed be good if someone could provide also the compiled update, that way it could be merged even while travelling.

The command I use is:

asciidoctor -r asciidoctor-diagram -r $ASCIIDOCTOR_FOLDER/asciidoctor-extensions-lab/lib/tree-block-macro.rb

with ASCIIDOCTOR_FOLDER being the folder I keep the installation in.

The installation requires some extension:

  • asciidoctor-diagram
  • tree-block-macro.rb

@brentfraser
Copy link
Contributor Author

brentfraser commented Mar 15, 2018

To those interested in contributing to the Geopaparazzi doc, AsciiDoc is the format of the .adoc files, but asciidoctor is used to convert the .adoc files to .html (and .pdf?). While you can simply use a text editor to edit the .adoc files, to see the results in html you need to run them through asciidoctor.

I installed and ran asciidoctor on Windows by:

  1. Install Ruby with the RubyInstaller (https://rubyinstaller.org/)

  2. From the Windows Start Menu:
    Ruby -> "Command prompt with Ruby"

  3. On the command line:
    gem install asciidoctor
    gem install asciidoctor-diagram
    asciidoctor --version

  4. On the command line change dir to your location of Geopaparazzi's userguide index.adoc and run asciidoctor:

    asciidoctor -r asciidoctor-diagram index.adoc

This will create index.html in the same directory.

@brentfraser
Copy link
Contributor Author

Oh, and also install coderay:

gem install coderay

@brentfraser
Copy link
Contributor Author

brentfraser commented Mar 15, 2018

The sections on "A small handbook for developers" (development.adoc) and the Appendix require additional s/w (plantUML/Graphviz) to render diagrams.

@brentfraser
Copy link
Contributor Author

brentfraser commented Aug 14, 2019

Rendering Folders in development.adoc:

To get the two folder blocks ("Contents of the Geopaparazzi git root folder", "Contents of plugins folder") in development.adoc to render properly, you need to:

For some reason it will render properly from the command line, but not in the AsciidocFX editor. And on Windows it shows the hidden files and folders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants