Wire documentation is hosted on https://docs.wire.com. This project is made using Mkdocs.
-
src
- It contains the files and directories for actual source of the documentation. The
src
directory has been processed based on docs. The earlier version was based on Sphinx, so it was converted to markdown and then ported for GitBook. Find the process for doing inbuild/old-docs.md
.
- It contains the files and directories for actual source of the documentation. The
-
build
- It contains scripts used by Makefile to support different types of builds.
-
Make
-
Nix
-
Docker (optional)
-
make run
- This target serves the documentation site locally using Mike (Mkdocs). It allows you to preview the documentation as it will appear when hosted
for all the tags
. It will be hosted on0.0.0.0:8000
- This target serves the documentation site locally using Mike (Mkdocs). It allows you to preview the documentation as it will appear when hosted
-
make build
- This target builds the processed gh-pages branch and site directory for the documentation. The output is generated in the main directory as
wire-docs.tar.gz
.
- This target builds the processed gh-pages branch and site directory for the documentation. The output is generated in the main directory as
-
make run
- This target runs the documentation site locally using Mike (Mkdocs) as we do in
make run
but only for thecurrent
branch. The current changes will be visible under versioncurrent
. It will be hosted on0.0.0.0:8000
- This target runs the documentation site locally using Mike (Mkdocs) as we do in
-
main docker
- This target builds a Docker image for the documentation site. It uses the Dockerfile present in the repository to create an image. It processes the tags present in the
online
repo. To run and test the image locally, we recommend the following command:docker run -d p 8000:8000 --health-cmd="curl --fail http://localhost:8000 || exit 1" --health-interval=30s --health-retries=3 --health-timeout=5s wire-docs
- This target builds a Docker image for the documentation site. It uses the Dockerfile present in the repository to create an image. It processes the tags present in the
-
make clean
- This target cleans up the generated tarball files and directories from the build process.
-