summary refs log tree commit diff stats
path: root/lib/packages/docutils/rstgen.nim
Commit message (Collapse)AuthorAgeFilesLines
* the documentation generator now supports ':test:' for the testing of test ↵Araq2017-11-281-5/+19
| | | | snippets
* the documentation generator now supports system.runnableExamplesAraq2017-11-261-1/+1
|
* Add possibility to get language class to listings (#6705)Silvio2017-11-081-2/+2
| | | | Add the possibility to add class `lang<Name>` to code listings. Needed for restricting `run` to nim code (see https://github.com/nim-lang/nimforum/pull/111 )
* fixes #6609; 'if' expressions support multiple statements; minor breaking changeAraq2017-11-051-1/+2
|
* Remove expr/stmt (#5857)Arne Döring2017-07-251-2/+2
|
* Make countLines() the same as len(splitLines(s)) (#5470)Simon Krauter2017-03-031-1/+1
| | | | | The result of countLines() is now increased by 1 compared to the old version. Fixes #5460.
* docgen: working search featureAraq2016-09-091-3/+3
|
* generated theindex.html is valid htmlAraq2016-09-091-10/+21
|
* Merge pull request #3831 from ephja/nimrod-to-nimAndreas Rumpf2016-02-061-2/+2
|\ | | | | nimrod -> nim
| * nimrod -> nimErik Johansson Andersson2016-02-051-2/+2
| |
* | RST: Output <object> for SVG images in HTMLFelix Krause2016-02-021-7/+17
|/
* Made docgen emit valid XML by defaultFelix Krause2016-01-111-2/+2
|
* udpated the compiler and tester to use getOrDefaultAraq2015-10-131-10/+13
|
* Fix for image directive with periodssingularperturbation2015-08-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Saw in https://github.com/nim-lang/nimforum/issues/41 that there was an issue in rendering inline images. Traced back through rstgen and found that it was not counting something like: `.. image:: http://i.imgur.com/oCem13Y.png` as valid since it contained a period, and this wasn't in the set of valid characters, so the empty string is returned by default. Added a period to the allowable characters, and now renders correctly. Test case: ``` import rst, rstgen, strtabs var docConfig: StringTableRef docConfig = rstgen.defaultConfig() docConfig["doc.smiley_format"] = "/images/smilieys/$1.png" proc rstToHtml(content: string): string = result = rstgen.rstToHtml(content, {roSupportSmilies,roSupportMarkdown}, docConfig) var a: string = rstToHtml(".. image:: http://i.imgur.com/oCem13Y.png") echo a ```
* documentation generator emits configurable html for code listingsAraq2015-07-141-6/+14
|
* lib/packages/docutils - Dropped 'T' from typespdw2015-06-041-60/+61
|
* Turn some test outputs into actual testsOleh Prypin2015-04-211-3/+4
|
* Don't run non-test code when defined(testing)Oleh Prypin2015-04-211-1/+1
|
* fixes #2476Araq2015-04-191-132/+132
|
* rstgen: Unique reference names in TOCdef2015-03-131-1/+8
| | | | | - Fixes #2269 - Keeps track of higher level section to create unique reference names
* Replaced deprecated repeatStr() with repeat().Hans Raaf2015-03-041-2/+2
|
* Replaced deprecated repeatChar() with repeat() or spaces().Hans Raaf2015-03-041-1/+1
|
* Fix typosFederico Ceratto2015-02-151-1/+1
|
* Replace other common expressions with defined variableDustin Lacewell2015-01-121-2/+2
|
* Add named anchor links to procs in the documentation indexDustin Lacewell2015-01-121-2/+4
|
* Improved nimdoc styling.Nick Greenfield2014-12-191-2/+2
| | | | | | | This updates the inlined CSS in nimdoc.cfg, adds several helper classes (and a few divs) to the generated HTML (some in nimdoc.cfg, one in rstgen.nim), and tweaks the anchor linking scheme for headers in rstgen.nim.
* Moved smiliey format to config hash table.Dominik Picheta2014-12-041-5/+3
|
* smileys configurable; safer image attribute handlingAraq2014-11-291-18/+24
|
* fixes #1055Araq2014-11-161-4/+4
|
* Merge branch 'pr_adds_code_directive_to_rst' into ↵Grzegorz Adam Hankiewicz2014-11-031-14/+103
|\ | | | | | | | | | | | | | | | | pr_bigbreak_adds_code_directive_to_rst Conflicts: doc/tut2.txt lib/packages/docutils/rstgen.nim lib/system.nim
| * Fixes line numbering.Grzegorz Adam Hankiewicz2014-10-021-1/+1
| |
| * Handles :file: option for code blocks to avoid warnings.Grzegorz Adam Hankiewicz2014-07-261-0/+7
| |
| * Adds support for the ``.. code::`` rst directive.Grzegorz Adam Hankiewicz2014-07-191-14/+96
| | | | | | | | | | | | This modifies the existing ``.. code-block::`` to be treated as spec extension with a specific default language syntax. Also implements line numbering.
* | updated the compiler to use the new symbol namesAraq2014-08-281-10/+10
| |
* | renamefestAraq2014-08-231-6/+6
| |
* | the big renamefest: first stepsAraq2014-08-221-6/+6
| |
* | Escapes properly code blocks without highlite support.Grzegorz Adam Hankiewicz2014-07-281-1/+1
|/
* Computes TIndexEntry hash without temporary strings.Grzegorz Adam Hankiewicz2014-05-241-5/+6
|
* Adds colon to symbols in the index.Grzegorz Adam Hankiewicz2014-04-211-1/+1
| | | | | The colon makes it easier to get a unique match searching for symbols using words which may also appear as substrings or elsewhere.
* Inserts the title index term at the beginning of the buffer.Grzegorz Adam Hankiewicz2014-04-211-21/+34
|
* Removes text TOCs from the symbol index.Grzegorz Adam Hankiewicz2014-04-211-1/+6
|
* Assigns default title to module documentation.Grzegorz Adam Hankiewicz2014-04-211-4/+12
|
* Reduces length of lines to remove compilation warnings.Grzegorz Adam Hankiewicz2014-04-211-14/+16
|
* Fixes title and subtitle not setting the current section.Grzegorz Adam Hankiewicz2014-04-211-2/+2
|
* Fixes repeated index terms leading to same HTML anchor.Grzegorz Adam Hankiewicz2014-04-211-2/+18
| | | | | Instead of a hash for the rst node tree (which will always be the same) a simple counter table is used.
* Indexes tocs of documents even if they don't show any.Grzegorz Adam Hankiewicz2014-04-211-6/+6
|
* Generates quick jump list to modules.Grzegorz Adam Hankiewicz2014-04-211-4/+24
|
* Generates quick jump list to documentation files.Grzegorz Adam Hankiewicz2014-04-211-4/+26
|
* Refactors adhoc table of sequences into TIndexedDocs type.Grzegorz Adam Hankiewicz2014-04-211-59/+87
|
* Picks the correct symbol text for theindex embedded tocs.Grzegorz Adam Hankiewicz2014-04-211-2/+3
|