# Roadmap


# Planned -- Near Term

High-value features that build on existing infrastructure.


## Author Attribution & Avatars

Display author information with circular GitHub-style avatars on authored pages.

- Author name and image from page YAML frontmatter (`author: {name, image, url}`)
- Multiple author avatars displayed in a row
- Circular avatar images (falls back to initials when no image)
- Hover tooltip shows full author name
- Author lookup from `great-docs.yml` `authors:` list for full metadata
- Only shown on authored pages (user guide, blog, recipes) with explicit `author:` frontmatter
- Auto-generated pages (reference, changelog) show timestamps only, no author
- Optional `team_author:` config for a catch-all team attribution (e.g., "Great Tables Team")
- `site.show_author: true/false` to enable/disable author display


## Reading Time Estimate

Auto-calculate and display estimated reading time.

- Word count-based calculation shown near page title
- Configurable words-per-minute rate
- Override via frontmatter (`readtime: 15`)
- Show/hide globally or per-page
- Useful for user guide articles, tutorials, and blog posts


## Breadcrumb Navigation

Display navigation path above page content.

- Breadcrumb trail showing hierarchy (Home \> User Guide \> Configuration)
- Clickable links to parent sections
- Helps orientation in deep documentation structures
- Hide per-page via frontmatter if desired
- Responsive design for mobile


## Enhanced CLI Reference

API-reference-style rendering for CLI applications.

- **Click** (primary): Parse command/group decorators to extract structure
- **Typer**: Leverage Click internals via Typer's underlying Click commands
- **argparse**: Parse `ArgumentParser` definitions and subparsers
- **Fire**: Introspect Python functions/classes exposed as CLI
- **Extensible**: Plugin interface for additional CLI frameworks
- Generate `.qmd` pages with prose sections for each command and subcommand
- Render arguments, options, and flags in styled parameter tables (like API reference)
- Include type annotations, defaults, and help text
- Auto-generate usage examples from framework-specific example metadata
- Cross-reference between subcommands and parent groups
- Search integration: CLI commands indexed alongside API symbols
- Support for command aliases and deprecated commands
- Environment variable documentation
- Alternative to raw `--help` output: richer formatting, navigation, and discoverability


## Docstring Coverage Report

Audit which public symbols have complete documentation.

- `great-docs coverage` command outputs a per-module/class report
- Flags symbols missing docstrings, undocumented parameters, and missing examples
- Badge-ready percentage score (e.g., "Docs Coverage: 87%")
- Configurable thresholds for CI pass/fail
- Integrates with `great-docs lint` for unified quality checking
- JSON/Markdown output for CI artifact publishing


## Pytest Coverage Report

Run pytest during build and render a per-file coverage table in the documentation site.

- `great-docs coverage-report` CLI command runs `pytest --cov` and captures results
- Generates a styled HTML table showing coverage percentage, missed lines, and branch hits per file
- Configurable via `great-docs.yml` (`coverage_report:` section): source dirs, threshold colors, exclusion patterns
- Supports `--cov-branch` for branch-level reporting


## Migration Guide Generation

Auto-generate version migration guides from API diffs.

- Builds on `api-diff` to detect breaking changes between tagged versions
- Generates a `.qmd` page per version bump with renamed/removed/changed symbols
- Suggested replacement code snippets where possible
- Deprecation timeline showing when deprecated symbols will be removed
- Links to relevant changelog entries
- `great-docs migration-guide v1.0 v2.0` CLI command

------------------------------------------------------------------------


# Planned -- Medium Term

Features that expand the scope of what Great Docs can produce.


## Analytics Integration

One-line config for privacy-friendly analytics.

- Plausible Analytics (recommended default)
- Google Analytics fallback
- Opt-in cookie consent banner support


## Notebook Gallery

A gallery view for example Jupyter notebooks.

- Auto-discover `.ipynb` files in a `notebooks/` or `examples/` directory
- Thumbnail previews from the first output cell
- Tag-based filtering
- "Open in Colab" / "Open in molab" / "Download" buttons
- Execution status badges


