Getting started about writing documentation for django application [closed]
Want to improve开发者_StackOverflow社区 this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this questionI would like to write a documentation for one of my Django based project. I found that Django people uses reStructureText and Sphinx for this purpose. I have following queries.
- How do I get started with writing documentations using reStructureText and Sphinx?
- What best practices should I follow so that documentation remain well-organized, versioned easy to understand and easy to manage?
Documentation of sphinx is here: https://www.sphinx-doc.org
- You start by running
sphinx-quickstart
. - "Well organized" is really your own matter. This depends on your taste and your project.
- "Easy to manage": include doctests in your code documentation and autodoc in you sphinx setup. This way you can always see if your documentation matches your code when you run your testsuit. (But only use doctest for testing your docs, to test your code, you should have separate unit tests, otherwise the documentation will be unusable...)
- As for "easy to understand", this is really up to you.
精彩评论