summary refs log tree commit diff stats
path: root/lib/packages/docutils/rstgen.nim
Commit message (Collapse)AuthorAgeFilesLines
* Propagate the outDir to rstgen to fix hrefs for modules in subdirs (#14479)Kaushal Modi2020-05-281-3/+13
|
* docgen: mangling using _. instead of @@ to avoid issue (#14454)Timothee Cour2020-05-261-2/+2
|
* docgen: fix #14448 show @@ as .. in href text (#14451)Timothee Cour2020-05-251-1/+6
|
* fix some issues with --backend (#14363)Timothee Cour2020-05-161-1/+1
| | | | | * fix some issues with --backend * fix https://github.com/timotheecour/Nim/issues/175; improve upon #14306
* Make --backend:cpp|js work for :test: code-blocks as well (#14306)Kaushal Modi2020-05-111-1/+1
| | | | | | | | | Continues https://github.com/nim-lang/Nim/commit/9502e39b634eea8e04f07ddc110b466387f42322 Ref: - https://github.com/nim-lang/Nim/commit/9502e39b634eea8e04f07ddc110b466387f42322#commitcomment-39087584 - https://github.com/nim-lang/Nim/pull/14278 Fixes https://github.com/nim-lang/Nim/issues/13129 .
* Fix #13631 (#13789)Juan Carlos2020-03-291-2/+2
|
* fix several typos in documentation and comments (#12553)Nindaleth2019-10-301-1/+1
|
* Fix word wrappingJjp1372019-10-221-7/+11
|
* Fix many broken linksJjp1372019-10-221-7/+7
| | | | | | Note that contrary to what docgen.rst currently says, the ids have to match exactly or else most web browsers will not jump to the intended symbol.
* use system.move instead of system.shallowCopy if the GC mode requires itAndreas Rumpf2019-10-041-5/+8
|
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-271-2/+2
|
* there is only one style -- my styleAraq2019-07-101-16/+16
|
* document proper imports, fixes #8164 (#10698)Miran2019-02-191-0/+2
|
* docgen: render 'interpreted text' the same as inline literals for markdown ↵Araq2019-01-111-3/+1
| | | | compat
* Don't prevent ',' from getting escaped in theindex.htmlKaushal Modi2018-09-281-3/+7
| | | | | | - Enable escaping of links in theindex.html - Fixes https://github.com/nim-lang/Nim/issues/9107. - Second part of the fix for https://github.com/nim-lang/Nim/issues/9097.
* nim doc: simplifiy index generationAraq2018-09-131-7/+10
|
* index generation for docgen knows about subdirectories; index knows about ↵Araq2018-09-131-35/+45
| | | | enum values; fixes import statement for runnableExamples
* even more strict isNil handling for strings/seqs in order to detect bugsAraq2018-08-221-16/+10
|
* WIP: disallow 'nil' for strings and seqsAndreas Rumpf2018-08-131-5/+4
|
* fixes more nil string bugsAraq2018-08-081-4/+3
|
* Better doc search (#8260)Ray Imber2018-07-201-4/+8
| | | | | | | | | | | | | | | | | | * Modified the doc generation to produce a custom data attribute to allow for better search functionality * Implemented fuzzy matching for the Nim Doc search instead of the simple regex match. * Fix to the WordBoundry state transition from code review with @Varriount. Also removed silly testing template that is no longer used. * Update fuzzysearch.nim * Update fuzzysearch.nim * Update fuzzysearch.nim * Update dochack.nim * Update dochack.nim
* removed global variable from rstgen.nimAndreas Rumpf2018-05-271-5/+8
|
* Rstgen/xml tree fixes (#7823)Dominik Picheta2018-05-231-29/+34
| | | | | | | | | | | | | * Don't prefix lang names with "lang" in rstgen. * Implements ability to render xmltree w/o \n. Fixes <> for `data-*` attrs. * Various rstgen fixes. * Fixes security vulnerabilities due to not escaping some code. * Adds <video> support and improve `.. image:: ` directive. * Adds comment as requested.
* RST package: don't use obsolete toLower procAndreas Rumpf2018-04-291-1/+1
|
* docutils: make ':test:' work without argumentAndreas Rumpf2018-04-151-3/+6
|
* 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
|