## PDF Export

Generate a downloadable PDF of the entire documentation site.

- Single PDF combining all pages with proper pagination
- Table of contents with clickable links
- Configurable page selection (full site, sections, or individual pages)
- Styled to match the site theme
- Auto-generated link on homepage or configurable placement
- Optional per-build regeneration or manual `great-docs pdf` command


## Multi-Language API Documentation (Python + R + Rust + JS)

Unified documentation sites spanning multiple programming languages.

- **Language adapters**: Consume output from each language's canonical toolchain and normalize into a common intermediate representation
- **Single site, single build**: One navbar, sidebar, search index, and theme across all languages; replacing hand-wired splash pages that link to separate sub-sites
- **Section selector widget**: Navbar dropdown for switching the displayed section; search scoped to selected section; preference persisted in `localStorage`
- **Multiple sections per language**: A single language can have multiple reference sections each with their own sub-URL and sidebar group
- **Per-section user guides**: Each section can have its own getting-started content; shown when that section is selected
- **Cross-repo source resolution**: Pull R/Rust/JS packages from local paths or Git URLs (shallow-cloned into `.great-docs-cache/`); supports standalone docs repos
- **Custom sub-URLs**: Each section defines its own URL path segment (e.g., `/reference/py/`, `/reference/r/`)
- **Cross-language linking**: Auto-matched "See also" links between parallel symbols (e.g., Python `Chat` ↔︎ R `Chat`)
- **Progressive**: Python-only projects pay zero cost; `sections:` key activates multi-section mode


## Monorepo / Multi-Project Support

Unified documentation across multiple packages or subprojects.

- Shared navigation and search index across projects
- Per-project sidebars with cross-project linking
- Hierarchical project trees (parent/child relationships)
- Independent build cycles with unified deployment
- Common assets and theming across subprojects


## Offline Documentation

Self-contained sites that work without an internet connection.

- PWA (Progressive Web App) support with service worker
- Air-gapped deployable builds for secure environments
- Bundled search index for offline queries
- Optional asset inlining for single-file deployment


## Blog Support

First-class blogging integrated with documentation.

- Posts directory with date-based organization
- Automatic archive and category index pages
- Post excerpts with `<!-- more -->` separator
- Author profiles with avatars and bios
- Categories and tags per post
- RSS feed generation
- Reading time and publication date display
- Pinned/featured posts
- Pagination for post listings
- Blog-only mode (documentation optional)


## MCP Server Documentation

Generate documentation for Model Context Protocol (MCP) server projects.

- Auto-discover tools, resources, and prompts from MCP server source code
- Render tool schemas (input/output JSON Schema) in styled parameter tables
- Document resource URI templates with examples
- Display prompt templates with argument descriptions
- Support for multiple transport types (stdio, SSE, streamable HTTP)
- Cross-reference between tools and resources
- "Try it" links or copy-able JSON-RPC examples for each tool
- Server capability summary page (tools count, resources, prompts)
- Configuration reference for server setup (env vars, auth, endpoints)
- Compatible with Python (`mcp` SDK), TypeScript (`@modelcontextprotocol/sdk`), and other MCP implementations


## Instant Loading

SPA-like navigation without full page reloads.

- XHR-based page transitions preserving search state
- Progress indicator for slow connections
- Instant prefetching on link hover
- Instant previews showing tooltip of linked section
- Anchor tracking (URL updates as you scroll)
- Significantly faster perceived navigation


## Code Annotations

Rich inline annotations inside code blocks.

- Numbered markers in code comments pointing to explanations
- Click/hover to reveal annotation content
- Supports any language with comment syntax
- Nestable annotations
- Works inside admonitions and content tabs
- Strip comment markers option for cleaner display


## Comment System Integration

Enable community discussion on documentation pages.

- One-line Giscus setup (GitHub Discussions backend)
- Theme-aware dark/light mode sync
- Per-page enable/disable via frontmatter
- Alternative backends: Disqus, Utterances
- Moderation via GitHub


## Document Contributors

