aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Documentation/sphinx
AgeCommit message (Collapse)AuthorFilesLines
2020-11-16doc: fix extracted autodoc when short description ends with a ?Luc Van Oostenryck1-2/+3
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2020-08-10doc: decrease vertical spacingLuc Van Oostenryck1-0/+13
The vertical spacing in the generated HTML is a bit excessive to my taste. So decrease it somehow, especially the top of lists. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2020-08-10doc: make the sidebar more compactLuc Van Oostenryck1-0/+4
There is generous spacing in the sidebar, too generous. So, reduce it to something more compact, which will also allow more entries without scrolling. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2020-08-10doc: use a smaller logo in the sidebarLuc Van Oostenryck1-0/+3
The logo takes quite a bit height in the sidebar and so pushes the table of content too much at the bottom. Fix this by reducing the logo to 50%. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2020-05-15doc: do not use obsolete sphinx.ext.autodoc.AutodocReporterLuc Van Oostenryck1-5/+5
sphinx.ext.autodoc.AutodocReporter is obsolete since Sphinx 1.7 and removed in some later versions. So, replace it by the code suggested in the release notes when it was obsoleted. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2018-08-21doc: automatically insert the blank line for listsLuc Van Oostenryck1-0/+3
ReST requires a blank line to start a list. This is a bit annoying for the internal documentation because this makes, IMO, things less readable in the code. Tweak the documentation extraction tool to automatically insert these blank lines (between a line ending with ':' and the next one if not empty). Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2018-08-21doc: simplify the creation of the viewlistLuc Van Oostenryck1-6/+5
Each bloc-comment is entered in the view list as a single multiline plus a final blank line. This is more complicated than needed and it's useless to first concatenate these lines to split them directly after. Also it makes harder to correctly track the line numbers. Fix this by adding the lines one by one, each with their own lineno. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2018-05-21doc: add sphinx domain for IR instruction indexationLuc Van Oostenryck1-0/+75
The doc for IR instructions used definition lists to structure the instructions names and their description. This is simple to write and present well but it doesn't put the instructions' name in the index. Fix this by adding a new domain, with a single directive 'op' which takes the instruction name, inserts an index entry and uses it for the definition. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2018-05-21autodoc: support muti-line param & return descriptionsLuc Van Oostenryck1-3/+17
Short descriptions are good but sometimes you can't describe thinsg well enough with a single line. So, add support for multi-line descriptions. The additional lines need to be indented with a tab to be recognized as such. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2018-05-21autodoc: add markup to argument's referencesLuc Van Oostenryck1-0/+7
The syntax for a parameter is '@<name>'. Let also use this when referencing a parameter name in another section (other parameters or long description) and mark these references in bold (the same as the parameters themseelves are presented). Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2018-05-21autodoc: add a sphinx c:autodoc directive for the extracted docLuc Van Oostenryck1-0/+49
Add a sphinx extension for the c:autodoc directive which will extract the doc and inject it into the document tree. This part is based on Jani Nikula's project: hawkmoth [1] which has exactly the same goal as this series but which use clang to parse the C code and extract the bloc-coments. [1] https://github.com/jnikula/hawkmoth Based-on-work-by: Jani Nikula <jani@nikula.org> Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2018-05-21autodoc: convert extracted doc to reSTLuc Van Oostenryck1-13/+59
The extracted doc can't be used as is by sphinx as it needs to have some additional annotations. Convert the extracted doc into a true reST format wich can directy be used by sphinx. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
2018-05-21autodoc: extract doc from the C filesLuc Van Oostenryck1-0/+197
Add a tool which parse comment from source files and extract kerneldoc-like documentation from them. Note: this is rather quite crude, support only generic 'blocs' and doc for functions; it has no support for anything else. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>