summary refs log tree commit diff stats
path: root/nimdoc/testproject/expected/testproject.html
Commit message (Collapse)AuthorAgeFilesLines
* docgen: sort symbols (fix #17910) (#18560)Andrey Makarov2021-07-251-330/+330
| | | | | | | | | | | | | | * 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;`)
* nim doc now correctly renders deprecated pragmas for routines and types (#18515)Timothee Cour2021-07-191-3/+15
|
* 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-5/+6
| | | | nested templates (#18082)
* fix warnings/hints in nimdoc/tester.nim (#18083)Timothee Cour2021-05-301-4/+4
| | | | | | | * fix warnings/hints in nimdoc/tester.nim * improve err msg for nimdoc/tester.nim and change flag from fixup to nimTestsNimdocFixup * address comment: put back quit instead of doAssert
* `doc2tex`: generate docs to Latex (#17997)Andrey Makarov2021-05-141-89/+89
| | | | | * `doc2tex`: generate docs to Latex * address some comments
* typo: nonexistant => nonexistent (#17918)Timothee Cour2021-05-021-7/+7
| | | | | * typo: nonexistant => nonexistent * fix test (ordering differs because of https://github.com/nim-lang/Nim/issues/17910)
* fix #17615(runnableExamples silently ignored if placed after some code) (#17619)flywind2021-04-021-1/+3
| | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* enable syntax highlighting for inline code (#17585)Andrey Makarov2021-04-021-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | * enable syntax highlighting for inline code * finish '.. default-role' and preliminary '.. role' implementation * more compact check in dirRole * set :literal: as default role for *.rst * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * use whichRole for setting currRoleKind * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * rename rnGeneralRole -> rnUnknownRole Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* docgen: render pragmas by default except for a select list (and fix #9074) ↵Timothee Cour2021-04-011-41/+41
| | | | (#17054)
* fix https://github.com/nim-lang/RFCs/issues/352: show top-level import for ↵Timothee Cour2021-03-291-4/+8
| | | | | | | | | top-level runnableExamples in generated docs (#17542) * fix https://github.com/nim-lang/RFCs/issues/352: show top-level import for top-level runnableExamples in generated docs * use canonical imoprt * fix test
* fix #16901: sidebar groups now works with all routines, not just proc,func ↵Timothee Cour2021-03-191-28/+76
| | | | | | | (#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-32/+32
|
* conservative approach to fix #15184 (#16723)Andrey Makarov2021-01-151-0/+12
|
* put both funcs and procs under the same section in the documentation (#16301)Miran2020-12-091-23/+12
| | | | | * both funcs and procs are under the same section in the documentation * update the test
* 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.
* fix #16164, render doc comments (#16230)Miran2020-12-021-1/+10
| | | | | * fix #16164, render doc comments * add a test
* fix #15702, show enum fields documentation (#15792)Miran2020-10-301-0/+15
|
* [backport: 1.4] Better linebreaks (#15658)Miran2020-10-221-55/+55
|
* add Source+Edit links on top of every docgend file (#15642)Timothee Cour2020-10-221-0/+1
|
* docgen: improve alignment of comments (still not perfect) (#15506)Andreas Rumpf2020-10-071-5/+6
| | | | | | | * docgen: improve alignment of comments (still not perfect) * fix error message text in `tunknown_named_parameter` Co-authored-by: narimiran <narimiran@disroot.org>
* group procs of the same name in TOC (#15487)Miran2020-10-051-59/+149
| | | | | | | | | | | * 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 #14846; add macros.extractDocCommentsAndRunnables (#14849)Timothee Cour2020-07-011-0/+29
| | | | | | | | | * fix #14846; add macros.extractDocCommentsAndRunnables * fixup * update tests * address comment
* fix #14691 docgen works again for methods (#14701)Timothee Cour2020-06-181-0/+58
| | | | | * fix #14691 docgen methods * fixup
* runnableExamples: correctly handle multiline string litterals (#14492)Timothee Cour2020-06-011-0/+45
| | | | | * runnableExamples: correctly handle multiline string litterals * address comments: improve doc comments + variable namings
* hotfix doc comments for procs without body (#14494)Timothee Cour2020-05-291-0/+48
|
* fix #14485 (#14487)Timothee Cour2020-05-281-0/+21
|
* fix #8871 runnableExamples now preserves source code comments, litterals, ↵Timothee Cour2020-05-281-8/+335
| | | | | | | | | | | 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
* fix #6583, fix #14376, index+search now generated for all projects, many bug ↵Timothee Cour2020-05-251-0/+3
| | | | | | | | | fixes with nim doc (#14324) * refs #6583 fix nim doc output * changelog * change default for outDir when unspecified * cleanups * --project implies --index
* fix #10731 ; `runnableExamples "-b:cpp --run:off": code` works (#14384)Timothee Cour2020-05-201-1/+1
| | | | * runnableExamples "-b:cpp -r:off": code
* 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
* renderer letAux fix only for octal literal (#12343)Ridho Pratama2019-10-081-0/+47
| | | | | | | | * renderer letAux fix only for octal literal * Handle when it's octal -1 for i64 * Added testcases
* 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/+33
| | | | | | | | | * Render deprecated pragmas * fix the expected html * clean up the documentation regarding deprecations * fix typo * fix system.nim * fix random
* Fixes #11078 (#11079)Jasper Jenkins2019-04-231-1/+3
| | | | | | * Fixes #11078 * Move to existing runnableExamples, update the expected html. * Remove second comment token.
* docgen: add links for var, let and const (refs #10487) (#10868)Miran2019-03-201-1/+1
| | | | | | * docgen: add links for var, let and const (refs #10487) * change the expected html
* fixes #10857 invisible span had width (#10860)Anthon van der Neut2019-03-191-8/+12
|
* 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-6/+6
|
* docgen: produce links for proc namesAraq2019-01-251-5/+5
|
* docgen: support markdown link syntax; enable markdown extensionsAraq2019-01-111-1/+1
|
* Change documentation details (closes #5525) (#9542)Miran2018-10-311-2/+2
|
* docgen: fixes #9432 [backport]Araq2018-10-311-0/+58
|