Starting an Antora project compatible with modular documentation
Starting an Antora project compatible with Modular Documentation.
-
Docker or Podman.
-
Create a repository by using the Antora for Modular Docs repository template and clone the repository to your local environment, or download the Antora for Modular Docs zip archive, and use the content of this archive to start a repository. The repository has user documentation and configuration files to:
-
Build the documentation with Antora
-
Validate internal and external links with
htmltest -
Validate language changes with Vale and the Red Hat style
-
Publish a preview
-
Edit and build the documentation on Eclipse Che hosted by Red Hat
-
Automate workflows and publish on GitHub
-
-
Edit at least the
titlefield inantora.yml. See What’s antora.yml? - Antora documentation. -
Edit at least the
title,url,edit_url,output.destination.pathfields inantora-playbook.yml.output.destination.pathmust match the <location> in theurl(https://<FQDN>/<location>). See Set up a playbook - Antora documentation. -
Edit the repository URL in the
supplemental-ui/partials/header-content.hbsfile and in theIgnoreURLslist in the.htmltest.ymlfile. -
Run the preview on a local environment and verify the output on the preview server: http://0.0.0.0:4000.
./tools/runnerpreview.sh
-
Create an initial commit containing the result and publish to your remote Git repository.
-
To publish the docs by using GitHub pages, enable GitHub Pages in the remote repository configuration: choose
gh-pagesas source branch, androotas source directory. -
To publish the build result for the pull requests, create a Surge token and set the
SURGE_TOKENenvironment variable in the remote Git repository secrets (Settings > Secrets > Actions).$ npx -y surge token
-
Run preview on a local environment
./tools/runnerpreview.sh
-
Navigate to the remote Git repository and watch for the changes in the Actions and Pages.