<div dir="ltr"><div dir="ltr">- Accessible, usable docs are worth something in ROI<br>  - <a href="https://www.writethedocs.org/">https://www.writethedocs.org/</a><br>  - <a href="https://read-the-docs.readthedocs.io/en/latest/">https://read-the-docs.readthedocs.io/en/latest/</a><br>  - <a href="https://github.com/rtfd/readthedocs-docker-images/issues/47#issuecomment-485712800">https://github.com/rtfd/readthedocs-docker-images/issues/47#issuecomment-485712800</a><br>    - Dockerfile that extends from readthedocs/build:latest (which has the GBs of latex necessary to run `make latexpdf` for all you PDF lovers out there)<br><br>- <a href="https://github.com/yoloseem/awesome-sphinxdoc">https://github.com/yoloseem/awesome-sphinxdoc</a><br>  - There are various Sphinx extensions for optionally including generated API docs for various languages<br>  - If you add the extensions you want installed to your requirements.txt or environment.yml, ReadTheDocs will install those for every build. You can also create (and maintain) a custom Docker image with all of the docs building dependencies installed (e.g. requirements_dev.txt and/or docs/requirements.txt)<br><br>- <a href="https://kernel.readthedocs.io/en/latest/kernel-documentation.html">https://kernel.readthedocs.io/en/latest/kernel-documentation.html</a><br>  - This says "Copyright 2016"? That's set in conf.py<br><br>I keep a tools doc in ReST:<br>- <a href="https://westurner.github.io/tools/#sphinx">https://westurner.github.io/tools/#sphinx</a><br>- <a href="https://westurner.github.io/tools/#docutils">https://westurner.github.io/tools/#docutils</a><br><br>I'll just CC those sections here<br>wrapped in a Markdown fenced code block<br><br>```rst<br><br>.. index:: Docutils<br>.. _docutils:<br><br>Docutils<br>~~~~~~~~~~~~~~~~~~~<br>| Homepage: <a href="http://docutils.sourceforge.net">http://docutils.sourceforge.net</a><br>| PyPI: <a href="https://pypi.python.org/pypi/docutils">https://pypi.python.org/pypi/docutils</a><br>| Docs: <a href="http://docutils.sourceforge.net/docs/">http://docutils.sourceforge.net/docs/</a><br>| Docs: <a href="http://docutils.sourceforge.net/rst.html">http://docutils.sourceforge.net/rst.html</a><br>| Docs: <a href="http://docutils.sourceforge.net/docs/ref/doctree.html">http://docutils.sourceforge.net/docs/ref/doctree.html</a><br>| Docs: <a href="https://docutils.readthedocs.io/en/sphinx-docs/">https://docutils.readthedocs.io/en/sphinx-docs/</a><br>| Docs: <a href="https://docutils.readthedocs.io/en/sphinx-docs/ref/rst/restructuredtext.html">https://docutils.readthedocs.io/en/sphinx-docs/ref/rst/restructuredtext.html</a><br>| Src: svn <a href="http://svn.code.sf.net/p/docutils/code/trunk">http://svn.code.sf.net/p/docutils/code/trunk</a><br><br>Docutils is a :ref:`Python` library which 'parses" :ref:`ReStructuredText`<br>lightweight markup language into a doctree (~DOM)<br>which can be serialized into<br>HTML, ePub, MOBI, LaTeX, man pages,<br>Open Document files,<br>XML, JSON, and a number of other formats.<br><br><br>.. index:: Sphinx<br>.. _sphinx:<br><br>Sphinx<br>~~~~~~~~~~~~~~~~~<br>| Wikipedia: `<<a href="https://en.wikipedia.org/wiki/Sphinx_(documentation_generator)">https://en.wikipedia.org/wiki/Sphinx_(documentation_generator)</a>>`_<br>| Homepage: <a href="https://pypi.python.org/pypi/Sphinx">https://pypi.python.org/pypi/Sphinx</a><br>| Src: git <a href="https://github.com/sphinx-doc/sphinx">https://github.com/sphinx-doc/sphinx</a><br>| Pypi: <a href="https://pypi.python.org/pypi/Sphinx">https://pypi.python.org/pypi/Sphinx</a><br>| Docs: <a href="http://sphinx-doc.org/contents.html">http://sphinx-doc.org/contents.html</a><br>| Docs: <a href="http://sphinx-doc.org/markup/code.html">http://sphinx-doc.org/markup/code.html</a><br>| Docs: <a href="http://www.sphinx-doc.org/en/stable/markup/inline.html#ref-role">http://www.sphinx-doc.org/en/stable/markup/inline.html#ref-role</a><br>| Docs: <a href="http://pygments.org/docs/lexers/">http://pygments.org/docs/lexers/</a><br>| Docs: <a href="http://thomas-cokelaer.info/tutorials/sphinx/rest_syntax.html">http://thomas-cokelaer.info/tutorials/sphinx/rest_syntax.html</a><br>| Docs: <a href="https://github.com/yoloseem/awesome-sphinxdoc">https://github.com/yoloseem/awesome-sphinxdoc</a><br><br>Sphinx is a tool for working with<br>:ref:`ReStructuredText` documentation trees<br>and rendering them into HTML, PDF, LaTeX, ePub,<br>and a number of other formats.<br><br>[...]<br><br>```<br><br>FWIW, ReadTheDocs can host multiple versions of the docs according to the repo<br>tags you specify in the web admin.<br>There may be a way to use the RTD JS UI for selecting versions<br>with the docs hosted on your own server?<br>Such as <a href="https://www.kernel.org/doc/html/latest/">https://www.kernel.org/doc/html/latest/</a><br><br>- <a href="https://github.com/torvalds/linux/blob/master/Documentation/conf.py">https://github.com/torvalds/linux/blob/master/Documentation/conf.py</a><br>- <a href="https://github.com/torvalds/linux/blob/master/Documentation/Makefile">https://github.com/torvalds/linux/blob/master/Documentation/Makefile</a><br><br>- <a href="https://github.com/torvalds/linux/blob/master/Documentation/doc-guide/index.rst">https://github.com/torvalds/linux/blob/master/Documentation/doc-guide/index.rst</a><br>- <a href="https://github.com/torvalds/linux/blob/master/Documentation/doc-guide/sphinx.rst">https://github.com/torvalds/linux/blob/master/Documentation/doc-guide/sphinx.rst</a><br>- <a href="https://github.com/torvalds/linux/blob/master/Documentation/doc-guide/kernel-doc.rst">https://github.com/torvalds/linux/blob/master/Documentation/doc-guide/kernel-doc.rst</a><br><br>- <a href="https://www.kernel.org/doc/html/latest/">https://www.kernel.org/doc/html/latest/</a><br>- <a href="https://www.kernel.org/doc/html/latest/doc-guide/">https://www.kernel.org/doc/html/latest/doc-guide/</a><br>- <a href="https://www.kernel.org/doc/html/latest/doc-guide/sphinx.html#sphinx-install">https://www.kernel.org/doc/html/latest/doc-guide/sphinx.html#sphinx-install</a><br>- <a href="https://www.kernel.org/doc/html/latest/doc-guide/kernel-doc.html#writing-kernel-doc-comments">https://www.kernel.org/doc/html/latest/doc-guide/kernel-doc.html#writing-kernel-doc-comments</a><br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 23, 2019 at 12:31 PM Jonathan Corbet <<a href="mailto:corbet@lwn.net">corbet@lwn.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 23 Apr 2019 15:01:32 +0200<br>
Peter Zijlstra <<a href="mailto:peterz@infradead.org" target="_blank">peterz@infradead.org</a>> wrote:<br>
<br>
> But yes, I have 0 motivation to learn or abide by rst. It simply doesn't<br>
> give me anything in return. There is no upside, only worse text files :/<br>
<br>
So I believe it gives even you one thing in return: documentation that is<br>
more accessible for both readers and authors.  More readable docs should<br>
lead to more educated developers who understand the code better.  More<br>
writable docs will bring more people in to help to improve them.  The<br>
former effect has been reported in the GPU community, where they say that<br>
the quality of submissions has improved along with the docs.  The latter<br>
can be observed in the increased number of people working on the docs<br>
overall, something that Linus noted in the 5.1-rc1 announcement.<br>
<br>
Hopefully that's worth something :)<br>
<br>
Thanks,<br>
<br>
jon<br>
</blockquote></div>