Contributor Site Contribution Guide¶
This contributor website lives in LF-Decentralized-Trust-labs/contributors-site and is published via GitHub Pages. You can edit pages directly on GitHub or work locally with MkDocs (Material theme).
- Repo:
https://github.com/LF-Decentralized-Trust-labs/contributors-site - Published site:
https://lf-decentralized-trust-labs.github.io/contributors-site/ - License: CC BY 4.0 (see
LICENSE)
Quick Start (edit in GitHub)¶
Fastest path
- Open the page under
docs/you want to change and click Edit (✏️) on GitHub. - Make your Markdown edits, write a clear commit message, and open a Pull Request (PR).
- After review, merging the PR republishes the site to GitHub Pages.
If you’re adding a new page, see Add a New Page and Update the Sidebar Navigation below.
Full Workflow (local preview)¶
-
Clone the repo
-
Create a branch
-
Install docs tooling (uses repo’s pinned dependencies)
-
Run a local server
Preview at http://127.0.0.1:8000 with live reload. -
Commit & push
-
Open a Pull Request on GitHub for review.
Repository Layout (what to expect)¶
contributors-site/
├─ docs/
│ ├─ index.md
│ ├─ about.md
│ ├─ projects.md
│ ├─ contributors/
│ │ ├─ index.md
│ │ ├─ end-users.md
│ │ └─ guide.md ← (this file, if you place it here)
│ ├─ maintainers/
│ │ └─ index.md
│ └─ mentorship/
│ └─ index.md
│ └─ end-users/
│ └─ index.md
├─ mkdocs.yml
├─ requirements.txt
└─ .github/
└─ workflows/
- All content must live under
docs/. - Images: put in
docs/assets/images/and link relatively. - Downloads/templates:
docs/assets/downloads/.
Add a New Page¶
-
Create the file under
docs/in the correct location, e.g.: -
Add a title at the top:
-
Wire it into the sidebar (next section).
Update the Sidebar Navigation¶
MkDocs shows only pages listed under nav: in mkdocs.yml. Edit mkdocs.yml and add your page where it fits:
site_name: LF Decentralized Trust
nav:
- Home: index.md
- About: about.md
- Contributors:
- Overview: contributors/index.md
- End Users: contributors/end-users.md
- How to Add Pages: contributors/how-to-add-pages.md # ← add your page here
- Maintainers:
- Overview: maintain/index.md
- Mentorship:
- Overview: mentorship/index.md
- End Users:
- Overview: end-users/index.md
- Projects: projects.md
Path tips
- Paths in nav: are relative to docs/.
- about.md and about/index.md are both valid (the latter renders at /about/).
- After editing mkdocs.yml, restart mkdocs serve.
Linking Between Pages (relative links)¶
With use_directory_urls: true (default), projects.md renders at /projects/.
- From docs/projects.md to docs/end-users.md (sibling): ../contributors/end-users/
- From docs/contributors/index.md to docs/about.md: ../about/
- Same folder: ./another-page/ or another-page.md
Examples
Components & Patterns (Material)¶
Admonitions:
Buttons:
[Open an Issue](https://github.com/LF-Decentralized-Trust-labs/contributors-site/issues/new){ .md-button .md-button--primary }
Cards grid:
<div class="grid cards" markdown>
- :octicons-project-symlink-16:{ .lg .middle } __[Contribute](./index.md)__
- :fontawesome-solid-circle-info:{ .lg .middle } __[About](../about.md)__
</div>
Images & downloads:
Style & Content Guidelines¶
- Be task-focused and concise; use headings and lists.
- Use sentence case for headings (except proper nouns).
- Link to source repos, specs, or further reading.
- Prefer examples and short code blocks over long prose.
- Keep relative links so previews and subpath hosting work.
PR Checklist¶
- Builds locally with
mkdocs serve(no 404s, no console errors). -
mkdocs.ymlupdated if you added a page. - Relative links verified (hover in local preview).
- Images live under
docs/assets/images/and are referenced relatively. - Clear commit message and PR description.
Troubleshooting¶
My page doesn’t show in the sidebar
- Add it under nav: in mkdocs.yml and restart mkdocs serve.
A link points to the wrong place
- From a subpage, ./end-users.md resolves under the current folder.
- Go up one: ../end-users/ (or ../end-users.md).
Local preview shows 404
- Check filename and nav: path.
- Ensure the file is under docs/.
- Restart mkdocs serve after editing mkdocs.yml.
Optional mkdocs.yml Enhancements¶
Add repository and “Edit this page” links:
repo_name: LFDT Contributors Site
repo_url: https://github.com/LF-Decentralized-Trust-labs/contributors-site
edit_uri: edit/main/docs/
theme:
name: material
features:
- content.action.edit
- navigation.sections
- navigation.path
Reference¶
- Official MkDocs documentation: https://www.mkdocs.org/