Open KesterTong opened 8 years ago
cheapskate has an option to turn off the linebreaks, so it would be an easy thing to do. But how many of our docs use this assumption and would look bad?
I took a quick look and it seems like few docs rely on these hard line breaks for formatting. In some cases minor changes would be needed like adding missing periods. On the other hand, with the current CSS, putting everything on one line can result in very long lines that are hard to read (e.g. 166 chars). I attached an image with the original docs, updated docs, and updated docs with changes to CSS to make the font size 12pt (for text only) and the left and right margins equal. To me the version with updated CSS is easier to read.
I'm happy to go through the docs and make the needed fixes, and update the doc generation code and CSS, as long as you're not in a great hurry (eta 1-2 months as I have to learn how to build Idris and the docs). If so feel free to assign the issue to me.
That sounds like a nice project! Don't worry about it taking time.
Thanks @melted I will start on this. I have a few questions.
make lib_doc
builds the docs for the Idris Haskell packages and make user_doc
builds http://docs.idris-lang.org/en/latest/ which doesn't contain the library docs.@KesterTong
IIRC the IdrisDoc pages on http://www.idris-lang.org/docs are put their manually, and are not linked to the readthedocs pages.
For building documentation:
make doc
builds the haddockmake lib_doc
builds the Idris doc for packages in lib/
make user_docs
builds the sphinx user documentation.Any more questions just ask.
Common conventions for source code require line breaks every 80 characters. But doing so induces line breaks in the docstring which is not necessarily desired. E.g. in the source code
The line breaks result in a docstring with line breaks.
I believe that the best approach is to interpret the above comment as the following markdown:
which should ignore the line breaks since only double line breaks should be interpreted as real line breaks. (note, Github flavored markdown treats a single line break as a line break, but most other markdown processors don't).