summary refs log tree commit diff stats
path: root/config
Commit message (Collapse)AuthorAgeFilesLines
* enable nimPreviewDotLikeOps (#19598)flywind2022-03-091-0/+1
|
* Add compilers and hints to default nim.cfg (#18424)Federico Ceratto2022-02-071-2/+13
|
* mangle names in nimbase.h using cppDefine (#19395) [backport]flywind2022-01-171-0/+5
| | | | mangle names in nimbase.h fix comments
* let Nim support Nimble 0.14 with lock-file support [backport:1.6] (#19236)Andreas Rumpf2021-12-101-0/+2
|
* implement RST & Markdown quote blocks (#19147)Andrey Makarov2021-11-231-1/+9
| | | | | | | * implement RST & Markdown quote blocks * compile with nim 1.0 * Fix indentation
* Remove tlsEmulation enabled from Windows + GCC config (#19119) [backport:1.6]Ryan Oldenburg2021-11-111-3/+0
| | | This flag has a very significant performance impact on programs compiled with --threads:on. It is also apparently not needed anymore for standard circumstances. Can we remove the config? See https://github.com/nim-lang/Nim/issues/18146#issuecomment-876802676 for discussion and perf impact. [backport:1.6]
* fix nimindexterm in rst2tex/doc2tex [backport] (#19106)Andrey Makarov2021-11-091-1/+11
| | | | | * fix nimindexterm (rst2tex/doc2tex) [backport] * Add support for indexing in rst
* docgen: implement doc link resolution in current module (#18642)Andrey Makarov2021-10-282-1/+20
|
* define `nimVersion` automatically and avoid needing -d:nimVersion140 (#18726)Timothee Cour2021-10-171-0/+2
| | | | | * define `nimVersion` and avoid needing -d:nimVersion140 * fix changelog
* update csources hash (#18969)Miran2021-10-071-1/+1
|
* with this patch :idx: can be used for the index generation for LaTeX (#18946)Andreas Rumpf2021-10-031-2/+4
|
* [backport] use old style hints in .cfg files (#18917)Miran2021-09-291-2/+2
| | | refs #18085
* update csources hash (#18885)Miran2021-09-231-1/+1
|
* docgen: draw frame around active anchors (#18607)Andrey Makarov2021-07-291-1/+2
|
* fix compilation on Debian 7 (no git -C) (#18427)Andrey Makarov2021-07-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | * fix compilation on Debian 7 (no git -C) * address review * allow specify branch for testing unmerged csources * temporarily change csources checkout parameters for testing * Update tools/deps.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * fix failure * Update config/build_config.txt * set proper git branch/hash Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* 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
* docs: Latex generation improvements (#18141)Andrey Makarov2021-06-011-56/+146
| | | | | | | * docs: improve Latex generation * make it work on Windows + fix ] escaping * minor fixes with escapes and style
* change `--hint[X] => --hint:X` in nim repo (avoids shell quoting issues) ↵Timothee Cour2021-05-261-2/+2
| | | | (#18085)
* config system: special case -d:release and -d:danger [backport:1.4] (#18051)Andreas Rumpf2021-05-201-0/+2
|
* `doc2tex`: generate docs to Latex (#17997)Andrey Makarov2021-05-142-5/+12
| | | | | * `doc2tex`: generate docs to Latex * address some comments
* follow-up #17837: add `Console` for interactive sessions (#17930)Andrey Makarov2021-05-061-0/+2
| | | | | * follow-up #17837: add `Console` for interactive sessions * fix Latex
* reuse config/build_config.txt for all bootstrap scripts (posix + windows + ↵Timothee Cour2021-05-011-0/+4
| | | | | | | | | | | | ci); use build_all.bat in 1 CI, fix bug in build_all.bat (#17899) * reuse config/build_config.txt for all bootstrap scripts (posix + windows + ci) * ci_docs: use build_all.bat in CI (just in that pipeline) to ensure it keeps working * fixup * fix pre-existing bug in build_all.bat * fixup * cp => copy /y * auto-generate build_all.bat, build_all.sh * fixup
* add RST highlighting for command line / shells (also fixes #16858) (#17789)Andrey Makarov2021-04-211-0/+2
|
* restyle RST option lists (#17637)Andrey Makarov2021-04-101-1/+10
| | | | | | | | | | | | | * WIP: restyle RST option lists * apply similar style to Latex * fix tests * minor visual tweaks * update tests * remove leftover comments
* Genode platform fixes (#17521)Emery Hemingway2021-04-091-24/+1
| | | | | | | | | | | | | | | | | | | * Genode: move dyncall failures to runtime Do not use the "error" pragma to warn that dynamic library loading is not implemented, print a message at runtime and exit. * Genode: use stricter dataspace type in page allocator * Genode: remove compiler configuration from nim.cfg Self-hosting Nim is not supported on Genode and defining the cross-compilation environment can be done externally. * Genode: use new mutex API * Genode: call nim_component_construct as a C procedure * Genode: implement echo for NimStringV2
* remove deprecated config (#17269)flywind2021-03-051-2/+0
|
* RST heading improvements (fix #17091) (#17195)Andrey Makarov2021-03-022-2/+2
|
* add -d:nimStrictMode in CI to keep code from regressing; fixes ↵Timothee Cour2021-02-171-0/+12
| | | | ConvFromXtoItselfNotNeeded, UnusedImport notes (#16764)
* remove all uses of condsyms symbols defined prior to bootstrap nim 0.20.0 ↵Timothee Cour2021-02-172-13/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#16918) * nimNoArrayToCstringConversion deadcode * nimbabel deadcode * nimHasalignOf deadcode * nimvarargstyped deadcode * nimhygiene deadcode * nimNewTypedesc deadcode * nimlocks deadcode * nimHasCppDefine deadcode * nimHasRunnableExamples deadcode * nimHasNilChecks deadcode * nimSymKind deadcode * minor macros refactoring * nimVmEqIdent deadcode * nimNoNil deadcode * nimNoZeroTerminator deadcode * nimHasSymOwnerInMacro deadcode * nimVmExportFixed deadcode * nimNewRuntime deadcode * nimAshr deadcode * nimUncheckedArrayTyp deadcode * nimHasTypeof deadcode * nimErrorProcCanHaveBody deadcode * nimHasHotCodeReloading deadcode * nimHasSignatureHashInMacro deadcode * nimHasDefault deadcode * nimMacrosSizealignof deadcode
* RST: implement footnotes and citations (#16960)Andrey Makarov2021-02-151-1/+2
| | | | | | | | | * RST: implement footnotes and citations * manual fixup of nimdoc.out.css * remove unused code * shorter printing code * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #9102 docgen: sidebar now shows proc signatures instead of encoding (#16857)Timothee Cour2021-01-291-2/+6
|
* fix #16752: threadvar now works with importcpp types; osx now uses native ↵Timothee Cour2021-01-271-3/+5
| | | | | | | | | | | TLS (`--tlsEmulation:off`), which can be orders of magnitude faster (#16750) * osx now uses native TLS, which can be orders of magnitude faster * add {.cppNonPod.} * improve test * changelog, docs, disable part of windows test
* fix config/nim.cfg: `@if not bsd or haiku:` was buggy (#16748)Timothee Cour2021-01-191-10/+8
|
* RST: implement internal targets (#16614)Andrey Makarov2021-01-111-1/+2
|
* RST: implement admonitions (#16438)Andrey Makarov2020-12-271-0/+9
|
* doc/rst2html: some few fixes for enumerated and bullet lists (#16295)Andrey Makarov2020-12-141-0/+1
| | | | | | | | | | | | * fix bullet/enumarated lists with many blank lines * fix enumerated list parsing * fix parse failure when next line after list empty * implement arbitrary start of enumerator * check that enumerators are in order * remove redundant start=x if x=1 or a * add some doc on implemented features * update start in rst_examples.rst * allow upper-case letters + more docs
* 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
|
* Change clibdir and cincludes for NetBSD (#15102)Euan2020-07-281-1/+9
|
* 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>
* Limit number of error messages from gcc/clang backend (#14852)Tomohiro2020-07-071-7/+9
| | | | | | | * Limit number of error messages from backend * Avoid duplication of -fmax-errors * make tests/misc/trunner.nim success
* Clean out oldast (#14837)Juan Carlos2020-06-301-1/+0
| | | | * Clean out old Deprecated CLI switch * Update to remove --oldast CLI option
* Set cincludes and clibdir for FreeBSD, OpenBSD and NetBSD. (#14680)Euan2020-06-161-0/+3
|