This is a simple configuration for creating documentation with Antora Docs.
It includes:
-
Dockerfile
-
Kroki (Plant UML and others)
-
Search
-
make install: Builds the Dockerfile. -
make build: Compiles Antora Docs. -
make sh: Opens the Container. -
make server: Starts a new server for the html version. (requires python3).
-
Change
CONTAINER_LABEL=local/antora:example-docs(in Makefile) to an unique name for your docs. -
Install the Container:
make install. -
(In another terminal) Open a localhost:
make server. -
Open Container:
make sh. -
Change settings in
antora-playbook.yml -
Add modules in
antora.yml -
Run Antora:
antora antora-playbook.yml --stacktrace. -
See results in
localhost:8000
If something does not work or not render well remember that antora needs a git repository.
-
git init: Creates a new git repo. -
git commit -am 'update docs': Creates a new commit, after this try to render the docs again.
|
Note
|
If you want to have |
Inside modules you can add a new module that will contain pages, examples and images.
Example let’s create a new users module.
modules/
users/
nav.adoc
pages/
users.adoc
roles.adoc
images/
image1.png
examples/
example.py
ROOT/
...-
pages: Will contain the adoc pages for the content.
-
images: Will contain images used inside the pages with
image::image1.png[]. -
examples: Will contain code examples and other resources for the content.
Created with ❤️ by Camilo Castro and contributors[1]. for Ninjas.cl[2].
This document is licensed with Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International[3]
Made with ♥ by Ninjas.cl .
See Also: Asciidoc Book Template