Skip to content
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

Simplified docstring 2 markdown generation #31

Closed
wants to merge 13 commits into from

Conversation

s-martin
Copy link
Owner

@s-martin s-martin commented Dec 22, 2023

This PR tests different docstring converters. In the end it should override #26 (result PR #28) and MiczFlor#2159

tl;dr
No easy solution, not many options available

Currently tested are

lazydocs

  • ⬆️ Creates a md file for each py file and an overview file
  • ⛔Doesn't recognize the syntax used (e.g. :param)
  • ⛔not actively maintained

Example: https://github.com/s-martin/RPi-Jukebox-RFID/blob/future3/pydoc-markdown/documentation/developers/docstring-lazydocs/docstring.md

pydoc-markdown

  • ⬆️ Understands our syntax
  • ⛔ One big markdown file
  • ⛔ no easy customization

Example: https://github.com/s-martin/RPi-Jukebox-RFID/blob/future3/pydoc-markdown/documentation/developers/docstring-pydoc-markdown/docstring.md

Current Status
This script is used for testing both tools: https://github.com/s-martin/RPi-Jukebox-RFID/blob/future3/pydoc-markdown/run_docstring2markdown.sh

TODO:

  • decide which tool to use
  • integrate in pre commit hook

Reference:

@Groovylein
Copy link

How is the coverage of docstrings in our code?

An alternative I found is:
https://github.com/python-lsp/docstring-to-markdown

@s-martin
Copy link
Owner Author

How is the coverage of docstrings in our code?

Ok, I would say :)

An alternative I found is:
https://github.com/python-lsp/docstring-to-markdown

I have seen that, but so far I wanted to start with tools where I don't have to do the file handling anymore. But worth a look!

@s-martin
Copy link
Owner Author

Real PR done here MiczFlor#2181

@s-martin s-martin closed this Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants