-
Create an API token in GitHub
-
Use the
GITHUB_TOKEN=xxx makecommand, wherexxxis the token retrieved in the previous step. -
You can use
make cleanto 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-sitegenerates the Antora site from the VSHN Antora Cookiecutter template. -
poetry run component-hub generate indexgeneratesdocs/modules/ROOT/pages/index.adocfor the component hub. -
poetry run component-hub generate navgeneratesdocs/modules/ROOT/nav.adocfor the component hub. -
poetry run component-hub generate playbookgeneratesplaybook.ymlfor the component hub.
The Makefile provides targets for Python linting and testing.
make lint
make testThe 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.