For general contribution workflow (branches, commits, PRs), see Contributing.

Where documentation lives

Docs are kept per product. Each product has its own docs/ folder next to its code and its own aegis-docs.json manifest:

ProductTypeLocal treeDoc Set
Aegis themethemewp-content/themes/aegis/docs/Aegis theme
Aegis Dashpluginwp-content/plugins/aegis-dash/docs/Aegis Dash
Aegis Proadd-onwp-content/plugins/aegis-pro/docs/Aegis Pro
Aegis Adsadd-onwp-content/plugins/aegis-ads/docs/Aegis Ads

The docs/ folders are local only. Each repository lists /docs/ in .gitignore, so documentation is never pushed to GitHub or packed into a release zip.

The Aegis Docs plugin imports each folder into the site as one Doc Set. The Markdown files are the source; the site shows what the import last read:

Copied!
Shell
wp aegis-docs import wp-content/themes/aegis/docs wp-content/plugins/aegis-dash/docs wp-content/plugins/aegis-pro/docs wp-content/plugins/aegis-ads/docs

Import related folders together so links between them resolve. Running the import again updates the existing docs, so edit the Markdown and re-import instead of editing imported pages.

How products are organised

Every product is a Doc Set under a brand set (Aegis). A product is one of four types, and a product can name the set it builds on. The manifest’s set block says so:

Copied!
XML
"set": { "name": "Aegis Pro", "slug": "pro", "type": "add-on", "extends": "aegis-dash", "order": 2, "parent": { "name": "Aegis", "slug": "aegis" }}
KeyMeaning
typetheme, child-theme, plugin or add-on. Shown as a badge on the Doc Set header.
extendsSlug of the Doc Set this product builds on, such as a child theme’s parent theme or an add-on’s base plugin. The header links to it, so the child’s docs only need to cover what differs.
aliasesEarlier slugs of a renamed product, so the import keeps its Doc Set and docs instead of creating a copy.
orderPosition among the products in the brand.

The manifest’s package id ties each page to its source file. Never change it after the first import.

To document a new theme, child theme or plugin, create its docs/ folder and manifest with its own slug and order, document only what belongs to that product, and link to the parent product’s docs for the rest.

The theme and its siblings link to each other with normal relative paths (for example ../../../../plugins/aegis-dash/docs/blocks/custom-blocks.md); the import turns them into links to the matching page.

Root files that are also documentation:

Screenshots go in the folder’s screenshots/ directory and are linked like any image: ![What the screenshot shows](../screenshots/name.png). On import, each PNG, JPG, GIF, WebP, or AVIF file a doc links to is uploaded to the Media Library once and reused on later imports.

Scope rules

Page anatomy

Each page is a Markdown file under docs/. Typical layout:

Copied!
Directory tree
docs/├── _sidebar.md # Nav (required for every new page)├── _footer.md├── home.md├── getting-started/├── using-the-theme/├── design-system/├── blocks/├── features/├── development/├── reference/└── troubleshooting/

File naming

Docs use wiki-style links:

Copied!
Markdown
[[color-palette]][[color-palette|Color Palette]]

The slug is the file name without .md. For links to another docs tree, use normal relative Markdown links:

Copied!
Markdown
[Aegis Dash Patterns](../../../../plugins/aegis-dash/docs/features/plugin-patterns.md)

Headings and tone

Adding or updating a page

  1. Create or edit the .md file in the correct folder under docs/.
  2. Add the file to its section in docs/aegis-docs.json, and a sidebar entry in docs/_sidebar.md. Files missing from the manifest are imported into a “More” section.
  3. If the page is a primary topic, add a one-line link under the matching section in docs/home.md.
  4. From feature/code PRs, update any page that would otherwise be wrong (counts, hexes, APIs, file paths).
  5. Re-import the folder to see the change on the site. Documentation stays local, so there is nothing to commit or push.
Copied!
Markdown
## Development- [[contributing|Contributing]]- [[documentation|Contributing Documentation]]

Checklist (docs PR)

FileWhen to update
DESIGN.mdDesign tokens change in theme.json
readme.txtPublic feature summary / pattern counts for WordPress.org
README.mdContributor overview tables that mirror the design system
INSTRUCTIONS.md / BUILD.mdLocal setup or build commands change

What not to do

Next steps