summary refs log tree commit diff stats
path: root/nimdoc/testproject/expected/theindex.html
Commit message (Collapse)AuthorAgeFilesLines
* nim doc now correctly renders deprecated pragmas for routines and types (#18515)Timothee Cour2021-07-191-0/+4
|
* 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
* typo: nonexistant => nonexistent (#17918)Timothee Cour2021-05-021-2/+2
| | | | | * typo: nonexistant => nonexistent * fix test (ordering differs because of https://github.com/nim-lang/Nim/issues/17910)
* conservative approach to fix #15184 (#16723)Andrey Makarov2021-01-151-0/+4
|
* 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-0/+4
| | | | | * fix #16164, render doc comments * add a test
* fix #15702, show enum fields documentation (#15792)Miran2020-10-301-0/+16
|
* 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/+12
| | | | | | | | | * fix #14846; add macros.extractDocCommentsAndRunnables * fixup * update tests * address comment
* fix #14691 docgen works again for methods (#14701)Timothee Cour2020-06-181-0/+20
| | | | | * fix #14691 docgen methods * fixup
* runnableExamples: correctly handle multiline string litterals (#14492)Timothee Cour2020-06-011-0/+4
| | | | | * 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/+16
|
* fix #14485 (#14487)Timothee Cour2020-05-281-0/+4
|
* fix #8871 runnableExamples now preserves source code comments, litterals, ↵Timothee Cour2020-05-281-0/+114
| | | | | | | | | | | 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-1/+1
|
* 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/+33
| | | | | | | | | | * 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/+16
| | | | | | | | * 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/+8
| | | | | | | | | * 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-0/+4
|
* 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-5/+5
|
* docgen: support markdown headings tooAraq2019-01-111-1/+1
|
* docgen: fixes #9432 [backport]Araq2018-10-311-1/+25
|
* 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.
* Don't prevent ',' from getting escaped in theindex.htmlKaushal Modi2018-09-281-4/+4
| | | | | | - 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.
* Revert #7964LemonBoy2018-09-211-1/+5
| | | | | | | Somehow the test case doesn't crash anymore and the regression in the doc generation is fixed. Fixes #9019
* index generation for docgen knows about subdirectories; index knows about ↵Araq2018-09-131-0/+1266
enum values; fixes import statement for runnableExamples