mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-01 18:21:30 +08:00
2.6 KiB
2.6 KiB
Website Modernization Plan
Goals
- Serve a single, canonical domain backed by a static MkDocs build.
- Keep the documentation authoring experience entirely in Markdown.
- Modernize the marketing home page with a refreshed visual identity.
- Preserve the generated settings reference sourced from Python code.
Architecture Overview
- Static site generator: MkDocs with the Material theme.
- Content layout: Markdown files in
docs/content/, grouped by guides, reference, and news archives. - Styling: Lightweight CSS overrides in
docs/content/styles/overrides.cssfor hero, feature cards, and color palette. - Dynamic data:
docs/macros.pyexposes the Gunicorn version, whilescripts/build_settings_doc.pyrenders the settings reference into Markdown during every build. - Assets: SVG mascot and hero art live under
docs/content/assets/so both the homepage and docs share the same branding.
Completed Work
- Removed Sphinx configuration, themes, and the legacy static snapshot under
docs/site/. - Converted the entire content library (guides, FAQ, design notes, yearly news) from MyST/RST to MkDocs-friendly Markdown.
- Rebuilt the homepage using Material’s layout primitives with responsive hero, CTAs, and feature cards.
- Added CSS overrides that mirror Gunicorn’s brand colors and support light/dark modes.
- Replaced the Sphinx extension with a standalone Markdown generator for the settings reference.
- Introduced an automated MkDocs workflow (
.github/workflows/docs.yml) that builds on every push and deploys togh-pagesfrom themainbranch.
Remaining Enhancements
- Visual polish: produce updated screenshots/asciicasts for quickstart and deployment examples; add Open Graph imagery.
- Content review: prune outdated news entries, tighten FAQs, and add framework-specific quickstarts (FastAPI, Flask, Django).
- Accessibility & internationalization: run axe audits, ensure color contrast, and consider adding minimal localization support.
- Performance extras: enable MkDocs search index minification and gzip the GitHub Pages output (served automatically once deployed).
- Contributor docs: extend
CONTRIBUTING.mdwith MkDocs authoring tips, link to preview artifacts, and describe themkdocs serveworkflow.
Deployment Checklist
- Update DNS to point away from ReadTheDocs once
gh-pagesis published. - Verify
site_urlinmkdocs.ymlfor canonical URLs and sitemap generation. - Ensure
CNAME(if required) is checked intogh-pagesduring deployment. - Announce the migration to end-users and update links in READMEs and PyPI metadata.