Skip to content

ADR-004 Add MkDocs Material Documentation Site#6

Merged
jhagberg merged 12 commits intomainfrom
adr/004-Mkdocs
Dec 11, 2025
Merged

ADR-004 Add MkDocs Material Documentation Site#6
jhagberg merged 12 commits intomainfrom
adr/004-Mkdocs

Conversation

@jhagberg
Copy link
Contributor

Add MkDocs Material Documentation Site

This PR implements ADR-0004 by setting up a complete MkDocs Material documentation site with SciLifeLab visual identity.

What's Included

Documentation Site (mkdocs.yml)

  • MkDocs Material theme with SciLifeLab branding (teal/lime colors)
  • Open Sans typography matching scilifelab.se
  • Light/dark mode toggle
  • Mermaid diagram support for architecture visualizations
  • Cookie consent for GDPR compliance
  • Navigation tabs, search, and code copy features

Visual Identity (docs/stylesheets/extra.css)

  • Custom CSS implementing SciLifeLab color palette (#045C64 teal, #A7C947 lime)
  • Styled header, footer, tables, and admonitions
  • Consistent branding across light and dark modes

Homepage (docs/index.md)

  • Mission and vision statement
  • Architecture workflow diagram (Mermaid)
  • Recent decisions table
  • Board members with affiliations
  • Multiple contact options (Issues, Discussions, Email)
  • Citation information

Assets

  • SciLifeLab symbol as logo (white for header)
  • SciLifeLab symbol as favicon (green)

GitHub Actions (.github/workflows/deploy-docs.yml)

  • Automatic deployment to GitHub Pages on push to main/master
  • Uses mkdocs gh-deploy for publishing

Preview

Run locally with:

pip install mkdocs-material
mkdocs serve

or check https://scilifelab.github.io/architecture/

Checklist

  • Implements ADR-0004
  • SciLifeLab visual identity applied
  • GitHub Actions workflow for deployment
  • Cookie consent configured
  • CC BY-SA 4.0 license notice in footer
  • Contact information (Issues, Discussions, Email)

GitHub Pages Deployment

The GitHub Action uses mkdocs gh-deploy which builds the site and pushes to the gh-pages branch.

Settings: Keep GitHub Pages configured to "Deploy from branch: gh-pages" (no change needed).

After merging: Any push to main will automatically trigger the workflow, rebuild the site, and update the gh-pages branch.

Site URL: https://scilifelab.github.io/architecture/

Copy link
Member

@jwindhager jwindhager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Some minor suggestions

(only reviewed files specific to ADR-004)

@jwindhager jwindhager mentioned this pull request Dec 2, 2025
@alneberg
Copy link
Member

alneberg commented Dec 4, 2025

Looks good! I agree with the comments by @jwindhager .

@jhagberg jhagberg force-pushed the adr/004-Mkdocs branch 3 times, most recently from d3b2873 to b9e1239 Compare December 9, 2025 11:25
@Netzach Netzach self-requested a review December 10, 2025 11:58
jhagberg and others added 9 commits December 10, 2025 14:09
…files

- MkDocs Material theme with SciLifeLab visual identity
- GitHub Actions workflow for automatic deployment
- Homepage with mission, workflow diagram, and board members
- Custom CSS for teal/lime branding
- Cookie consent and Mermaid diagram support
Co-authored-by: Jonas Windhager <jonas@windhager.io>
…nding

- Enhanced Mermaid diagrams with a unified theme for consistency across documentation.
- Updated CSS for primary and secondary button styles to align with the new color scheme.
- Introduced a requirements.txt file to manage dependencies, specifically for mkdocs-material.
- Updated the GitHub Actions workflow to install dependencies from requirements.txt instead of directly installing mkdocs-material.
Removed duplicate description of technical architecture governance.
@jhagberg jhagberg requested a review from jwindhager December 11, 2025 09:56
Copy link
Member

@jwindhager jwindhager left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we can address the remaining comments separately

@jhagberg jhagberg merged commit 022b20c into main Dec 11, 2025
1 check passed
@jhagberg jhagberg deleted the adr/004-Mkdocs branch December 11, 2025 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants