Skip to content

PPUC/docs

Repository files navigation

PPUC website & documentation

This repo contains all the source code for ppuc.org, which also includes all user documentation.

Technical details

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.

To build / run locally

  1. Clone the repo
  2. Open a terminal window and cd into the root folder of this repo
  3. python3 -m venv venv
  4. source venv/bin/activate
  5. pip3 install -r requirements.txt (to install mkdocs and what it needs)
  6. mkdocs serve (runs a local web server on port 8000)

You should be able to access the doc site via your web browser at localhost:8000.

To start the server locally again later:

  1. source venv/bin/activate
  2. mkdocs serve

To contribute

We would love contributions to the docs! We have a Contributing Guide which explains how to contribute.

Configuring site navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •