You can view your edits and deploy the TiBillet docs with several methods, listed here from the simplest one to the fiddliest one.
Requirements:
- gnu make (you probably have it)
- docker cli and docker-compose
- low level utilities: bash, sed (yeah you have them)
make init
to initiate your environment (done automatically if .env is absent)make start
andmake stop
to start and stop the container (and serve the node app) sometimes flimsy, use build instead if it fails too often, sorrymake en
ormake fr
to change the environment locale- combine the targets to restart in a different locale, ex
make fr start
- combine the targets to restart in a different locale, ex
make build
to rebuild your docker containersmake shell
to enter a bash shell in the containermake deploy
to deploy the docs to github pages (all locales)
Don't be in too much of a hurry! at first start, the container needs to build your documentation, it might take it around 30 seconds to show up, doesn't mean anything's wrong with it…
Requirements:
- docker cli and docker-compose
cp env_example .env
to init your environment- fill in your Git credentials and the target locale
docker compose up -d
anddocker compose down
to start and stop the container and serve the node app- to change the locale, edit the dot .env and do a new compose up
docker compose up -d --build
to rebuild the containersdocker exec -ti tibillet_docusaurus bash
to enter a shell in the containeryarn deploy
from inside the container to deploy to github pages
Requirements:
- node, yarn
yarn install
to install dependenciesyarn start --poll 1000 --locale xx
(where xx is either fr or en)yarn deploy
to deploy to github pages
This website is built using Docusaurus, a modern static website generator.