This wiki was created to substitute the old Github wiki. It uses mkdocs to build and serve the files. This repository contains the source needed to test, edit and compile the wiki.
The compiled wiki is hosted on our website, at http://07th-mod.com/wiki/ . The website will periodically update according to the changes made in this repository (it may be some time before the changes are seen - try refreshing your browser).
Note: there are some handy scripts for installation and running the server in the folder.
- Python 2.7 or 3.4 and above
- mkdocs
- mkdocs-material
- mkdocs-minify-plugin
Firstly, please clone this repository so you have all the files needed to edit the wiki.
You must install Python and pip (the python package manager) manually on your system.
- On Windows, download the Python installer from the Python website, which will install both
python
andpip
- On Linux, use your native package manager to install Python and pip (they are separate packages)
- On Mac, run
sudo easy_install pip
to install pip (assuming you're using Mac's built-in python distribution).
You must install mkdocs, a python tool which compiles the markdown files into the wiki. mkdocs comes with a built in server which gives you a live preview of your changes as you edit the markdown files. This makes editing easier and less error prone.
Inside the dev_scripts
folder of this repository, run the following scripts to install mkdocs automatically. You must already have Python and pip installed.
dev_scripts\install_mkdocs_and_plugins.bat
on Windowsdev_scripts\install_mkdocs_and_plugins
on Linux
If this does not work, you can follow the instructions below to install mkdocs manually.
Install mkdocs and its plugins as below:
- Install
mkdocs
withpip install mkdocs
- Install
mkdocs-material
withpip install mkdocs-material
- Install
mkdocs-minify-plugin
withpip install mkdocs-minify-plugin
- Install
pymdown-extensions
(might be already installed)
We recommend reading the mkdocs documentation before doing anything. Click here to a more in-depth explanation on how to use it.
cd
inside the repo (wheremkdocs.yml
is)- Run
mkdocs serve
to create a test environment athttp://127.0.0.1:8000/
. Since you will be doing this often, we have addedserve_website.bat
andserve_website
(a shell script) which runs this command. - If you are satisfied with your changes, push the changes to github.
- The server will automatically recompile the wiki and make it live at http://07th-mod.com/wiki/
- You may need to refresh the website in your browser to see the changes (just typing in the website may fetch a cached copy!)
- If you need a local-only HTML version of the website run
mkdocs build
to convert the repository into a working website
- Fork the repository
- Translate all the files and edit
mkdocs.yml
with your changes. - Do not send a pull request with translations! We recommend letting us know of your fork, we will build from the source and add it to our wiki.
The markdown extensions are configured in the mkdocs.yml
file.
Extensions starting with pymdownx
are part of the PyMdown Extensions
package. Click here
to see the full list of extensions. Note that each individual extension must
be enabled in the mkdcos.yml
file before it can be used.
The pymdownx.snippets extension is setup to serve the files in the snippets
folder.
You can use the following syntax to include a file called Cross-Platform-Installer.md
located in the snippets folder:
--8<-- "Cross-Platform-Installer.md"
If the file can't be found, the page won't be displayed and an error will be printed on the console.
dev_scripts
- handy dev scripts for installing and running mkdocsdocs
- this is the root folder of the wiki, but please note that themkdocs.yml
file IS used by mkdocs, even though it is outside thedocs
folder.mkdocs.yml
- contains the menu of the wiki, and tells mkdocs which plugins to use and other meta informationdocs\Higurashi
anddocs\Umineko
- files for the Higurashi and Umineko sections of the wikidocs\Snippets
- these contain snippets of markdown which are inserted into certain pages of the wiki (see below for more info)
Images are currently hosted on the 07th-mod website, and are manually uploaded to the server.