readthedocs / readthedocs.org

The source code that powers readthedocs.org
https://readthedocs.org/
MIT License
7.93k stars 3.58k forks source link

Create a guide on integrating documentation generated from source code into your docs #7935

Open davidfischer opened 3 years ago

davidfischer commented 3 years ago

We should have a guide on generating documentation from source code and integrating it into a larger docs project. Ideally we would have this for Sphinx and MkDocs but prioritizing Sphinx first is reasonable. We should discuss the trade-offs so people can make the right decision for their project. We can also perhaps briefly mention that autogenerated docs are not a substitute for other docs but that both are helpful.

There are a few packages here for generating documentation from source code:

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

astrojuanlu commented 2 years ago

I wrote a chapter on autodoc as part of the upcoming new Sphinx tutorial https://github.com/sphinx-doc/sphinx/pull/9534 and I also included a brief mention of autosummary. I think that, after review, it will become a good foundation for other materials.

In particular, we could focus on: