summary refs log tree commit diff stats
path: root/lib/packages/docutils/rstgen.nim
Commit message (Collapse)AuthorAgeFilesLines
* fix code-block test bugs: fix #17183, fix ↵Timothee Cour2021-02-261-1/+4
| | | | | | | https://github.com/timotheecour/Nim/issues/620 (#17184) * fix code-block test bugs: fix #17183, fix https://github.com/timotheecour/Nim/issues/620 * cleanup
* make rst.nim use object variant (#17138)Andrey Makarov2021-02-221-26/+24
| | | | | | | * make rst.nim use object variant * add workaround * fix mistake
* RST: implement footnotes and citations (#16960)Andrey Makarov2021-02-151-5/+44
| | | | | | | | | * RST: implement footnotes and citations * manual fixup of nimdoc.out.css * remove unused code * shorter printing code * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* rst: single backticks now render correctly in both rst2html and github (#17028)Timothee Cour2021-02-131-0/+1
| | | | | | * rst: `` => ` * support default-role in rst2html * update docstyle regarding single vs double backticks
* RST: implement internal targets (#16614)Andrey Makarov2021-01-111-53/+82
|
* RST: improve line blocks (#16518)Andrey Makarov2020-12-311-2/+14
|
* RST: implement admonitions (#16438)Andrey Makarov2020-12-271-0/+24
|
* doc/rst2html: some few fixes for enumerated and bullet lists (#16295)Andrey Makarov2020-12-141-3/+51
| | | | | | | | | | | | * fix bullet/enumarated lists with many blank lines * fix enumerated list parsing * fix parse failure when next line after list empty * implement arbitrary start of enumerator * check that enumerators are in order * remove redundant start=x if x=1 or a * add some doc on implemented features * update start in rst_examples.rst * allow upper-case letters + more docs
* RST tables: fix latex col number; allow less than three of `=` (#16040)Andrey Makarov2020-12-041-1/+2
|
* fixed article duplication typos (#16216)ihlec2020-12-021-1/+1
|
* move rest of tests to testament (#16140)flywind2020-11-271-6/+0
| | | | * move rest of tests to testament * Update tests/stdlib/tsums.nim
* rst: add support for markdown tables (#15854)Miran2020-11-101-1/+1
| | | | | | | * rst: add support for markdown tables * change template into proc * don't create unnecessary `seq[string]`
* fixes bootstrapping for any machine that has a Nim already installed ↵Andreas Rumpf2020-10-201-7/+6
| | | | [backport:1.4] (#15660)
* fix #6430, support `:target:` for images (#15379)Miran2020-09-211-0/+12
|
* Add rstgen.rstToLatex convenience proc for renderRstToOut and ↵Juan Carlos2020-06-121-0/+11
| | | | initRstGenerator with outLatex output, see https://github.com/nim-lang/fusion/pull/11#issuecomment-641804899 (#14629)
* 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
| |