summary refs log tree commit diff stats
path: root/lib/packages/docutils/rstgen.nim
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Moves TOC index entry generation to rstgen module.Grzegorz Adam Hankiewicz2014-04-211-1/+23
| | | | | We want it there so that index entries appear in the same order as they are found in the input text.
* Splits index into documents and APIs.Grzegorz Adam Hankiewicz2014-04-211-45/+193
|
* Adds explicit titles to documentation index.Grzegorz Adam Hankiewicz2014-04-211-5/+8
|
* merged better html links #850Araq2014-04-081-13/+77
|
* 'nil' as a statement is deprecated, use an empty 'discard' insteadAraq2014-01-191-1/+1
|
* resolved conflicts with masterAraq2014-01-181-1/+12
|\
| * Adds docstring to rstgen.defaultConfig.Grzegorz Adam Hankiewicz2013-12-231-1/+12
| |
* | Documents rstgen index related procs.Grzegorz Adam Hankiewicz2014-01-151-1/+12
| |