Ainex Wiki Contribution Guide
Prerequisites
Prerequisites
For testing
You'll need MkDocs installed locally via Python to test your changes.
- Python 3.7+
-
Ensure Python gets added to your PATH
-
MkDocs, and mkdocs-material:
- Run
python -m pip install mkdocs mkdocs-material
in your command prompt
Instructions
Instructions
If this is your first time contributing, be sure to read this entire section before you begin.
-
Clone the repo and open it in your favorite editor.
-
If your editor creates editor-specific files, add them to the
.gitignore
file. -
Write your article using Markdown. The many features of Markdown extensions can be found in the links below. If you'd like to use a Markdown extension not listed in mkdocs.yml, you may add them to the list. You should ensure compatibility with other articles (so their layout does not accidentally change) before your changes are merged.
-
Test and spell-check your article before it is merged.
-
Submit a pull request to the wiki repo
Testing
Testing
To serve your copy of the website for testing:
-
Run
python -m mkdocs serve
in your command prompt -
Open
127.0.0.1:8000
in your browser (be sure not to includehttp(s)://
this will cause errors in the browser) -
If you get any errors, read them carefully. The most common errors are broken links. You may have typed them wrong.
- Keep in mind that
/
resolves to thedocs
folder. So, this page for example would be located at/meta/contributing
- Embedded images must have extensions.
Links to documents on this Wiki must have extensions.
Articles on the wiki are do not need
.md
extensions (except inmkdocs.yml
).
Guidelines
- Never attach files or links to content that is private to another party.
This includes leaked documentation (such as the XDK), piracy websites and other pirated content. - If you attach a link to code on GitHub in your article, make sure to get the permalink.
Attaching links to branches (such as master/main) leads to dead or incorrect links down the road!
Tips
Stumped on how to do something? These resources might help!
- MkDocs Material Setup Explains the setup of MkDocs Material sites, such as fonts, colors, and navigation.
- MkDocs Material Reference
Includes details about the features of MkDocs Material, the theme used by Ainex Wiki. Want to know how to use features like emoji, tables, buttons, and diagrams? It's all in there.
Tools
- Ainex - You'll probably need it!
- Lightshot - An easy screenshot program for Windows and Mac
Has a few more features than Snipping Tool, including automatic upload and a dedicated screenshot hotkey.- In Windows 10 version 1803, build 17661 and higher, there is now a built-in shortcut feature
that works like Lightshot.
To use it, just press Win+Shift+S.
- In Windows 10 version 1803, build 17661 and higher, there is now a built-in shortcut feature
that works like Lightshot.
- Spectacle - A good alternative to Lightshot, on Linux. Included in some KDE distributions. By default, the shortcut is simply Print Screen.
Suggestions
Config Options are often added updated, and could always use documentation.
Additional languages can be supported. Although Ainex itself does not yet support multiple languages, the wiki can! If you would like to translate the wiki to your language, start here!