Documentation website for MobiFlight, written in Hugo with the Hextra theme. This documentation is deployed using CloudFlare Pages to the MobiFlight documentation site. See the deployment guide for information on how to deploy.
The documentation is set up for editing using Visual Studio Code dev containers:
-
Install the Dev Containers extension
-
Run VSCode
-
Hit
CTRL-SHIFT-Pand typeclone repoto find the dev container command and select it:
-
Enter this repo's URL (https://github.com/neilenns/mobiflight-docs)
-
Wait for the dev container to build
To view the documentation press F5 and it will automatically build and open in Edge. To use Chrome instead select Launch Chrome in the run and debug tab.
- Filenames are in lowercase, spaces are replaced with hyphens (-).
- All Markdown files must pass markdownlint.
- Unordered lists use hyphens (-).
- Unordered lists have a period at the end of each sentence.
- Use GitHub alerts instead of Hextra callout shortcodes.
- Reference board and device images using cards (see the
boards/anddevices/pages for examples). - Reference UI elements that users should click or interact with in bold.
- Links to other documentation pages should be absolute, not relative.
- Headings are in sentence case.
- Table headers are in sentence case.
- Page descriptions are in sentence case and end in a period.
- Page titles are in sentence case and do not end in a period.
- Use
.pngformat for all screenshots. - Set width to 800px.
- Store in a
screenshotsfolder in the page bundle, or in thestatic/screenshotsfolder if the screenshot is used across multiple pages. - Reference using the
{{< screenshot >}}shortcode. - The shortcode must have a title specified, and the title must end in a period.
- Take screenshots using the Windows Snipping Tool in
Windowmode, notFreeformmode. - Take all screenshots against a white background.
- Highlight rectangles should be use a 6px red stroke and should be applied after screenshots are resized to 800px wide.
- When taking screenshots of the main window:
- Resize the window width so the right edge is next to the Exit button.
- Resize the window height so it is shorter. There's no specific size requirement, but make it look nice :)
- Ensure the .mcc file is called
Cessna 172 G1000 (MSFS2024)for consistency with other screenshots unless the tutorial is for a specific other aircraft. - Only show input and output configs that are directly relevant to the tutorial.
- When taking screenshots of a dialog, stretch the main MobiFlight window vertically to provide a clean white background behind the dialog.
- Use
.pngformat for all board and device images. - Set dimensions to 800x600.
- Store in the
assets/card-imagesfolder. - Reference using the
{{% card %}}shortcode, accessible using the VSCodeboardanddevicesnippets.
- Use
.svgformat for all pinout diagrams. - Process the files using svgomg with the default options plus
Prefer viewBox to width/heightenabled. - Store in the page bundle for the associated board and name the file
pinout.svg. - Reference using the
{{< pinout >}}shortcode, accessible using the VSCode snippetpinout.
- Use
.svgformat for all schematics. - Prefer net labels over global labels.
- Process the files using svgomg with the default options plus
Prefer viewBox to width/heightenabled. - Store in the page bundle for the associated board.
- Reference using the
{{< schematic >}}shortcode, accessible using the VSCode snippetschematic.