summary refs log tree commit diff stats
path: root/config/nimdoc.cfg
Commit message (Collapse)AuthorAgeFilesLines
* docgen: draw frame around active anchors (#18607)Andrey Makarov2021-07-291-1/+2
|
* link stable and devel docs in nim docs (#18272) [backport:1.2]Timothee Cour2021-06-151-15/+6
|
* 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
* `doc2tex`: generate docs to Latex (#17997)Andrey Makarov2021-05-141-0/+1
| | | | | * `doc2tex`: generate docs to Latex * address some comments
* RST heading improvements (fix #17091) (#17195)Andrey Makarov2021-03-021-1/+1
|
* fix #9102 docgen: sidebar now shows proc signatures instead of encoding (#16857)Timothee Cour2021-01-291-2/+6
|
* RST: implement internal targets (#16614)Andrey Makarov2021-01-111-1/+2
|
* 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.
* followup #15642: make source + edit also work with stdlib (which uses ↵Timothee Cour2020-10-221-1/+2
| | | | -d:boot) (#15684)
* [backport: 1.4] Better linebreaks (#15658)Miran2020-10-221-2/+2
|
* add Source+Edit links on top of every docgend file (#15642)Timothee Cour2020-10-221-1/+2
|
* change case in nimdoc [ci skip]narimiran2020-10-141-2/+2
|
* reference fusion docs (#15562)Timothee Cour2020-10-141-1/+4
|
* group procs of the same name in TOC (#15487)Miran2020-10-051-0/+14
| | | | | | | | | | | * 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
* close #6071, remove the mentions of deprecated `docSeeSrcUrl` (#15350)Miran2020-09-171-2/+2
|
* 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>
* walkDirRecFilter, update doc CI filter, compiler/index.nim for docs + ↵Timothee Cour2020-06-011-42/+13
| | | | | | | | | | | various other fixes (#14501) * update doc CI filter to include the files mostly likely to require doc rebuild * remove code duplication in ./config/nimdoc.cfg; show link to compiler docs, various fixes * walkDirRecFilter, factor nativeToUnixPath workaround * glob for getRst2html * docslocal: 40s to build all docs * revert code dedup in github actions which did not work alas... * fixups
* fix #6583, fix #14376, index+search now generated for all projects, many bug ↵Timothee Cour2020-05-251-3/+6
| | | | | | | | | fixes with nim doc (#14324) * refs #6583 fix nim doc output * changelog * change default for outDir when unspecified * cleanups * --project implies --index
* 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/+54
| | | | | | | | | | * 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/+10
| | | | | | | | | * 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-1/+5
|
* 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`
* add links to every document, fixes #5515narimiran2019-02-161-1/+14
|
* 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-677/+232
| | | | | * update documentation CSS * update the expected htmls
* fix documentation cssnarimiran2019-01-281-5/+2
|
* 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-2/+3
| | | | | | | | | | | | | 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.
* fixes #8419 fixes #8420 ; workaround #6071 workaround nim-lang/website#98 ↵Timothee Cour2018-07-301-1/+3
| | | | | (#8423) add --git.devel option to override doc generated "edit" links; add --nimCompiler option to nimweb
* Make pragmas look clickable in docs (#8176)Quelklef2018-07-171-29/+35
| | | | * Visual cues for hidden pragmas in docs. * Add hover cue
* Fix background-color in nimdoc.cfgSimon Krauter2018-03-111-1/+1
| | | | | | Don't assume, that the default background-color is white. My default background-color is dark, which makes the documentation hardly readable: https://i.imgur.com/xN0UjWz.png The reason is the transparency of the existing color (rgba(252, 248, 244, 0.45);) Fixed by removing the transparency.
* more documentation fixesAraq2018-03-051-1/+1
|
* fixes #5293Andreas Rumpf2018-03-051-1/+1
|
* fixes #7294; Nim doc search featureAraq2018-03-051-5/+5
|
* Update docgen style (#6723)Federico Ceratto2017-11-291-25/+38
| | | | | | Switch to Lato font for better readability Make text darker Make spacing between paragraph and pre block consistent Fix search input box to prevent overlapping with text
* fixes the docgen configuration; refs #6780Araq2017-11-281-1/+1
|
* Add links to documentation (#6780)Federico Ceratto2017-11-271-9/+63
| | | Related to #4219
* Add meta tag to ensure that media queries are activated on mobile devices.Konstantin Molchanov2017-04-201-0/+2
|
* docgen: make whitespace around 'class=' more consistentAndreas Rumpf2017-04-121-1/+1
|
* Make fonts load from https rather than httpZion2017-03-271-2/+2
|
* minor CSS improvementAraq2016-10-011-1/+1
|
* docgen: working search featureAraq2016-09-091-0/+7
|
* docgen: minor changesAndreas Rumpf2016-09-091-2/+2
|
* docgen: search featureAndreas Rumpf2016-09-091-0/+9
|