summary refs log tree commit diff stats
path: root/compiler/docgen.nim
Commit message (Collapse)AuthorAgeFilesLines
* Expand hoisted default params in sem (#15270)Clyybber2020-09-051-4/+4
| | | | | | | | | * Expand hoisted default params in sem Introduce ast.newTree{I,IT} Add test for default params in procs * Cleanup * Simplify hoist transformation and expand test
* Big compiler Cleanup (#14777)Clyybber2020-08-281-33/+12
|
* deprecate existsDir; use dirExists instead (#14884)Timothee Cour2020-07-031-1/+1
|
* {.deprecated: [existsFile: fileExists].} (#14735)Timothee Cour2020-07-021-1/+1
| | | | | | | | | * {.deprecated: [existsFile: fileExists].} * s/existsFile/fileExists/ except under deps * workaround pending #14819 * fix test
* fix #14691 docgen works again for methods (#14701)Timothee Cour2020-06-181-14/+5
| | | | | * fix #14691 docgen methods * fixup
* refs #14545 fix snippet errors: avoid showing confusing errors when they are ↵Timothee Cour2020-06-051-3/+4
| | | | expected (#14569)
* [cleanup] docgen: remove docOutdir now that outDir is always set (#14554)Timothee Cour2020-06-031-17/+7
|
* walkDirRecFilter, update doc CI filter, compiler/index.nim for docs + ↵Timothee Cour2020-06-011-11/+10
| | | | | | | | | | | 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
* hotfix doc comments for procs without body (#14494)Timothee Cour2020-05-291-0/+1
|
* fix #8871 runnableExamples now preserves source code comments, litterals, ↵Timothee Cour2020-05-281-49/+110
| | | | | | | | | | | 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-2/+1
|
* docgen: fix #14448 show @@ as .. in href text (#14451)Timothee Cour2020-05-251-3/+3
|
* fix #9227 procs can now have multiple interleaved doc comments + ↵Timothee Cour2020-05-251-7/+41
| | | | | | runnableExamples and be docgen'd correctly (#14441) * fix #9227 proc doc comments after 1st runnableExamples are not ignored anymore
* fix #6583, fix #14376, index+search now generated for all projects, many bug ↵Timothee Cour2020-05-251-28/+36
| | | | | | | | | fixes with nim doc (#14324) * refs #6583 fix nim doc output * changelog * change default for outDir when unspecified * cleanups * --project implies --index
* Remove #PRTEMP leftover commentClyybber2020-05-201-1/+0
|
* fix #10731 ; `runnableExamples "-b:cpp --run:off": code` works (#14384)Timothee Cour2020-05-201-31/+57
| | | | * runnableExamples "-b:cpp -r:off": code
* fix #14174 do not collapse pragma inside runnableExamples (#14385)Timothee Cour2020-05-181-19/+20
|
* fix some issues with --backend (#14363)Timothee Cour2020-05-161-7/+14
| | | | | * fix some issues with --backend * fix https://github.com/timotheecour/Nim/issues/175; improve upon #14306
* Make --backend:cpp|js work for :test: code-blocks as well (#14306)Kaushal Modi2020-05-111-1/+2
| | | | | | | | | Continues https://github.com/nim-lang/Nim/commit/9502e39b634eea8e04f07ddc110b466387f42322 Ref: - https://github.com/nim-lang/Nim/commit/9502e39b634eea8e04f07ddc110b466387f42322#commitcomment-39087584 - https://github.com/nim-lang/Nim/pull/14278 Fixes https://github.com/nim-lang/Nim/issues/13129 .
* `nim doc --backend:js`, `nim doc --doccmd:-d:foo`, `nim r --backend:js`, ↵Timothee Cour2020-05-111-11/+18
| | | | | | | | | | `--doccmd:skip` + other improvements (#14278) * `nim doc --backend:js|cpp...` `nim doc --doccmd:'-d:foo --threads:on'` `nim r --backend:cpp...` (implies --run --usenimcache) * --usenimcache works with all targets * --docCmd:skip now skips compiling snippets; 50X speedup for doc/manual.rst
* fixes #13986 [backport:1.2] (#14173)Andreas Rumpf2020-04-301-1/+7
|
* fix `nim doc subdir/foo` which was generating broken css; + other fixes (#13647)Timothee Cour2020-03-171-10/+14
| | | | | | * docgen: minor refactoring via docOutDir * fix css for `nim doc subdir/foo` without --outdir nor -o * tcompilesetting.nim: keep `git status` clean * re-enable pkg nimgame2 that got fixed upstream
* fix hintSuccess: `out` was wrong for `nim doc` without `-o` flag (#13569)Timothee Cour2020-03-041-2/+2
|
* Fix docgen snippet numbering (#13507)genotrance2020-03-031-1/+1
|
* Add signatures object to jsondoc for routine types (#13530)PMunch2020-03-021-0/+29
| | | | | | jsondoc is meant to be read by computers, but yet the signatures of procedures where simply a string of the whole thing. This adds a signature object that unpacks this information into an object so it's easier to analyse the documented signatures.
* fix #13150 `nim doc --project` now works reliably (#13223)Timothee Cour2020-02-061-12/+57
| | | | | | | | | | * fix #13150 `nim doc --project` works with duplicate names and with imports below main project file * add to help; fixup after #13212 isRelativeTo got merged * fix test tests/compilerapi/tcompilerapi.nim * remove nimblePkg field; compute on the fly instead * kochdocs: compiler docs now under compiler/ * --docRoot now has smart default: best among @pkg, @path
* removed unused importTimothee Cour2020-01-281-1/+1
|
* refactor htmldocs; gitignore itTimothee Cour2020-01-281-4/+5
|
* Fix docs for subdirs too (#13180)Clyybber2020-01-171-11/+15
| | | | | * Fix doc subdirs * Extract to helper proc, and fix on windows
* fixes #12998 nim doc regression (#13117)Timothee Cour2020-01-161-2/+9
|
* successX now correctly shows html output for `nim doc`, `nim jsondoc`; fix ↵Timothee Cour2020-01-151-0/+2
| | | | | | | | #13121 (#13116) * successX now correctly shows html output for nim doc * fixes #13121 * fixup hintSuccessX to be less weird
* fixes #13100 nim doc now treats `export localSymbol` correctly (#13123) ↵Timothee Cour2020-01-131-13/+25
| | | | | | | [backport] * fix #13100 nim doc now treats `export localSymbol` correctly * use owner instead
* Allow `-o` option for `buildIndex` (#13037) [backport]BinHong Lee2020-01-051-1/+4
| | | | | Addressing #12771 This is also included in the docgen documentation [here](https://nim-lang.org/docs/docgen.html) but its not respected as reported in the issue.
* Cosmetic compiler cleanup (#12718)Clyybber2019-11-281-113/+112
| | | | | | | | | | | | | | | | | | * Cleanup compiler code base * Unify add calls * Unify len invocations * Unify range operators * Fix oversight * Remove {.procvar.} pragma * initCandidate -> newCandidate where reasonable * Unify safeLen calls
* fix several typos in documentation and comments (#12553)Nindaleth2019-10-301-1/+1
|
* Small ast.nim cleanup (#12156)Clyybber2019-09-091-6/+6
| | | | | * Remove sonsLen * Use Indexable
* fixes #11819Araq2019-08-161-0/+1
|
* removed unused imports [refactoring]Andreas Rumpf2019-08-081-2/+2
|
* run runnableExamples in the module scope (#11732) [feature]Timothee Cour2019-07-221-11/+13
|
* [refactoring] remove unused imports in the compiler and in some stdlib modulesAraq2019-07-181-1/+1
|
* [bugfix] correct 'source' for documentation (#11540)Miran2019-06-201-1/+3
|
* Render deprecated pragmas (#8886)LemonBoy2019-06-031-8/+35
| | | | | | | | | * Render deprecated pragmas * fix the expected html * clean up the documentation regarding deprecations * fix typo * fix system.nim * fix random
* docgen.nim: avoid compiler warningAraq2019-05-281-1/+1
|
* Use the correct HTML file reference in "nim doc" generated idx files (#11326)Kaushal Modi2019-05-251-1/+1
| | | | | | | | | | | | | | | | | | | * Use the correct HTML file reference in "nim doc" generated idx files Now "nim doc --out:foo.html --index:on bar.nim" generates "foo.html" and the generated "bar.idx" contains references to "foo.html". Fixes https://github.com/nim-lang/Nim/issues/11325. * Refactor the nim doc tester to extend it for more tests * Reference the HTML files relative to the outDir, not project dir * Add test for issues #11312 and #11325 - https://github.com/nim-lang/Nim/issues/11312 - https://github.com/nim-lang/Nim/issues/11325
* fixes #11312Araq2019-05-241-0/+2
|
* Replace countup(x, y) with x .. yClyybber2019-05-071-3/+3
|
* Replace countup(x, y-1) with x ..< yClyybber2019-05-071-8/+8
|
* Fix `nim doc` ignoring doc comments with implicit returns and implicit ↵nc-x2019-05-041-1/+1
| | | | conversions (#11173)
* fewer ropes (#11037)Arne Döring2019-04-191-1/+1
|
* more destructor based changes (#10885)Andreas Rumpf2019-03-231-1/+58
| | | | | | | | | | | * mark user defined destructors with sfOverriden to simplify the logic * refactoring in preparation to merge liftings and generic instantiations for destructors * ast: introduce nkHiddenTryStmt for destructor generation in order to be able to optimize better the code later on * renamed 'patterns' switch to 'trmacros' as it was totally misleading before * destructors: introduce tfCheckedForDestructor flag in preparation of strict =destroy checking * test for invalid/too late destructor introductions * liftdestructors: make code robust for nimsuggest * --newruntime works for hello world again * newruntime: code generation for closures