Show GitHub avatars of all page contributors.

- Extract contributors from git history
- Circular avatar images linking to GitHub profiles
- Displayed at page footer alongside timestamps
- Configurable: show all or top N contributors
- Works with git-committers plugin pattern


## Image Optimization

Automatic compression and conversion of images.

- Compress PNG, JPEG, GIF during build
- Convert to modern formats (WebP, AVIF) where supported
- Lazy loading attributes for below-fold images
- Responsive image srcsets
- Significant page load improvements


## Folder-Level Metadata Defaults

Set default frontmatter for entire directories.

- `.meta.yml` files apply defaults to all pages in folder
- Reduce repetition for large documentation sections
- Inheritance: child folders can override parent defaults
- Useful for setting authors, tags, templates per section


## Content Tabs

Tabbed content blocks for alternative instructions.

- Show pip vs conda vs poetry installation
- Platform-specific instructions (macOS / Linux / Windows)
- Synced tabs across pages (user preference remembered)
- Keyboard accessible
- Code blocks and prose supported inside tabs


## LLM Chat View

Render multi-turn LLM conversations with role-specific styling for AI workflow documentation.

- Distinct visual treatment per role: user, assistant, system, thinking, tool use, tool result
- User messages right-aligned with accent background; assistant messages left-aligned with bot icon
- Assistant thinking blocks collapsed by default with "Show thinking" toggle
- Tool use/result blocks with tool name badge, status indicator (success/error), and code styling
- System messages as full-width muted banners
- Full markdown rendering inside each message (code blocks, lists, links)
- Optional timestamps, turn numbering, and compact mode
- Streaming indicator animation for in-progress assistant messages
- Copy button for the entire conversation as plain text
- Dark mode aware, responsive, and keyboard accessible


## Enhanced Search

Improve the built-in search with modern capabilities.

- Fuzzy matching and typo tolerance
- Search suggestions and completions
- Highlighting of matched terms in results
- Keyboard navigation in search results
- Recent searches history


## OpenAPI / REST API Documentation

Generate reference pages for HTTP APIs alongside Python API docs.

- Parse OpenAPI/Swagger specs (JSON or YAML) to generate endpoint pages
- Auto-discover routes from FastAPI, Flask, or Starlette decorators
- Render request/response schemas in styled parameter tables
- Authentication and header documentation
- Example `curl` commands and request bodies
- Status code reference per endpoint
- Grouped by tags or URL path prefix
- Try-it-out links to external tools (Swagger UI, Redoc)


## Documentation Freshness Tracking

Flag documentation pages that may be stale relative to code changes.

- Correlate git history between source modules and their corresponding doc pages
- Surface stale pages in `great-docs lint` output with last-modified delta
- Configurable staleness threshold (e.g., 90 days since source changed)
- Per-page freshness badge (optional)
- Ignore list for stable pages that rarely need updates
- JSON report for CI integration


## User Feedback Widget

Inline "Was this page helpful?" ratings on documentation pages.

- Thumbs up/down widget at page bottom
- Optional free-text comment field
- Data stored via GitHub Discussions, a JSON endpoint, or static file export
- Dashboard view of feedback aggregated per page
- Theme-aware styling matching dark/light mode
- Per-page disable via frontmatter
- Privacy-friendly: no cookies, no tracking scripts


## Redirects Management

Graceful handling of URL changes across versions and restructuring.

- `redirects:` section in `great-docs.yml` mapping old paths to new paths
- Generates HTML meta-refresh redirect stubs for static hosting
- Outputs `_redirects` (Netlify) or `vercel.json` rules for edge hosting
- Auto-detect moved pages from git rename history (optional)
- Warning in `great-docs lint` for redirect chains or loops
- Supports glob patterns for bulk redirects (e.g., `/old-section/*` → `/new-section/*`)


## Incremental Builds

Skip re-rendering unchanged pages for faster iteration.

