Kaushal Modi
903886396d
Don't prevent ',' from getting escaped in theindex.html
...
- Enable escaping of links in theindex.html
- Fixes https://github.com/nim-lang/Nim/issues/9107 .
- Second part of the fix for https://github.com/nim-lang/Nim/issues/9097 .
2018-09-28 15:39:22 -04:00
Araq
34388c5cc5
name mangling: also special case the backslash character
2018-09-17 20:48:55 +02:00
Araq
a0914eff5d
fixes #7500
2018-09-17 20:48:55 +02:00
Araq
7d9c5be333
nim doc: simplifiy index generation
2018-09-13 20:28:51 +02:00
Araq
b9ed684dd2
index generation for docgen knows about subdirectories; index knows about enum values; fixes import statement for runnableExamples
2018-09-13 01:05:51 +02:00
Araq
cb9e9297fb
make highlite.nim compile again
2018-08-23 10:46:24 +02:00
Araq
64517445ea
even more strict isNil handling for strings/seqs in order to detect bugs
2018-08-22 12:35:46 +02:00
Andreas Rumpf
dae5450947
WIP: disallow 'nil' for strings and seqs
2018-08-13 11:41:33 +02:00
Araq
babd31360a
fixes more nil string bugs
2018-08-08 18:22:48 +02:00
Ray Imber
060871e64a
Better doc search ( #8260 )
...
* Modified the doc generation to produce a custom data attribute to allow for better search functionality
* Implemented fuzzy matching for the Nim Doc search instead of the simple regex match.
* Fix to the WordBoundry state transition from code review with @Varriount. Also removed silly testing template that is no longer used.
* Update fuzzysearch.nim
* Update fuzzysearch.nim
* Update fuzzysearch.nim
* Update dochack.nim
* Update dochack.nim
2018-07-20 04:58:42 -05:00
Araq
894f21eb73
RST hotfix: don't crash in rstnodeToRefname
2018-06-14 15:01:30 +02:00
Araq
8e9551b1c7
fixex merge conflicts
2018-06-08 19:50:36 +02:00
Oscar Nihlgård
fd28236368
Multi byte characters should not be treated as part of an operator
2018-06-03 09:05:50 +02:00
Andreas Rumpf
73799903ee
removed global variable from rstgen.nim
2018-05-27 23:38:49 +02:00
Dmitry Atamanov
e206a8d952
Use new binarySearch everywhere ( #7876 )
2018-05-25 00:04:30 +03:00
Dominik Picheta
85b7d8fcc4
Rstgen/xml tree fixes ( #7823 )
...
* Don't prefix lang names with "lang" in rstgen.
* Implements ability to render xmltree w/o \n. Fixes <> for `data-*` attrs.
* Various rstgen fixes.
* Fixes security vulnerabilities due to not escaping some code.
* Adds <video> support and improve `.. image:: ` directive.
* Adds comment as requested.
2018-05-23 16:28:53 +02:00
Andreas Rumpf
efc2ce1b7e
docgen compiles again
2018-05-11 16:06:36 +02:00
Araq
bbb0fd4eb7
remove deprecated stuff from the stdlib; introduce better deprecation warnings
2018-05-05 21:45:07 +02:00
Andreas Rumpf
68a63b3407
RST package: don't use obsolete toLower proc
2018-04-29 01:08:37 +02:00
Andreas Rumpf
2f8289919e
docutils: no Babel file
2018-04-15 22:16:07 +02:00
Andreas Rumpf
ed9c28484a
docutils: make ':test:' work without argument
2018-04-15 22:16:07 +02:00
Araq
5d2e86ea1a
the documentation generator now supports ':test:' for the testing of test snippets
2017-11-28 01:15:33 +01:00
Araq
8d1a5dc8e7
the documentation generator now supports system.runnableExamples
2017-11-26 02:51:11 +01:00
Andreas Rumpf
cae5e33a4a
language change: 'generic' and 'atomic' are not keywords anymore
2017-11-21 11:27:35 +01:00
Silvio
d837ef177c
Add possibility to get language class to listings ( #6705 )
...
Add the possibility to add class `lang<Name>` to code listings.
Needed for restricting `run` to nim code (see https://github.com/nim-lang/nimforum/pull/111 )
2017-11-08 11:12:05 +01:00
Araq
742f43e572
fixes #6609 ; 'if' expressions support multiple statements; minor breaking change
2017-11-05 01:26:04 +01:00
Araq
3ccc9c467d
'with' and 'without' are not keywords anymore
2017-09-30 18:32:44 +02:00
Arne Döring
000b8afd26
Remove expr/stmt ( #5857 )
2017-07-25 09:28:23 +02:00
Simon Krauter
a42801d100
Make countLines() the same as len(splitLines(s)) ( #5470 )
...
The result of countLines() is now increased by 1 compared to the old
version.
Fixes #5460 .
2017-03-03 01:31:17 +01:00
Andreas Rumpf
20ee65af6d
fixes #3078
2016-10-20 21:40:04 +02:00
Araq
3dfc866710
docgen: working search feature
2016-09-09 20:42:02 +02:00
Araq
37c3c0033d
generated theindex.html is valid html
2016-09-09 16:16:58 +02:00
Andreas Rumpf
0834cd63d9
prepare Nim codebase for upcoming parser changes
2016-07-15 12:56:03 +02:00
Andreas Rumpf
ca8214a2a2
fixes #2640
2016-05-31 03:04:45 +02:00
Felix Krause
6fe916fc77
Fixes to YAML highlighting support, added tests
2016-04-01 21:35:46 +02:00
Felix Krause
f1f1202ea0
Added YAML support to doctools/highlite
2016-03-29 22:49:34 +02:00
Andreas Rumpf
c9966a3e17
use 'using' instead of 'sig' keyword; cleans up new features a bit
2016-02-29 12:19:54 +01:00
Andreas Rumpf
38dee2095c
added 'sig' feature; removed tfShared support in the compiler
2016-02-28 19:56:41 +01:00
Andreas Rumpf
981974ab11
Merge pull request #3831 from ephja/nimrod-to-nim
...
nimrod -> nim
2016-02-06 15:24:09 +01:00
Erik Johansson Andersson
f8d98700ac
nimrod -> nim
2016-02-05 19:11:43 +01:00
Felix Krause
facd4c6f19
RST: Output <object> for SVG images in HTML
2016-02-02 20:20:59 +01:00
Andreas Rumpf
a4aeb6fbec
implements final version of multiline comments
2016-01-17 20:29:50 +01:00
Andreas Rumpf
2e71bd50b2
implements multi-line-comments; pounds are stripped from the doc comments
2016-01-16 21:40:54 +01:00
Felix Krause
708b9f90b7
Made docgen emit valid XML by default
2016-01-11 22:52:59 +01:00
Araq
8be9e46403
udpated the compiler and tester to use getOrDefault
2015-10-13 14:10:33 +02:00
singularperturbation
4c1611fc13
Fix for image directive with periods
...
Saw in https://github.com/nim-lang/nimforum/issues/41 that there was an
issue in rendering inline images. Traced back through rstgen and found
that it was not counting something like:
`.. image:: http://i.imgur.com/oCem13Y.png ` as valid since it contained
a period, and this wasn't in the set of valid characters, so the empty
string is returned by default.
Added a period to the allowable characters, and now renders correctly.
Test case:
```
import rst, rstgen, strtabs
var docConfig: StringTableRef
docConfig = rstgen.defaultConfig()
docConfig["doc.smiley_format"] = "/images/smilieys/$1.png"
proc rstToHtml(content: string): string =
result = rstgen.rstToHtml(content, {roSupportSmilies,roSupportMarkdown},
docConfig)
var a: string = rstToHtml(".. image:: http://i.imgur.com/oCem13Y.png ")
echo a
```
2015-08-02 14:16:53 -05:00
Araq
f7bdc205c7
documentation generator emits configurable html for code listings
2015-07-14 01:37:09 +02:00
patrick dw
15e7fe787a
renamed writeln to writeLine in lib
2015-06-19 01:02:22 -05:00
pdw
7616790515
lib/packages/docutils - Dropped 'T' from types
2015-06-04 13:17:10 +02:00
Oleh Prypin
22db40e5e4
Turn some test outputs into actual tests
2015-04-21 15:59:32 +03:00