You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the Docker container that powers the creation of static documentation sites that are supported by TechDocs.
Getting Started
Using the TechDocs CLI, we can invoke the latest version of techdocs-container via Docker Hub:
npx @techdocs/cli serve
Local Development
docker build . -t mkdocs:local-dev
docker run -w /content -v $(pwd)/mock-docs:/content -p 8000:8000 -it mkdocs:local-dev serve -a 0.0.0.0:8000
Then open up https://localhost:8000 on your local machine.
Release
When you are ready to create a new release head over to releases and click on Draft a new release.
Use an incremental version number for the release e.g. v2.2.1 and use that as the tag version. Github will create a new tag if the tag doesn't exist. Fill out the rest of the fields and click Publish release.
Note: The latest tag on DockerHub points to the recent commits in the main branch. This is configured by the main workflow. We recommend using a specific version of the container instead of latest release for stability and avoiding unexpected changes.
Updating PlantUML
PlantUML is a Java based tool which is packaged in a single JAR file. You can find the latest released in their GitHub repo under Releases. When updating the Docker file with a new release of PlantUML you'll need to download the relevant JAR file first and then generate a checksum using sha1sum. Here are the steps:
Download the JAR file: curl -o plantuml.jar -L https://github.com/plantuml/plantuml/releases/download/v1.2024.6/plantuml-1.2024.6.jar
Generate the checksum: sha1sum plantuml.jar
Update the Dockerfile file with the proper release URL and checksum
About
Docker container that powers the generation of TechDocs static sites