开发者

Getting started about writing documentation for django application [closed]

开发者 https://www.devze.com 2023-03-27 14:01 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve开发者_StackOverflow社区 this question? Update the question so it focuses on one problem
Closed. This question needs to be more focused. It is not currently accepting answers.

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 question

I 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.
0

精彩评论

暂无评论...
验证码 换一张
取 消