Documenting Guide

Write only useful task guides for AetherBlend users and practical setup or quickstart pages for contributors. Put user workflows in Guides, feature reference pages in Wiki, and contributor workflows or conventions in Development.

The site is built from Markdown in docs/src/; docs/build.py generates the HTML served from docs/. The generated pages are committed, so rebuild after editing Markdown.

Setup#

Use the virtual environment from Development Guide. Its setup command already installs the two packages the build needs. If you set up the environment another way, install them:

python -m pip install markdown pygments

Run these commands from the repository root in a terminal with .venv activated. In VS Code, select .venv with Python: Select Interpreter, then open a new terminal so automatic environment activation can take effect.

Choose and Edit a Page#

First update an existing guide if it covers the workflow. Add a page only for a distinct user task, feature reference, or contributor workflow. Keep navigable sources in guides/, wiki/, or development/; Home.md is the landing page. Every Markdown source with a group frontmatter value appears in navigation, so use only Guides, Wiki, or Development.

---
title: My Page
group: Development
order: 220
sub: true
summary: One line shown on the landing page card.
---
# My Page

Content here.
Key Meaning
title Name in the navigation. Defaults to the file name
group Navigation section, for example Guides or Development
order Sort position. Lower comes first
sub true shows the page indented under the previous one
summary Short text for the landing page card
aliases Comma-separated names that resolve source links to this page; they do not create HTML redirects
  • File names must be unique across all folders. The output is flat, so Style-Guide.md becomes style-guide.html.
  • Link to other pages by file name without extension, like [Style Guide](Style-Guide). The build turns it into the right HTML link.
  • Code blocks with a language (```python) are syntax highlighted.
  • Code blocks wrap on narrow screens and have a Copy button; keep examples focused and ensure they copy as intended.
  • A user guide should state prerequisites, give short numbered steps and say what success looks like. A development page should help a contributor finish one practical setup or workflow.
  • Keep pages concise and low-maintenance.

Author Variables#

Use double braces in Markdown or HTML, for example {{blender_min}} or [Download AetherBlend]({{latest_release_zip}}). The build replaces these values in page content, including Home.md, which supplies the landing-page text. The home page also owns its layout using HTML and Markdown sections; its <!-- documentation-cards --> marker inserts the navigation cards automatically.

Variable Value
{{blender_min}} Minimum Blender version from the add-on manifest (major.minor)
{{ab_version}} AetherBlend version from the add-on manifest
{{ab_github}} AetherBlend GitHub project URL
{{latest_release_repo}} AetherBlend drag-and-drop install URL
{{latest_release_zip}} AetherBlend plain ZIP download URL
{{meddle_version}} Meddle Tools release version
{{meddle_github}} Meddle Tools GitHub project URL
{{meddle_latest_repo}} Meddle Tools drag-and-drop install URL
{{meddle_latest_zip}} Meddle Tools plain ZIP download URL
{{ffgear_version}} FFGear release version
{{ffgear_github}} FFGear GitHub project URL
{{ffgear_latest_repo}} FFGear drag-and-drop install URL
{{ffgear_latest_zip}} FFGear plain ZIP download URL

Release values come from the shared Blender repository's newest release compatible with AetherBlend's minimum Blender version, not an independent GitHub "latest" lookup. *_repo links add the repository and Blender-version parameters to the ZIP URL; they are not repository JSON URLs. meddle_* means the Meddle Tools Blender add-on, not the Meddle game plugin.

To show placeholder syntax literally, prefix each opening brace with a backslash. Visual code wrapping does not change copied snippet text.

Build the Site#

From the repository root:

python docs/build.py

The builder reads version and minimum Blender facts from blender_manifest.toml, renders Markdown to HTML and fetches the master repo.json for release metadata. If release metadata is unavailable or invalid, the build stops with an error before rewriting generated pages.

Preview in VS Code#

The pages use relative links, so serve the docs folder with a small local web server:

  1. Open a terminal in VS Code with .venv activated and run from the repository root:

sh python -m http.server 8000 --directory docs

  1. Open the Command Palette (Ctrl+Shift+P), run Simple Browser: Show and enter http://localhost:8000.
  2. Edit Markdown, run the build again and refresh the preview (the server keeps running).
  3. Stop the server with Ctrl+C when you are done.

You can also open docs/index.html directly in a normal browser, but a server matches how GitHub Pages serves the site.

Before You Finish#

  • Rebuild so generated HTML matches the Markdown.
  • Preview the changed page and check its navigation and local links.
  • Include the Markdown source and generated HTML in the change.