Skip to content

MkDocs-NG Feature Plan #59

Open
Open

Description

@shenxianpeng

Curated from mkdocs/mkdocs issues and
discussions, sorted by user demand
(reactions 👍 + comments). Shipped items are struck through and marked ✅ with the release and PR that shipped them; items merged but not yet released are marked 🟢.

See also the Fixed Upstream Issues doc page for the full list of resolved upstream issues (including ones not originally tracked here).


🔥 P0 – High Demand / Urgent Bugs

1. Remove CDNs from built-in themes ✅ Done

  • Issue: mkdocs/mkdocs#2171
  • 👍: 18 · 💬: 7
  • Description: The built-in mkdocs and readthedocs themes load fonts (e.g. Lato, Roboto Slab) and CSS from Google Fonts / CDNs. Users who self-host documentation want full offline / privacy-respecting operation without third-party requests. Some fonts are already bundled, but base.html still references external URLs.
  • Labels: Theme-mkdocs, Theme-readthedocs
  • Status in mkdocs-ng: ✅ Fixed in 1.8.0 (Vendor highlight.js in built-in themes (no more CDN) #75) — highlight.js is now bundled locally; no CDN references remain in either built-in theme.

2. Improve mkdocs serve performance & authoring experience ✅ Done

3. Stable public Python API ✅ Done

  • Issue: mkdocs/mkdocs#1240
  • 👍: 10 · 💬: 8
  • Description: There is no officially supported way to invoke MkDocs from Python code. Users currently call internal functions (e.g. build_command(), serve_command()) or shell out via subprocess. A documented, stable API (e.g. mkdocs.build(), mkdocs.serve()) is needed for build-system integrations, CI scripts, and programmatic usage.
  • Labels: Enhancement, Needs design decision
  • Status in mkdocs-ng: ✅ Fixed in 1.8.0 (Add stable public Python API (mkdocs.build / mkdocs.serve) #76) — mkdocs.build() and mkdocs.serve() are now the documented public API.

4. Remove hardcoded Google Analytics from theme ✅ Done

  • Issue: mkdocs/mkdocs#3630
  • 👍: 8 · 💬: 1
  • Description: The mkdocs theme hardcodes a Google Analytics snippet via the analytics template tag block. This is out of place in a privacy-conscious static site generator. Proposal: drop the built-in GA support entirely and document how to add analytics via extrahead template overrides instead.
  • Labels: Cleanup
  • Status in mkdocs-ng: ✅ Fixed in 1.8.0 (Remove legacy Universal Analytics snippet from built-in themes #84) — the legacy Universal Analytics snippet is removed from both built-in themes; use theme.analytics.gtag (GA4) or override the analytics template block.

5. Support multiple INHERIT configs ✅ Done

  • Issue: mkdocs/mkdocs#2624
  • 👍: 8 · 💬: 3
  • Description: INHERIT currently accepts only a single file path. Users with complex setups want to compose configuration from multiple files (e.g. one for markdown extensions, one for plugins, one for extra settings). Proposal: allow INHERIT to accept a list of paths.
  • Labels: Configuration
  • Status in mkdocs-ng: ✅ Fixed in 1.9.0 (Allow INHERIT to list several config files #107) — INHERIT accepts a list of files; mkdocs serve also rebuilds when an inherited file changes.

6. Fix mkdocs serve --livereload not triggering automatically ✅ Done

  • Issue: mkdocs/mkdocs#4055
  • 👍: 25 · 💬: 6
  • Description: In recent versions, livereload no longer works unless --livereload is passed explicitly. mkdocs-ng partially addresses this through PRs restoring --livereload, but some users still report it not working by default. This may intersect with the Click version issue (#4032) and WSL-specific problems (#4081).
  • Status in mkdocs-ng: ✅ Fixed in 1.7.0 (Fix CLI livereload option and CI failures in tests #4) and 1.7.3 (Fix Click default option handling #60) — the root cause was Click's default-value handling breaking with Click ≥8.2, not livereload itself. Verified: a bare mkdocs serve (no flags) now watches, rebuilds and reloads the browser by default.

7. mkdocs serve does not watch files (Click ≥ 8.3.0 regression) ✅ Done


⚡ P1 – Important Features & Fixes

8. Live reload triggers on editor temp / hidden files ✅ Done

  • Issue: mkdocs/mkdocs#2519
  • 👍: 7 · 💬: 18
  • Description: Editors like Vim create swap files (.foo.md.swp) and hidden files that cause mkdocs serve to constantly rebuild even though those files aren't included in the output. The watcher should ignore dot-files and editor temp files by default, with an opt-in mechanism for directories like .well-known/.
  • Labels: Command - serve, Configuration
  • Status in mkdocs-ng: ✅ Fixed in 1.7.3 (Fix/livereload ignore temp files #55) — vim swap files, ~ backups and Emacs auto-save files no longer trigger rebuilds.

9. Add rel="external" to outbound links ✅ Done

  • Issue: mkdocs/mkdocs#3914
  • 👍: 7 · 💬: 0
  • Description: External (absolute URL) links should be automatically annotated with rel="external" so theme authors and users can style them differently (e.g. add an external-link icon). This became more important after Material for MkDocs switched to always using absolute URLs for navigation.
  • Labels: Enhancement
  • Status in mkdocs-ng: ✅ Fixed in 1.11.0 (Text fragments, port fallback, GitHub alerts and rel="external" #139) — Markdown links to https://, http:// and // URLs get rel="external"; a rel set with attr_list is kept.

10. Cache busting for static assets

  • Issue: mkdocs/mkdocs#1979
  • 👍: 5 · 💬: 34
  • Description: MkDocs has no built-in mechanism to append content hashes to CSS/JS filenames for cache busting. After a documentation site update, returning visitors may get stale cached assets. Implementation could be via a plugin (preferred by maintainers) or core feature.
  • Labels: Enhancement, Plugins

11. Decouple built-in search from core

  • Issue: mkdocs/mkdocs#3698
  • 👍: 5 · 💬: 8
  • Description: The search plugin (based on lunr.js) is bundled with core MkDocs. lunr.js is unmaintained (last commit ~4 years ago) with known bugs. Proposal: extract search into a standalone installable package, decouple it from the core release cycle, and pave the way for a modern replacement.
  • Labels: Search

12. Decouple built-in themes from core

  • Issue: mkdocs/mkdocs#3636
  • 👍: 4 · 💬: 17
  • Description: The core maintainers agreed to move the readthedocs theme (and possibly mkdocs theme) into separate repos and installable packages. This simplifies core, allows themes to be versioned independently, and opens the door for new default themes.
  • Labels: Cleanup

13. Support root directory as docs_dir ✅ Done

  • Issue: mkdocs/mkdocs#3450 / PR #3519
  • 👍: 3 · 💬: 15
  • Description: MkDocs currently forbids placing mkdocs.yml inside the docs_dir. Users who want to use the project root as docs_dir (e.g. monorepos, projects with README.md as homepage) need to work around this restriction. The PR #3519 removes the validation check and auto-excludes config/site files from the docs.
  • Labels: Navigation
  • Status in mkdocs-ng: ✅ Fixed in 1.11.0 (Roadmap items 13, 18, 20: root docs_dir, Jinja env in on_page_context, markdown_extensions_path #143) — docs_dir: . works; the config file and the site_dir (also the configured one during mkdocs serve) are left out of the docs, so a site_dir inside the docs_dir is allowed too.

📋 P2 – Nice to Have

14. Support text fragment links (ignore them during validation) ✅ Done

15. Auto-switch port when the default port is busy ✅ Done

  • Issue: mkdocs/mkdocs#3496
  • 👍: 3 · 💬: 0
  • Description: If port 8000 is already in use, mkdocs serve should automatically try the next available port (8001, 8002, …) instead of failing. A related PR (#3498) adds a manual port override flag, but automatic fallback is the desired UX.
  • Labels: Command - serve
  • Status in mkdocs-ng: ✅ Fixed in 1.11.0 (Text fragments, port fallback, GitHub alerts and rel="external" #139) — when port 8000 is busy, mkdocs serve uses the next free port up to 8010 and says so; a port set explicitly is used as given.

16. Smart section titles when no nav is configured ✅ Done

  • Issue: mkdocs/mkdocs#3356
  • 👍: 3 · 💬: 6
  • Description: When no nav is defined in mkdocs.yml, section titles for sub-directories should be derived from the index page's title metadata or first heading, rather than displaying raw directory names. This is already a feature in Material for MkDocs (navigation.smart-section-titles), but should be available in core.
  • Labels: Navigation, Titles
  • Status in mkdocs-ng: ✅ Fixed in 1.8.0 (Use index page titles for auto-generated section names #54) — auto-generated section titles now use the index page's title instead of the raw directory name when an index page exists.

17. Support GitHub-style Markdown Alerts ✅ Done

  • Issue: mkdocs/mkdocs#3997
  • 👍: 2 · 💬: 2
  • Description: GitHub-flavored markdown alert blocks (> [!NOTE], > [!TIP], > [!IMPORTANT], > [!WARNING], > [!CAUTION]) should render as styled callouts in MkDocs. This would improve portability of docs authored on GitHub to MkDocs sites.
  • Status in mkdocs-ng: ✅ Fixed in 1.11.0 (Text fragments, port fallback, GitHub alerts and rel="external" #139) — the five alert types render as admonitions, styled by both built-in themes.

18. Extend on_page_context with Jinja2 Environment reference ✅ Done

19. Deprecated options should emit INFO, not WARNING ✅ Done

  • Issue: mkdocs/mkdocs#3696
  • 👍: 2 · 💬: 5
  • Description: The Deprecated config helper emits WARNING messages, which break --strict mode. Since deprecated options are still functional (just discouraged), they should emit INFO-level messages so strict builds don't fail on deprecation notices alone.
  • Status in mkdocs-ng: ✅ Fixed in 1.9.0 (Log deprecated config options at INFO so they don't fail strict mode #102) — deprecation notices from MkDocs and plugins are logged at INFO; removed options are still an error.

20. Custom import paths for markdown_extensions ✅ Done

21. Respect display text when the same .md file appears in nav multiple times ✅ Done

  • Issue: mkdocs/mkdocs#3710
  • 👍: 2 · 💬: 3
  • Description: When a file is referenced multiple times in nav with different display names (e.g. - 'French Main Dishes': 'French Cuisine.md' and - 'French Desserts': 'French Cuisine.md'), MkDocs now overrides both entries with the first title encountered. Previously, each entry kept its set display text.
  • Status in mkdocs-ng: ✅ Fixed in 1.9.0 (Keep each entry's own title when a page is listed more than once in nav #103) — each entry keeps its own title (repeated entries are PageAlias objects), and the page appears once in previous/next links.

🔧 P3 – Maintenance & Infrastructure

22. New default theme ✅ Done (as a separate theme)

23. Title source precedence controls

  • Issue: mkdocs/mkdocs#3532
  • 👍: 0 · 💬: 37
  • Description: When a page has both a YAML title meta field and an H1 heading, the precedence between them (and the nav display name) can be surprising. Users want more control over which source wins, ideally configurable per page or globally.

24. Fix use_directory_urls: true with Click ≥ 8.2.2 ✅ Done

25. WSL: mkdocs serve fails to live reload ✅ Done

  • Issue: mkdocs/mkdocs#4081
  • 👍: 2 · 💬: 2
  • Description: On WSL with ext4 filesystem, file-watching doesn't trigger livereload. May be related to the Click watcher regression (#4032) or filesystem notification limitations in WSL.
  • Status in mkdocs-ng: ✅ Fixed in 1.7.0 (Fix CLI livereload option and CI failures in tests #4) / 1.7.3 (Fix Click default option handling #60) — investigated directly: the reporter's own diagnosis (ext4, inotifywait sees events fine, explicit --livereload works) matches the Click default-handling regression, not a WSL/filesystem-specific bug. The bundled PollingObserver file watcher doesn't depend on inotify anyway. Verified end-to-end with Click 8.4.2: a bare mkdocs serve watches, rebuilds and reloads the browser.

✅ Shipped beyond this plan

Work that was not tracked above but has shipped. Upstream issue numbers refer to mkdocs/mkdocs; PR numbers to this repo unless noted.

26. Publish docs for LLMs and coding agents (llms.txt) ✅ Done

27. nav links to a section of a page (page.md#anchor) ✅ Done

28. --quiet silently disabled --strict ✅ Done

29. Search fallback replaced window.postMessage ✅ Done

30. Search ignored keywords like while, if, for (stop words) ✅ Done

31. Suggest the right anchor when only the letter case differs ✅ Done

32. Build crash on edge-case markup (html.parser AssertionError) ✅ Done

33. Disabling highlightjs broke light/dark switching ✅ Done

34. Anchor validation false positives for late-generated anchors ✅ Done

35. Modern Python: 3.10–3.15 ✅ Done

36. Installing a plugin could silently swap MkDocs NG for upstream MkDocs 1.6.1 ✅ Done

37. No more "switch to ProperDocs" warning from plugins ✅ Done

38. Plugin compatibility matrix in CI ✅ Done

39. Continuous performance benchmarks ✅ Done

40. Documentation site: Sumi theme, switching guide, comparison ✅ Done

41. MkDocs NG brand ✅ Done

42. Plugin catalog updates itself again ✅ Done

43. Release drafts always ready ✅ Done

44. One mkdocs.yml for every language ✅ Done

45. Ready for editors and coding agents ✅ Done

46. Plugin compatibility fixes ✅ Done

47. NG Material synced to upstream Material 9.8.0 ✅ Done


📥 More upstream demand (added 2026-11-07)

Found by a second pass over upstream open issues and PRs, plus popular requests upstream closed as "not planned". Each bug below was checked against MkDocs NG 1.11.1 and still happens there. None of these change how existing sites build.

48. Small upstream bugs still present in NG 🟢

  • Issues: mkdocs/mkdocs#3618 (👍 3 · 💬 1), #3551 (👍 1), #3908 (💬 7), #4079 (💬 4), PR #4149
  • Description: One PR for five small bugs:
    • #3618: relative URLs written in raw HTML, such as an img tag's src, are not adjusted for use_directory_urls, so the image breaks.
    • #3551: page.is_homepage is False when the home page sits inside a nav section.
    • #3908: an HTML comment before the first heading (such as an SPDX/REUSE header) stops the heading from becoming the page title.
    • #4079: a setext heading like Foo: Bar underlined with === is read as MultiMarkdown metadata and disappears.
    • #4149: YAML front matter is ignored when the file ends right after the closing --- with no newline.
  • Status in mkdocs-ng: 🟢 Merged (Fix five small page bugs: raw HTML links, home page, title, metadata #170), in the 1.11.2 release notes — raw HTML URLs are adjusted only on standard elements and only when the URL as written doesn't already work from the built page, so hand-written HTML and plugin tags such as <swagger-ui> are left alone.

49. List already-fixed issues on the Fixed Upstream Issues page ✅ Done

  • Description: Several upstream issues fixed in 1.7.x–1.11.x are missing from the Fixed Upstream Issues page, e.g. mkdocs serve cleanup on SIGTERM (#3905), -v disabling --strict (#3991, #3927), validation.links.not_found stuck at INFO (#3900), the invisible dropdown arrow (#3909), HTML in search titles, page.content_title, crashes on broken symlinks and malformed URLs, and the site_url docs (#1783, #4066). Docs only.
  • Status in mkdocs-ng: ✅ Done (List more fixed upstream issues on the Fixed Upstream Issues page #171) — 11 more upstream issues listed, with a new Build section; the page is live on mkdocs-ng.org. Left out: the site_url side-effects docs (#1783, not written yet) and &amp; in built-in search titles (#3213, still a bug).

50. Chinese, Japanese and Korean search in the built-in search 🟢

  • Issue: mkdocs/mkdocs PR #3761 (👍 1)
  • Description: With the built-in search plugin, searching for Chinese words returns nothing, even with lang: [zh]: the bundled lunr.zh.js needs a Node.js tokenizer (jieba) that doesn't exist in the browser. Proposal: split CJK text with the browser's built-in Intl.Segmenter, without new dependencies. Fits the multi-language support shipped in 1.11.0.
  • Labels: Search

51. Directory globs in nav, nicer automatic navigation

  • Issues: mkdocs/mkdocs#714 (👍 103 · 💬 37, closed upstream as not planned), #2086 (👍 10 · 💬 11), #2764 (👍 7 · 💬 4)
  • Description: Large sites have to list every page in nav to control the order of sections. Allow - User Guide: user-guide/* to pull in a directory's pages, so only sections need ordering. Related: an option to keep directory names as written in the automatic nav instead of capitalizing them (#2086), and a weight metadata field to order pages without nav (#2764). Today such an entry is just a broken link, so adding this changes no working site. The awesome-nav plugin keeps working as before.
  • Labels: Navigation

52. Versioned documentation guide

  • Issue: mkdocs/mkdocs#193 (👍 104 · 💬 55, the most-wanted upstream request, closed as not planned)
  • Description: mike already works with MkDocs NG (it is in the plugin compatibility matrix) and Sumi reads mike's versions.json for its version switcher. Add a docs page on publishing several versions with mike. A built-in solution stays planned for 2.x.
  • Labels: Documentation

53. Custom response headers for mkdocs serve

  • Issue: mkdocs/mkdocs#3852 (💬 6) / PR #3851
  • Description: mkdocs serve can't send extra headers, so pages can't be fetched from another origin during development (CORS), and demos that need COOP/COEP headers don't run. Proposal: an opt-in setting with headers to add in mkdocs serve; mkdocs build is unaffected.
  • Labels: Command - serve

🟢 Merged, waiting for a release


Last updated: 2026-11-07 — 22 of 31 planned items done, 2 merged and waiting for a release (48, 50) (open: 10 cache busting, 11 search decoupling, 12 theme decoupling, 23 title precedence, 51–53 added from upstream demand, planned for 1.12), 22 more shipped items added (items 26–47). Released versions: 1.7.0–1.7.3, 1.8.0, 1.9.0, 1.10.0rc1, 1.11.0rc1, 1.11.0, 1.11.1; mkdocs-sumi 0.1.0–0.3.1.
Sources: mkdocs/mkdocs open issues, sorted by reactions; release notes


Generated by Claude Code

Activity

  1. pinned this issue on May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions