Skip to content

Add hosted documentation site (MkDocs Material, pkgdown-style)#48

Merged
OVVO-Financial merged 3 commits into
mainfrom
claude/exciting-tesla-hn7ymn
Jun 17, 2026
Merged

Add hosted documentation site (MkDocs Material, pkgdown-style)#48
OVVO-Financial merged 3 commits into
mainfrom
claude/exciting-tesla-hn7ymn

Conversation

@OVVO-Financial

Copy link
Copy Markdown
Owner

Summary

Adds a hosted documentation site for ovvo-nns — the Python equivalent of the R NNS pkgdown site — built with MkDocs + Material and deployed to GitHub Pages at https://ovvo-financial.github.io/NNS-python/.

The site is styled to match the R NNS site, which uses Bootstrap 5 + the Bootswatch Cosmo theme.

What's included

Site + content

  • mkdocs.yml — Material theme, search, light/dark toggle, top-navbar (tabs) layout. Nav maps onto the existing Markdown docs: Home, Install, Quick start, API reference, API status, Conventions (+ plot parity policy), Parity with R NNS (+ sync contract/status), Benchmarks, Release notes (+ release process). Existing docs/*.md are reused; previously orphaned pages are folded in as sub-pages so nothing is unreachable.
  • New pages: docs/index.md, docs/install.md, docs/quick_start.md, docs/release_notes.md — derived from the README, consistent with the current Stable, parity-focused messaging and the optional native-extension build. Release notes link to the authoritative PyPI/GitHub Releases history rather than inventing a changelog (no tags exist in-repo).

pkgdown / Cosmo styling

  • docs/stylesheets/cosmo.css — Cosmo blue #2780e3 primary driving a solid-blue top navbar, matching link/accent colors (light + dark), flat/squared corners, Source Sans typography, bold navbar brand.
  • Home page mirrors the pkgdown landing page: hex sticker (docs/assets/nns_hex_sticker.png) at the top of the body at width 150, then badges, then the H1, plus Links / License / Citation / Developers blocks from pkgdown's right aside. Footer credit set to "Developed by Fred Viole."

CI + packaging

  • .github/workflows/docs.yml — build with mkdocs build --strict and deploy via actions/deploy-pages on push to main (and manual dispatch).
  • pyproject.tomldocs dependency group (mkdocs-material, pymdown-extensions).
  • README.md — docs badge + link to the hosted site.
  • .gitignore — ignore the MkDocs site/ build output.

Validation

The site builds cleanly under mkdocs build --strict (validated locally); the hex asset and CSS resolve in the built output.

Follow-up needed before it goes live (owner-only)

  1. Merge this PR to main (the deploy workflow only runs there).
  2. Enable GitHub Pages: Settings → Pages → Source: "GitHub Actions."

Notes

  • One intentional IA difference from pkgdown: the navbar carries the full requested page set rather than collapsing to just "Reference / Articles."
  • The live page couldn't be loaded from the build environment (host not in the network allowlist), so styling was matched from the pkgdown HTML/CSS rather than a pixel comparison; final tweaks are best done once deployed.

🤖 Generated with Claude Code


Generated by Claude Code

claude added 3 commits June 17, 2026 22:16
Add a hosted documentation site (the Python equivalent of the R NNS
pkgdown site) built with MkDocs + Material and deployed to GitHub Pages
at https://ovvo-financial.github.io/NNS-python/.

- mkdocs.yml: Material theme, search, light/dark toggle, and a nav that
  maps onto the existing Markdown docs: Home, Install, Quick start, API
  reference, API status, Conventions (+ plot parity policy), Parity with
  R NNS (+ sync contract/status), Benchmarks, Release notes (+ release
  process). Existing docs/*.md are reused; previously orphaned pages are
  folded in as sub-pages so nothing is unreachable.
- docs/index.md, install.md, quick_start.md, release_notes.md: new pages
  derived from the README, kept consistent with current Stable,
  parity-focused messaging and the optional native-extension build.
- .github/workflows/docs.yml: build with `mkdocs build --strict` and
  deploy via actions/deploy-pages on push to main (and manual dispatch).
- pyproject.toml: add a `docs` dependency group (mkdocs-material,
  pymdown-extensions).
- README.md: add a docs badge and link to the hosted site.
- .gitignore: ignore the MkDocs `site/` build output.

The site builds cleanly under `mkdocs build --strict`.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BwFx145eq6LfzZFFMvp8BD
The R NNS site (https://ovvo-financial.github.io/NNS/) is a pkgdown site
built with Bootstrap 5 + the Bootswatch "Cosmo" theme. Bring the Material
for MkDocs site visually in line with it:

- Cosmo palette: blue #2780e3 primary driving a solid-blue top navbar
  with white text, matching link/accent colors, for both light and dark
  schemes (docs/stylesheets/cosmo.css).
- Flat design: squared corners on code blocks, admonitions, tables,
  buttons, and search, mirroring Cosmo's flat aesthetic.
- Typography: Source Sans 3 body / Source Code Pro mono, the Source Sans
  family Cosmo uses, with slightly bolder headings.
- Top navbar layout via navigation.tabs (+ sticky), replacing the plain
  sidebar so top-level sections read like pkgdown's navbar.
- The NNS hex sticker as the site logo and favicon
  (docs/assets/nns_hex_sticker.png), as on the pkgdown site.

Site still builds cleanly under `mkdocs build --strict`.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BwFx145eq6LfzZFFMvp8BD
… blocks

Using the actual R NNS pkgdown homepage as reference, tighten the visual
match beyond the Cosmo palette/fonts:

- Navbar uses a text brand (site name) like pkgdown's "NNS" brand, so the
  hex sticker is no longer a header logo. It now sits at the top of the
  home page body at width 150 (left-aligned), followed by the badges and
  the H1, mirroring the pkgdown landing page order.
- Add Links / License / Citation / Developers sections to the home page,
  mirroring pkgdown's right-hand aside.
- Footer credit set to "Developed by Fred Viole." to match pkgdown.
- Badges recolored to the Cosmo blue (#2780e3); bold navbar brand weight.
- Keep favicon as the hex sticker.

Site still builds cleanly under `mkdocs build --strict`.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BwFx145eq6LfzZFFMvp8BD
@OVVO-Financial OVVO-Financial merged commit aeacbbe into main Jun 17, 2026
8 checks passed
@OVVO-Financial OVVO-Financial deleted the claude/exciting-tesla-hn7ymn branch June 17, 2026 22:39
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.

2 participants