Organized as Git Submodules
UI Customizations, Layout, Styles, frontend JS, search: ui-customizations/
Content, pages, navigation, antora.yml: content/
Folders content
and ui-customizations
are submodules of qenta-docs-content
and qenta-docs-ui-customizations
.
After changing content, UI or any other part inside the submodules directories, push the changes to the submodule(s) first.
Then push current repo to trigger a build.
Pushes to master
branch will be deployed publically to gh-pages
Pushes to any other branch shall be deployed to S3/branches/branch_name/
Highly recommended to use the Dockerfiles (ui and antora) via the Makefile for each step.
qenta-docs-main
rebase/merge from https://gitlab.com/antora/antora-ui-default.git
qenta-docs-ui-customizations
rebase/merge from https://github.com/Mogztter/antora-lunr.git
make ui.build
This creates build/ui-bundle.zip
containing the UI, see it referenced in antora-playbook.yml
Pay attention to output, linter is very strict and will not build the UI if you're sloppy.
make antora.build
Creates the web pages in build/site/
Contained in antora.dockerfile
make antora.run
NOTE: Console output says port 8080
but this is inside Docker, the forwarded port on localhost
is 8051
, see docker-compose.yml
antora-playbook.yml
Disable displaying a Page Edit button
url
can be a repository url or local folder. In our case it is both: a Git submodule
content:
edit_url: ~
sources:
- url: ./
branches: HEAD
start_paths:
- content/*
antora.yml
Navigation on the left of the page is controlled by content/online-guides/modules/ROOT/nav.adoc
It is a simple list of pages and their hierarchy.
To add search functionality antora-site-generator-lunr
is installed in the container.
See antora.dockerfile
for required ENV variables if you run antora without the provided Dockerfile/Makefile commands.