Shared documentation for Mozilla's Bedrock (mozilla.org) and Springfield (firefox.com) projects.
make serve- Run local dev server at http://127.0.0.1:8765make build- Build the static site to/sitemake install- Install Python dependencies (uses uv)make deps- Rebuild pinned requirements
- MkDocs with Material theme
- Python dependencies managed via
uvandrequirements.txt - Custom JS/CSS in
docs/js/anddocs/css/
docs/ # Markdown documentation files
css/ # Custom stylesheets
js/ # Custom JavaScript
images/ # Static images
mkdocs.yml # MkDocs configuration and navigation
This documentation covers two similar codebases. Use these conventions:
Tabbed code blocks for project-specific code:
=== "Bedrock"
```python
# Bedrock-specific code
```
=== "Springfield"
```python
# Springfield-specific code
```Admonitions for project-specific notes:
!!! bedrock "Bedrock Only"
Content specific to Bedrock.
!!! springfield "Springfield Only"
Content specific to Springfield.
!!! both "Applies to Both Projects"
Content that applies to both but example is from one.Use ??? instead of !!! for collapsible admonitions.
Available via MkDocs Material (see mkdocs.yml):
pymdownx.tabbed- Tabbed content blockspymdownx.superfences- Fenced code blockspymdownx.highlight- Syntax highlightingadmonition- Note/warning boxesattr_list- Add attributes to elementstoc- Table of contents with permalinks
Update nav: section in mkdocs.yml when adding new pages.