-
Create an API token in GitHub
-
Use the
GITHUB_TOKEN=xxx make
command, wherexxx
is the token retrieved in the previous step. -
You can use
make clean
to get rid of the generated website.
The generator is implemented in Python.
The project uses [Poetry] to manage the Python virtual environment.
The project sources environment variables from file .env
if it exists.
Simply run make hub
to generate a local copy of the site in ./build/component-hub/_public
You can run the individual generation steps in isolation:
-
poetry run component-hub generate antora-site
generates the Antora site from the VSHN Antora Cookiecutter template. -
poetry run component-hub generate index
generatesdocs/modules/ROOT/pages/index.adoc
for the component hub. -
poetry run component-hub generate nav
generatesdocs/modules/ROOT/nav.adoc
for the component hub. -
poetry run component-hub generate playbook
generatesplaybook.yml
for the component hub.
The Makefile
provides targets for Python linting and testing.
make lint
make test
The lint and test targets expect that the Poetry environment is already initialized.
The tests require a Github token in environment variable GITHUB_TOKEN.
The tests source environment variables from file `.env
if it exists.