summary refs log tree commit diff stats
path: root/nimdoc/testproject/expected/subdir
Commit message (Collapse)AuthorAgeFilesLines
* docgen: sort symbols (fix #17910) (#18560)Andrey Makarov2021-07-251-5/+5
| | | | | | | | | | | | | | * docgen: sort symbols (fix #17910) * add workaround + change naming * switch to a dedicated sort comparator * fix numbers with unequal string lengths * dedicated `sortName` instead of `plainNameEsc`: * more compact names for non-overloaded symbols * more predictable Ascii sort (e.g. `<` instead of `&lt;`)
* docgen: move to shared RST state (fix #16990) (#18256)Andrey Makarov2021-06-201-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * docgen: move to shared RST state (fix #16990) * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update compiler/docgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update compiler/docgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update compiler/docgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * rename `cmdDoc2` to `cmdDoc` * fix (P)RstSharedState convention * new style of initialization * misc suggestions * 1 more rename * fix a regression Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Fix JS error on index page and detect dark mode (#18191)drtheuns2021-06-071-4/+9
| | | | | | | | | | | | | | | | * Fix JS error on index page and detect dark mode The theindex.html page doesn't have a dark mode switch so the main function will error because `toggleSwitch` is not defined. Checks have been added to prevent this from happening. Also add automatic detection of system settings for dark-mode. This could also be done with pure css, but then the dark mode variable declarations would have to be duplicated to work with the switch so I went with this approach. * Fix nimdoc tests * Fix rst2html tests
* fix #16993, #18054, #17835 runnableExamples now works with templates and ↵Timothee Cour2021-06-021-2/+2
| | | | nested templates (#18082)
* `doc2tex`: generate docs to Latex (#17997)Andrey Makarov2021-05-141-1/+1
| | | | | * `doc2tex`: generate docs to Latex * address some comments
* docgen: render pragmas by default except for a select list (and fix #9074) ↵Timothee Cour2021-04-011-1/+1
| | | | (#17054)
* fix #16901: sidebar groups now works with all routines, not just proc,func ↵Timothee Cour2021-03-191-5/+14
| | | | | | | (#17416) * fix #16901: sidebar groups now works with all routines, not just proc,func * fix tests
* fix #9102 docgen: sidebar now shows proc signatures instead of encoding (#16857)Timothee Cour2021-01-291-1/+1
|
* nimdoc: Initialize theme switch and pragma dots on DOMContentLoaded (#16247)Sebastian Reinhard2020-12-061-1/+3
| | | | | | | | | The default HTML template for nimdoc currently initializes the dark mode switch and pragma dots when the onload event is fired. But since the onload event does not fire until all external resources (images, stylesheets, fonts, etc.) have been loaded, the light theme is shown for a brief moment before the document is fully loaded, and it switches to the dark theme. This is quite jarring, especially on slower internet connections. So let's instead initialize these things on the DOMContentLoaded event, which is fired right after the document has been parsed and the initial DOM structure is ready. This means that we now display the dark mode immediately, without having to wait for external resources to load first. For reference, see: - https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event - https://developer.mozilla.org/en-US/docs/Web/API/Window/DOMContentLoaded_event I have updated the snapshot tests in `nimdoc/`, and done some manual testing of both the theme switch and the pragma dots, to confirm that this does not break anything. Please let me know if I've missed anything.
* [backport: 1.4] Better linebreaks (#15658)Miran2020-10-221-5/+5
|
* add Source+Edit links on top of every docgend file (#15642)Timothee Cour2020-10-221-0/+1
|
* group procs of the same name in TOC (#15487)Miran2020-10-051-1/+4
| | | | | | | | | | | * group procs of the same name in TOC * correctly show `sink` parameters in TOC * no need to reinvent the wheel - `mgetorPut` exists * better setting of text color [ci skip] * fix CSS for better alignment
* Fix theme switch load from local storage (#14897)Manuel Bojato2020-07-101-14/+5
| | | | | | | * fix theme switch load from local storage * Fix tests Co-authored-by: Clyybber <darkmine956@gmail.com>
* fix #8871 runnableExamples now preserves source code comments, litterals, ↵Timothee Cour2020-05-282-0/+12
| | | | | | | | | | | and all formatting; other bug fix (#14439) * fix #8871 runnableExamples now preserves source code comments, litterals, and all formatting * remove orig deadcode from getAllRunnableExamplesImpl * fix expected examples * add test to close https://github.com/nim-lang/Nim/issues/14473 * correctly handle regular comments before 1st token inside runnableExamples * add test to answer https://github.com/nim-lang/Nim/pull/14439#discussion_r431829199 * update tests
* Propagate the outDir to rstgen to fix hrefs for modules in subdirs (#14479)Kaushal Modi2020-05-281-0/+12
|
* fix #6583, fix #14376, index+search now generated for all projects, many bug ↵Timothee Cour2020-05-251-1/+4
| | | | | | | | | fixes with nim doc (#14324) * refs #6583 fix nim doc output * changelog * change default for outDir when unspecified * cleanups * --project implies --index
* fix #13150 `nim doc --project` now works reliably (#13223)Timothee Cour2020-02-061-2/+2
| | | | | | | | | | * fix #13150 `nim doc --project` works with duplicate names and with imports below main project file * add to help; fixup after #13212 isRelativeTo got merged * fix test tests/compilerapi/tcompilerapi.nim * remove nimblePkg field; compute on the fly instead * kochdocs: compiler docs now under compiler/ * --docRoot now has smart default: best among @pkg, @path
* Fix docs for subdirs too (#13180)Clyybber2020-01-171-1/+1
| | | | | * Fix doc subdirs * Extract to helper proc, and fix on windows
* Fix docs (#13176)Clyybber2020-01-161-1/+1
|
* fixes #12998 nim doc regression (#13117)Timothee Cour2020-01-161-1/+1
|
* feature dracula themed doc (#12816)Andreas Rumpf2019-12-101-767/+40
| | | | | | | | | | * Implement gorgeous Dracula themed Nim documentation * Add color for escape sequences * fixes the test cases * the big CSS cleanup
* Removing the mention of using `discard` for block comments (#12837) [backport]Elliot Waite2019-12-081-0/+1
| | | | | | * Remove mention of using `discard` for block comments * Add a 32x32 alternate favicon
* Implement some custom formatting for input fields in the documentation (#11632)Hugo Locurcio2019-07-031-0/+17
| | | | | | | | | | * Implement some custom formatting for input fields in the documentation Aside of resulting in more consistent appearance across browsers, this also fixes input form rendering when using Firefox with a dark system theme on Linux. * change the expected html in the tests
* Render deprecated pragmas (#8886)LemonBoy2019-06-031-0/+5
| | | | | | | | | * Render deprecated pragmas * fix the expected html * clean up the documentation regarding deprecations * fix typo * fix system.nim * fix random
* fixes #10857 invisible span had width (#10860)Anthon van der Neut2019-03-191-4/+8
|
* documentation style tweaks (#10790)Miran2019-03-081-3/+3
| | | | | | | * exports are the least important field in the docs: they are put in the last place (at the bottom) * indent text after proc/type declaration for an easier navigation (noticeable difference between declarations and examples) * quickfix invalid style in `asynchttpserver`
* fix documentation CSSnarimiran2019-02-051-16/+28
| | | | | | - make documentation usable on small (narrow) screens - slightly smaller font size in tables - fix search input width
* update documentation CSS (#10543)Miran2019-02-041-676/+231
| | | | | * update documentation CSS * update the expected htmls
* change the expected output of nim docnarimiran2019-01-281-5/+2
|
* docgen: do not produce trailing commas for linksAraq2019-01-251-9/+9
|
* docgen: produce links for proc namesAraq2019-01-251-3/+3
|
* RST parser: fixes #8158Araq2019-01-111-1/+8
|
* docgen: support markdown headings tooAraq2019-01-111-2/+12
|
* Change documentation details (closes #5525) (#9542)Miran2018-10-311-2/+2
|
* docgen: fixes #9432 [backport]Araq2018-10-311-0/+27
|
* Do not encode the anchors in docs (`id` attr in `a` tags) (#9261)Kaushal Modi2018-10-091-1/+1
| | | | | Update the tests too. Fixes https://github.com/nim-lang/Nim/issues/9232.
* Make "koch docs" copy the dochack.js to the right location tooKaushal Modi2018-09-291-1/+1
| | | | | | | | | | - Fixes https://github.com/nim-lang/Nim/issues/9104. - Fixes https://github.com/nim-lang/Nim/issues/9095. Expect dochack.js to be fetched from the doc/html/ dir instead of from doc/. Also remove an unused and unexported proc pathPart.
* Encode non-alphanum chars like %, + in URLs in the docsKaushal Modi2018-09-281-3/+5
| | | | | | | | | | | | | Use $itemSymOrIDEnc instead of $itemSymOrID in the id and href attr in a tags. Fixes https://github.com/nim-lang/Nim/issues/9097. Thanks to @LemonBoy for helping with this commit. --- Update the tests too -- "nim c -r nimdoc/tester" passes.
* make documentation generator tests green againAraq2018-09-131-2/+4
|
* added a test for 'nim doc'Andreas Rumpf2018-09-071-0/+1299