GitHub - Free60Project/wiki: Archive of free60.org mediawiki

Build and Deploy pages-build-deployment

Free60 MediaWiki archive.

Python framework mkdocs is used to render the Markdown documentation.

Contribute

Contributions are very welcome. Here's how you can help:

  • Add / correct / expand technical information
  • Improve documentation style
  • Correct spelling / grammar
  • Fix links

Workflow

  1. Fork this repo
  2. Make changes
  3. Verify your changes are formatted properly
  4. Send a Pull Request

Step by step instructions

NOTE: The following instructions are targeted towards Unix OS' - needed steps on windows may vary.

NOTE 2: You need python3 and python3-venv installed. Please look at your OS' package manager to find the correct packages.

  1. At first: Fork the repository to your account!

  2. Clone the forked repository (change to your actual username)

# SSH
git clone git@github.com:<username>/wiki.git

or

# HTTPS
git clone https://github.com/<username>/wiki.git
  1. Navigate into wiki repository folder
  1. Choose one of the two deployment methods below.
pip install mkdocs mkdocs-material mkdocs-redirects
  1. At this point, load up the cloned repository in a text editor that has live-markdown preview function.
  1. Once you are happy and the added changes are looking proper, you are ready to submit your work.

Add modified files for commiting

git add docs/<edited_file>.md
git add docs/<edited_file_2>.md
...

Create a new commit

git commit

# Now in the upcoming editor, describe the changes you made.

Push the changes to your forked repository

  1. Send a Pull Request :)

Deployment / Usage of mkdocs

Native deployment

  1. Create & activate python virtual-environment (might need dependency python3-venv, see: https://docs.python.org/3/library/venv.html)
python3 -m venv venv
source venv/bin/activate
  1. Install mkdocs and dependencies
pip install -r requirements.txt
  1. Edit docs and verify with the following commands:

Serve the documentation (http://127.0.0.1:8000)

Build the documentation

Docker deployment

  1. Execute docker container:
  1. Navigate to http://127.0.0.1:8000
  2. Make your changes and verify the formatting / linking still checks out.