home.social

#mkdocstrings — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #mkdocstrings, aggregated by home.social.

  1. Shout out to everybody at for nominating for the first round of OSS funding! ❤️❤️❤️ Their fund initiative is mentioned in their 2024 annual report: labs.quansight.org/blog/labs-a

  2. I released both TypeScript and C handler for to the public. My time is limited, my knowledge of these languages too, and these handlers are experimental, so I decided to make them public, hoping they'll get traction and contributions from people experienced in these languages 🙂

    - mkdocstrings.github.io/typescr
    - mkdocstrings.github.io/c/

  3. After a long period of refactors, bug fixes, docs and general support, I will now focus on adding features to 🙂

    The latest two Insiders features:

    - backlinks! mkdocstrings.github.io/python/
    - "public" filtering method: mkdocstrings.github.io/python/

    Coming up next:

    - (insiders) ordering according to `__all__`: github.com/mkdocstrings/python
    - (insiders) fine-grain configuration: github.com/mkdocstrings/mkdocs
    - support unpacking `Unpack[TypedDict]` in signatures: github.com/mkdocstrings/python

  4. I'm really close to releasing the backlinks feature of mkdocs-autorefs/mkdocstrings.

    I'm just working on merging this performance optimization in Python-Markdown first, because otherwise build time can increase a lot: github.com/Python-Markdown/mar.

  5. Damn. Seem to have run into a problem that means that isn't being shown off as well as it should be: github.com/mkdocstrings/mkdocs

  6. I'm seeing more and more users adding configuration options that do not exist to their config. I suppose they come from 🤷

  7. New Insiders feature coming soon in : automatic backlinks!

    Amazing experience combined with Material for MkDocs instant previews 🚀

    Example in Pydantic's docs:

  8. mkdocstrings-python can now format signatures and attribute values with Ruff, so you don't need to depend on Black anymore if you prefer Ruff 🙂

    It spawns a subprocess each time, but Ruff is so fast that I didn't see any perf hit. Later, when Ruff has official (or at least non-experimental third-party) Python bindings, we can refactor to avoid spawning subprocesses.

  9. mkdocstrings users, how would you feel if the Python handler started depending on Pydantic? The goal is to improve data validation (configuration options) as well as error reporting, and ease maintenance of JSON schemas (linting in IDEs like VSCode).

  10. mkdocstrings now has a dedicated Discord server, for those of you who prefer this platform 😄

    discord.gg/uPh9mmS8

  11. And now the handlers projects and features! First, the mkdocstrings-shell handler, which lets you inject documentation for shell scripts or shell libraries:

    mkdocstrings.github.io/shell/

  12. @vitaut @bert_hubert wow, how come I only learn now about this handler :D

  13. Any experts over here? When debugging , frames often report the wrong line number in Jinja templates. Calling `warnings.warn` from a template also starts reporting frames from the parent template, not the current one 🤔 Any idea why?

    More details here: github.com/pallets/jinja/discu

  14. Super excited about the possible outcomes of this request: github.com/pallets/jinja/issue -> to preserve comment in the AST when parsing sources.

    This would allow extracting documentation from sources directly, to automatically render API docs for Jinja templates (for example with a Jinja handler).

    Docs closer to the sources for better readability and maintainability 🙂

  15. ...aaaaaand one more feature for -: on-the-fly modernization of type annotations 🏄

    Even if you're stuck using typing.Optional, typing.Union, typing.List, etc., this option will transform these into their more modern equivalent when rendering your docs.

    For example:

    Optional[Union[int, List[int]]]

    ...becomes:

    int | list[int] | None

    Docs: mkdocstrings.github.io/python/

  16. Phew, just pushed a first prototype of a handler for 🥵

    If you are part of Insiders and are interested in trying it out, you can find some instructions here: github.com/mkdocstrings/mkdocs

  17. I just switched to my template. It now uses uv instead of .

    Since dependency resolution and installation is much faster, I don't even bother grouping dependencies by use (docs, tests, etc.), and install everything in each CI job.

    Since it's faster, I've also removed the limit on the maximum number of parallel jobs (previously it was set to 4).

    Result: CI runs 4x faster (around 2min instead of 8min). Neat 🙂

    github.com/mkdocstrings/mkdocs

  18. (Insiders) just got a new feature: expressions modernization.

    It will allow downstream tools like to render type annotations compatible with older Python versions, as if they were using latest features of the language.

    Typically:

    - typing.Union[int, str] becomes int | str
    - typing.Optional[int] becomes int | None
    - typing.Set[int] becomes set[int]
    - etc.

    mkdocstrings.github.io/griffe/

  19. New feature for the handler of : parameter headings!

    Enabling headings for parameters will give each one of them:

    - a permalink (great for pointing users to the param docs)
    - a ToC entry
    - an objects inventory entry

    These two entries allow cross-references from internal and external pages 🚀

    See the docs here: mkdocstrings.github.io/python/

  20. Next Insiders feature in the handler for : permalinks on function/method parameters! Each parameter will get a permalink, an entry in the table of contents, and an entry in the generated objects inventory, allowing cross-references.

    To manually cross-link, the syntax will be `[link to param][path.to.function(param)]`.

    Please comment on the suggested syntax here: github.com/mkdocstrings/mkdocs

    ToC preview:

  21. 2024 starts well with the first funding goal reached for and more generally my Insiders projects! 🚀

    The dashboard on GitHub sponsors is the source of truth, so I'll wait for it to actually mark the goal as reached before releasing some features into the community versions 🙂

    I'll start merging right now anyway, but expect a few days delay before seeing new versions.

    pawamoy.github.io/insiders/#50

  22. We're approchaing the $500/month funding goal for (and more generally all my Insiders projects).

    The funding goal is called "PlasmaVac User Guide" so, which one of these PlasmaVac would you like to get for christmas 😂 🎄 ?

    Done with 🤖

  23. now has proper API docs 🎉 They are built with and a extension for PEP 727. The PEP was written by @tiangolo himself!

  24. The PR to add API docs to - was merged 🎉 72 files changed, +2K/-1K loc, quite a PR! github.com/Python-Markdown/mar

    Too bad the docs deploy job failed 😅 Will update and add the link once the docs are up 🙂

    Also, it means we'll be able to load Python-Markdown's inventory and cross-reference its API!

    With :

  25. The handler of now supports rendering function signature overloads. It stacks them up vertically (see screenshots).