Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better public API #3644

Closed
pawamoy opened this issue Apr 15, 2024 · 2 comments
Closed

Better public API #3644

pawamoy opened this issue Apr 15, 2024 · 2 comments
Labels

Comments

@pawamoy
Copy link
Sponsor Contributor

pawamoy commented Apr 15, 2024

MkDocs could gain at better exposing and documenting its API.

Some of it could help plugin/extension authors (reusing Markdown treeprocessors), but is not exposed. Some of it must be imported for integration within other Python tools, but is not exposed (entrypoints in __main__). Some of it is documented under API reference, some of it under Plugins, some of it is not documented.

Side note: One reason I started using MkDocs and writing mkdocstrings was to have all auto-documented objects (API autodoc) appear in the table of contents. But the default mkdocs theme does not allow that 😢

Relevant issues:

@squidfunk
Copy link
Sponsor Contributor

+1! Also, if we could add subcommand support, that'd be really powerful! As a theme and plugin author, I'd really love if MkDocs could offer all of the following extension capabilities:

  • Themes (incl. overrides)
  • Plugins
  • Hooks (lightweight option to plugins)
  • Markdown extensions
  • Subcommands
  • Custom YAML tags in mkdocs.yml

For instance, subcommands would allow the blog plugin of Material for MkDocs to make it easy to scaffold a new post. Custom YAML tags would allow to solve things like #3331. I've thought about creating a CLI for Material for MkDocs, but hooking into the mkdocs CLI would feel more natural.

@mkusz
Copy link

mkusz commented Apr 21, 2024

As for log levels (#2876 ) and overall better debugging while developing, I have created a plugin for that, called pub-debugger. This is core functionality for development, but not sure if we want to invest much time in it since default console logging is usefull for normal user. More in depth view is only needed during development phase.

@mkdocs mkdocs locked and limited conversation to collaborators Apr 22, 2024
@tomchristie tomchristie converted this issue into discussion #3676 Apr 22, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

3 participants