- Track content hashes of source files, config, and theme assets
- Only re-render pages whose inputs changed since last build
- Full rebuild triggered automatically on config or theme changes
- `great-docs build --full` to force complete rebuild
- Build manifest (`.great-docs-cache/manifest.json`) persists across runs
- Significant speedup for large sites (100+ pages) during development

------------------------------------------------------------------------


# Planned -- Long Term

Larger efforts for future milestones.


## Plugin / Extension System

Allow third-party extensions to hook into the build pipeline.

- `great-docs.yml` plugin registration
- Hook points: `pre-init`, `post-discovery`, `pre-render`, `post-render`
- Package discovery via entry points (`great_docs.plugins`)
- Example plugins: custom renderers, extra page generators, analytics adapters


## Clean URLs

Strip `.html` extensions from page URLs (e.g., `/user-guide/configuration` instead of `/user-guide/configuration.html`).

- Ideally handled natively by Quarto (no upstream support yet; tracking for if/when it lands)
- Fallback: post-render script that restructures `page.html` → `page/index.html` and rewrites all internal links
- Rewrite sidebar, navbar, cross-references, search index, `objects.json`, and sitemap paths
- Works out-of-the-box on GitHub Pages (serves `dir/index.html` at `/dir/`); trivial on Netlify/Vercel/CloudFlare
- `clean_urls: true` config option in `great-docs.yml`


## Interactive Examples

Live, runnable code blocks in the browser.

- Pyodide or JupyterLite backend
- `{interactive}` code cell annotation in `.qmd`
- Sandboxed execution with output display
- Fallback to static output when JS is disabled


## Accessibility Audit & Improvements

Systematic WCAG 2.1 AA compliance.

- ARIA landmarks and labels on all navigation
- Keyboard navigation for sidebar, search, dark mode toggle
- Color contrast verification across all themes
- Screen reader testing and fixes
- Skip-to-content links


## Theme Customization Gallery

Pre-built color schemes and typography presets.

- `site.theme` config with named presets (e.g., `flatly`, `cosmo`, `solar`)
- CSS variable overrides for custom branding
- Gallery page in Great Docs documentation showing all presets
- User-contributed themes via plugin system


## Template Library

Starter templates for different project types.

- Minimal (API-only)
- Full-featured (API + CLI + User Guide + Notebooks)
- Scientific package
- Data analysis toolkit
- `great-docs init --template <name>` CLI option


## Multi-Language Documentation Sites

Full site translation with a language selector widget.

- Parallel content directories per language (`docs/en/`, `docs/es/`, etc.)
- Language selector dropdown in navbar
- `hreflang` tags for SEO
- Fallback to default language for untranslated pages
- Shared assets and cross-language linking


## AI-Assisted Translation

LLM-powered translation workflows for multi-language documentation.

- Generate translation drafts from source content
- Track changed sections needing re-translation
- Review UI for accepting/editing suggestions
- Integration with i18n content directories
- Cost-effective batch processing for large sites
- `hreflang` tags for SEO
- Fallback to default language for untranslated pages
- Shared assets and cross-language linking


## Privacy & GDPR Compliance

Tools for data privacy regulation compliance.

- Auto-download external assets (fonts, analytics scripts) for self-hosting
- Cookie consent banner with configurable text
- External link rewriting to proxy through local assets
- One-line config for privacy mode
- Audit report of external requests


## Documentation Health Dashboard

A comprehensive post-build quality report aggregating all documentation metrics.

- Docstring coverage percentage per module and overall
- Broken internal links and orphaned pages (no sidebar entry)
- Pages with no examples or missing sections
- Readability scores (Flesch-Kincaid or similar)
- Build time trends across recent builds
- Freshness scores correlated with source changes
- Publishable as a standalone HTML page or CI artifact
- `great-docs health` CLI command with pass/fail exit codes
- Configurable quality gates for CI pipelines

------------------------------------------------------------------------


# Feedback & Contributions

Have ideas for features not listed here? Open an issue with the `enhancement` label. Contributions to any planned item are welcome so check existing issues first to avoid duplication.

*This roadmap is a living document. It is updated as features ship and new priorities emerge.*
