This repo contains all the source code for ppuc.org, which also includes all user documentation.
ppuc.org is assembled from two MkDocs projects into one output folder:
| URL | Source | Config |
|---|---|---|
ppuc.org/ |
Landing page: choose PPUC Docs or PPUC/DMD | website/mkdocs.yml |
ppuc.org/docs/ |
PPUC documentation | mkdocs.yml |
The landing page in website/ uses its own small theme (website/theme/); its page is a Markdown file in
website/pages/.
Old documentation URLs from before the move to /docs/ (e.g. ppuc.org/ppuc_dmd/) are forwarded by the
site-wide 404 page (website/theme/404.html).
The PPUC website is built using MkDocs, a static site generator using Markdown files as the source. It uses the Material for MkDocs theme.
The base of this documentation is copied from https://github.com/missionpinball/mpf-docs/ which has been released using the MIT license.
The site is hosted on GitHub Pages, and the main branch of this repo controls
what's published to the live site. A GitHub workflow is used to automatically
build and deploy the site whenever a commit or merge is made to the main branch.
You can see the commits and page builds in the Actions tab.
- Clone the repo
- Open a terminal window and
cdinto the root folder of this repo python3 -m venv venvsource venv/bin/activateor.\venv\Scripts\activatepip3 install -r requirements.txt(to install mkdocs and what it needs)python build.py --servebuilds the complete site intoout/, serves it on port 8000, and rebuilds and reloads the browser whenever you save a file
You should be able to access the site via your web browser at localhost:8000.
We would love contributions to the docs! We have a Contributing Guide which explains how to contribute.
All the navigation for the site is configured in the mkdocs.yml file. This
is somewhat annoying since it means that if you add a new page, you have to
go to a completely separate place to set up the nav.
I tried to use the auto pages plugin to automatically create the navigation, and/or at least keep it local to each subfolder, but unfortunately our navigation tree is different from our folder hierarchy which made that not possible. We may be able to combine both methods, and this is something someone could look into.