summary refs log tree commit diff stats
path: root/nimdoc/testproject/testproject.nim
Commit message (Collapse)AuthorAgeFilesLines
* closes #15176; adds a test case (#23248)ringabout2024-01-221-0/+12
| | | closes #15176
* Fix non-toplevel fields in objects not getting rendered (#22266)Jake Leahy2023-07-161-0/+8
| | | | | | | | | | | | | * Add example object into testproject The proc is there to check the case of an identDef being inside an identDef (We do want to render those even if they are not exported) * Add `inside` set to `TSrcGen` which allows us to see what context we are in This is done instead of adding another inXyz bool parameter We then use this to know if we are inside an object when rendering an nkIdentDefs (To know if we need to skip rendering it) * Update test files
* fixes #21483; fixes nim doc skips documentation of annotated elements of ↵ringabout2023-04-291-0/+8
| | | | | | | | | objects (#21743) * fixes #21483; skipPragmaExpr * add a test case for #21483 * fixes HTML
* fixes #19396; Nimdoc hide nonexported fields (#21305)ringabout2023-02-011-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * suppresses non-exported fields of types and adds command-line option to re-enable this if desired * corrected the doctest that produced a CI error * an embarrassingly bad error in reasoning * modified a nimdoc test to reflect updated behavior * needed another change to bring utils.html doctest in sync with update * add info * fix nimdoc * lint * render postfix * fixes a problem * fixes nimdoc * fix nimdoc --------- Co-authored-by: johnperry-math <john.perry@usm.edu> Co-authored-by: johnperry-math <devotus@yahoo.com>
* Docs expand `using` parameters (#21076)Jake Leahy2022-12-121-0/+5
| | | | | | | | | | | | | | | * Trying to fix by changing renderer * add renderExpandUsing flag This flag makes the renderer expand parameters that use using statement to have their full type * Update docs * Make comment better explain why checking for nkSym * Fix nil access when macro/template has parameter with no type * Fix nil access when node is not semmed yet
* nim doc now correctly renders deprecated pragmas for routines and types (#18515)Timothee Cour2021-07-191-0/+3
|
* fix warnings/hints in nimdoc/tester.nim (#18083)Timothee Cour2021-05-301-4/+5
| | | | | | | * 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
* typo: nonexistant => nonexistent (#17918)Timothee Cour2021-05-021-1/+1
| | | | | * typo: nonexistant => nonexistent * fix test (ordering differs because of https://github.com/nim-lang/Nim/issues/17910)
* improve nimsuggest/tester, minor improvements to koch.nim (#17879)Timothee Cour2021-04-291-1/+1
| | | | | * improve nimsuggest/tester * koch improvements
* fix #17615(runnableExamples silently ignored if placed after some code) (#17619)flywind2021-04-021-3/+1
| | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* conservative approach to fix #15184 (#16723)Andrey Makarov2021-01-151-0/+6
|
* fix #16164, render doc comments (#16230)Miran2020-12-021-0/+3
| | | | | * fix #16164, render doc comments * add a test
* Correct all eggs (#15906)Miran2020-11-101-1/+1
| | | | * "eg" is a misspelled "egg", "e.g." is "exempli gratia" * Also, "ie" is "i.e.".
* fix #15702, show enum fields documentation (#15792)Miran2020-10-301-1/+9
|
* fix #14846; add macros.extractDocCommentsAndRunnables (#14849)Timothee Cour2020-07-011-0/+14
| | | | | | | | | * fix #14846; add macros.extractDocCommentsAndRunnables * fixup * update tests * address comment
* fix #14691 docgen works again for methods (#14701)Timothee Cour2020-06-181-0/+22
| | | | | * fix #14691 docgen methods * fixup
* runnableExamples: correctly handle multiline string litterals (#14492)Timothee Cour2020-06-011-0/+40
| | | | | * 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/+30
|
* fix #14485 (#14487)Timothee Cour2020-05-281-0/+16
|
* fix #8871 runnableExamples now preserves source code comments, litterals, ↵Timothee Cour2020-05-281-9/+208
| | | | | | | | | | | 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
* renderer letAux fix only for octal literal (#12343)Ridho Pratama2019-10-081-1/+6
| | | | | | | | * renderer letAux fix only for octal literal * Handle when it's octal -1 for i64 * Added testcases
* 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 #11078 (#11079)Jasper Jenkins2019-04-231-0/+2
| | | | | | * Fixes #11078 * Move to existing runnableExamples, update the expected html. * Remove second comment token.
* docgen: fixes #9432 [backport]Araq2018-10-311-0/+6
|
* Revert #7964LemonBoy2018-09-211-0/+2
| | | | | | | 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-1/+2
| | | | enum values; fixes import statement for runnableExamples
* added a test for 'nim doc'Andreas Rumpf2018-09-071-0/+21