Skip to content

feat(docs): upgrade to DocFX v2 modern template#562

Merged
Nucs merged 1 commit intomasterfrom
docfx2
Feb 13, 2026
Merged

feat(docs): upgrade to DocFX v2 modern template#562
Nucs merged 1 commit intomasterfrom
docfx2

Conversation

@Nucs
Copy link
Member

@Nucs Nucs commented Feb 13, 2026

Summary

Upgrade documentation from DocFX v1-style (2018) to modern DocFX v2.78+ template with enhanced features.

  • Upgrade to modern template with dark mode, full-text search, responsive design
  • Add custom branding (SciSharp footer, GitHub/NuGet icon links)
  • Add CI/CD pipeline to build docs on push (no more pre-built static files)
  • Add AI-friendly documentation (llms.txt standard)

New Features

Feature Before After
Dark mode No Yes
Search Limited Full-text
Mobile Basic Fully responsive
Code blocks Basic Prism.js + copy button
Navigation Static Collapsible tree
CI/CD Pre-built Auto-build on push
AI-friendly No llms.txt standard

Files Changed

Configuration

  • docs/website-src/docfx.json - Full v2 config with modern template

Custom Template

  • docs/website-src/templates/numsharp/public/main.js - GitHub/NuGet icon links
  • docs/website-src/templates/numsharp/public/main.css - Brand colors, styles

AI-Friendly Docs

  • docs/website-src/scripts/generate-llms-txt.sh - Auto-generate llms.txt
  • Generates: llms.txt, llms-full.txt, robots.txt

CI/CD

  • .github/workflows/docs.yml - Build docs + generate AI files + deploy

Structure

  • Rename articles/docs/ (modern convention)
  • Add filterConfig.yml (API filtering, commented out)

Test Plan

  • Build locally: cd docs/website-src && docfx docfx.json --serve
  • Verify dark mode toggle works
  • Verify search functionality
  • Verify GitHub/NuGet icons in navbar
  • Verify footer displays SciSharp copyright
  • Check llms.txt generated correctly
  • Merge and verify GitHub Pages deployment

Closes #561

Upgrade documentation from DocFX v1-style (2018) to modern v2.78+ template.

Changes:
- Replace docfx.json with v2 modern template configuration
- Add custom template with SciSharp branding (footer, icon links)
- Rename articles/ to docs/ (modern convention)
- Update GitHub Actions to build docs on push (not pre-built)
- Add AI-friendly docs (llms.txt, llms-full.txt, robots.txt)
- Add API filter config (filterConfig.yml, commented out)

New features:
- Dark mode toggle
- Full-text search with ExtractSearchIndex
- Collapsible navigation tree
- Prism.js code highlighting with copy button
- GitHub/NuGet icon links in navbar
- Prev/Next article navigation
- Mobile-responsive layout
- Sitemap for SEO
- llms.txt standard for AI crawlers

Files:
- docfx.json: Full v2 config with modern template
- templates/numsharp/: Custom branding (main.js, main.css)
- scripts/generate-llms-txt.sh: Auto-generate AI docs
- filterConfig.yml: API filtering rules (ready to enable)
- docs.yml: CI/CD build + deploy pipeline

Closes #561
@Nucs Nucs merged commit 191c914 into master Feb 13, 2026
6 of 7 checks passed
@Nucs Nucs deleted the docfx2 branch February 13, 2026 18:21
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.

Upgrade documentation to DocFX v2 modern template

1 participant