Writing Host Mobility product documentation
This document describes how to write and publish Host Mobility product documentation.
Get the source⚓︎
Clone the documentation repo and create a working branch.
Install tools⚓︎
Install MkDocs. Install it the first time after cloning. Use a virtual environment (pip install virtualenv):
Activate the virtual enviroment if you have done the previous step before.
Use the built-in server
If you have trouble withmkdocs serve
, edit /etc/hosts
Preview your changes.
Edit the documentation⚓︎
Edit the documentation using your preferred editor, e.g. vim docs/documentation-howto.md
or code docs/
.
Style guide⚓︎
- The MX-4 family contains the platforms T30, T30 FR, CT, CT GL, C61. Use this spelling and, to keep things short, skip the MX-4 prefix if possible.
- The other platforms are called MX-V and Host Monitor X (HMX). It is preferred to use the abbreviation HMX in this documentation.
- Titles and headings: Capitalize the first letter only, unless it contains a name such as Host Mobility.
- Use consistent spelling of standards such as RS-485. If in doubt, consult existing pages or Wikipedia.
- Do not line break paragraphs.
- Do not commit trailing whitespace.
Tags⚓︎
We use tags to group pages that are common to several platforms.
- Include all the tags that are valid for an article. For example, in the article "WiFi", add all the platforms that contain a WiFi chip (T30, T30 FR, etc. but not C61 and HMX).
- If an article is platform-specific, append the platform in parathesis, e.g. "Modem (HMX)".
Deploy the documentation⚓︎
The documentation is published on hostmobility.github.io/documentation. It shall appear identically as on the local server.