I’m looking for a way to generate a single Markdown (.md) file that includes all the file names, function definitions, and docstrings from my Python files. Ideally, this should traverse a directory recursively while respecting the .gitignore rules.

Does anyone know of a package that accomplishes this?

  • biocoder.ronin@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 个月前

    Will checkout your repos. Thanks for comment. It’s been a breeze to write python and the docstrings are pretty great. I’ve had periods where everything just worked for Sphinx autodoc and then others where it’s just broken for months. Thanks again

    • logging_strict@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      2 个月前

      If/when run into issues with Sphinx, 1st the project should be accessible online then message me with the URL and ask for help. I’m battle hardened; will conquer whatever Sphinx autodoc demons assails you.

      This goes for everyone else as well. If have the Sphinx blues, don’t whine about it, just ask for help.

      Especially if your project is awe inspiring. Online read lots of complaining about writing documentation, but see it as just as important as the code or business model. Your documentation should not suck. Don’t half ass it.

      Also i’m really curious how autodoc stays broken (for months). Take that to mean, there are things that need to be learned. Not knowing those things Sphinx can be frustrating. For example, dealing with Type aliases and table of contents.