You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
theindex.html should reference exported symbols in compiler (eg TGlobalOption ; having it in theindex.html makes it much easier to develop Nim compiler)
new nim doc flag: --git.commit_current to pass in git rev-parse --abbrev-ref HEAD as value for git.commit which is a good default when developping: we want to see docs for branch we're currently on (fits along --git.devel, --git.url, --git.commit)
tags are not change-safe, eg: https://nim-lang.org/docs/strformat.html#17 is numeric, https://nim-lang.org/docs/strformat.html#fmt-vs is auto-named.
neither is good: numeric ones are the worst, they change when there are inserts; and auto-named ones cause breakage when title changes (which happened multiple times) (especially bad when ppl bookmark these and we have no control over their bookmarks). A better fix: use auto-names, and when title changes, use explicitly named anchor using old name (unless we want the old anchor to stop working which should be uncommon); this could be enforced by tooling.
[Make pragmas look clickable in docs by Quelklef · Pull Request #8176 · nim-lang/Nim](https://github.com/nim-lang/Nim/pull/8176)
./compiler/docgen.nim
Better doc search (#8260)
- [ ] check whether this is this still the case: https://github.com/nim-lang/Nim/pull/8182#issuecomment-402138537
When deprecating you need to update the doc comment:
## ...
##
## **Deprecated since v0.19.0:** use toSeq instead
Please be sure to add an empty ## line so that this is formatted well in the doc gen.
The text was updated successfully, but these errors were encountered:
major
comment
attached to wrong node, makesnim doc
buggy [parser] top-levelcomment
attached to wrong node, makesnim doc
buggy #8929htmldocs
instead of foo/bar.html (makes it hard to gitignore otherwise) [WONTFIX] [regression] nim doc foo/bar.nim should generate by default inhtmldocs
instead of foo/bar.html (makes it hard to gitignore otherwise) #8873{.pragma: benign, gcsafe, locks: 0.}
=>pragma: foo
(eg: benign) should end up in index / documentation #10123compiler
(egTGlobalOption
; having it in theindex.html makes it much easier to develop Nim compiler)--json2
doesn' work with./koch web
(needed to get theindex.json for tooling) exporting documentation to json does not work properly #8495devel
branch · Issue #98 · nim-lang/websitenim doc --project foo/bar.nim
generates underhtmldocs/absolute/pathto/foo/bar.nim
instead ofhtmldocs/foo/bar.nim
[regression]nim doc --project foo/bar.nim
generates underhtmldocs/absolute/pathto/foo/bar.nim
instead ofhtmldocs/foo/bar.nim
#8874nim doc --project
creates wrong href links, eg: test3.html instead of util/test3.html [doc]nim doc --project
creates wrong href links, eg: test3.html instead of util/test3.html #8736nim doc2 --project -o:doc/
cannot find files in subdirectoriesnim doc2 --project -o:doc/
cannot find files in subdirectories #8218minor
;
):template default[T; ](t: typedesc[T]): T
[minor] nim doc renders generic badly (extra;
):template default[T; ](t: typedesc[T]): T
+ bad formatting #8488neither is good: numeric ones are the worst, they change when there are inserts; and auto-named ones cause breakage when title changes (which happened multiple times) (especially bad when ppl bookmark these and we have no control over their bookmarks). A better fix: use auto-names, and when title changes, use explicitly named anchor using old name (unless we want the old anchor to stop working which should be uncommon); this could be enforced by tooling.
scratch
The text was updated successfully, but these errors were encountered: