Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)GL
Glitterkoe @lemmy.world
Posts 1
Comments 7
Testable examples with MkDocs
  • By now, the pymdownx.snippets extension that retrieves sections from plain pytest Python files seems to be my way to go. Tests run code as always, which is also formatted as always, specifically marked sections end up in docs. Win, win, win by grace of the scissors operator.

  • The shady world of Brave selling copyrighted data for AI training
  • Tried it for a week or two, but since I reinstalled Firefox I really don't understand why I was judging/hating so much in the past years. Yes, Chrome/ium used to be waaaay faster, but Mozilla just has their shit together most of the time. The Debian of browsers so to speak.

  • Testable examples with MkDocs

    Hey there!

    I'm looking to move my documentation over to MkDocs (+Material Theme), but I'm struggling to integrate testable code examples. Does anyone have a workflow for this?

    Main requirements:

    • Testable. Want to make sure my examples work as intended.
    • Continuable code fences (i.e. some regular Markdown in between chunks of code)

    Nice-to-have:

    • Formatting
    • Output checking (otherwise, regular asserts will do)

    I would have thought Python to have near first-class support for this, but there doesn't seem to be a clear winner as far as plugins go.

    Any ideas?

    1