Nick Treleaven
7d8db1042d
vdoc: don't highlight less than expression as generic function ( #13938 )
2022-04-05 05:58:47 +03:00
Nick Treleaven
2cd9c91e98
vdoc: highlight terminal examples for -comments -color
( #13937 )
2022-04-04 18:13:24 +03:00
Nick Treleaven
91b40304b7
vdoc: highlight ..
, ...
as punctuation & postfix ops as operators ( #13924 )
2022-04-04 09:21:54 +03:00
Nick Treleaven
d10135e2c4
vdoc: HTML highlight generic function as function, not name ( #13923 )
2022-04-03 23:41:02 +03:00
Nick Treleaven
9c1981a309
vdoc: show //
comment prefix and hide any \x01 character ( #13880 )
2022-03-31 20:00:06 +03:00
Nick Treleaven
a87cd9663e
vdoc: highlight inline examples for -f html
( #13879 )
2022-03-31 19:32:32 +03:00
Delyan Angelov
7ee93c8a20
docs: show the full information for deprecated functions
2022-03-29 15:17:55 +03:00
Nick Treleaven
476f19c090
vdoc: tweak keyword, attribute and light theme CSS ( #13853 )
...
Make keywords bold.
Make attributes use a monospace font (like code).
Tweak light theme foreground colors:
* Make default-text, operator-text and punctuation-text a bit darker,
improving the contrast.
* Make builtin-text a bit darker and more green (similar to dark theme).
* Make function-text a bit darker and more greeny-blue (similar to dark
theme).
* Make attribute-text a bit less transparent for better contrast.
2022-03-28 20:38:00 +03:00
gcxfd
8b033c3993
tools: add a -theme-dir folder/
parameter to v doc
( #13550 )
2022-02-21 12:08:46 +02:00
Delyan Angelov
7f70493e1d
vdoc: show the V commit hash too, not just 0.2.4
2022-02-06 23:50:11 +02:00
Benjamin Stigsen
ceb05b163a
strings: rename Builder.write_b() to Builder.write_byte(), add deprecation ( #13313 )
2022-01-28 20:34:44 +02:00
Delyan Angelov
fa6f7d4c83
os: add os.quoted_path/1, use it consistently for running V itself
2022-01-22 21:13:28 +02:00
Delyan Angelov
c97f0c59d1
tools: generate index.html
instead of .html
for v doc -m -f html .
2022-01-06 04:06:33 +02:00
Eragon
fb3a793a27
tools: add "skip to content" link for screan reader and tui browsers ( #12571 )
2021-11-25 02:53:02 +02:00
Delyan Angelov
32ea53960e
v doc: show a proper error message instead of panic on v doc -m file.v
2021-10-09 11:56:37 +03:00
yuyi
108a01d65f
fmt: fix unnecessary line break in array init ( fix #11448 ) ( #11562 )
2021-09-21 16:20:09 +03:00
Delyan Angelov
25bf68e2f1
ci: os.chdir() fixes for windows jobs
2021-08-28 16:21:46 +03:00
Leo Developer
7bffabbce2
vdoc: add -comments
and new comment merger ( #11221 )
2021-08-19 10:20:43 +03:00
Daniel Däschle
e089d66225
vdoc: imrpove font spacing in the generated html docs ( #11159 )
2021-08-12 10:15:18 +03:00
Daniel Däschle
12fb4655f5
vdoc: use nicer font ( #11151 )
2021-08-12 09:21:31 +03:00
Daniel Däschle
800c0e5092
vlib: remove deprecated map{} usages as well as deprecated functions ( #11035 )
2021-08-04 12:44:41 +03:00
Hunam
0f09228adb
vdoc: fix wrong escaping in HTML docs ( #10638 )
2021-07-30 12:00:03 +03:00
Delyan Angelov
90b9b9d755
v doc: small clean of Return to contents
markdown link
2021-07-27 13:00:07 +03:00
Daniel Däschle
78a41969f6
vdoc: fancier attributes ( #10789 )
2021-07-13 19:44:22 +03:00
shadowninja55
f4d4f56d97
doc: fix html doc closing tags ( #10787 )
2021-07-13 16:45:17 +03:00
shadowninja55
d1f1c5ae51
v doc: add attribute tags to v doc -f html
( #10778 )
2021-07-13 08:27:20 +03:00
yuyi
b0b4b8e65b
checker: fix missing check generic fn call args ( fix #10649 ) ( #10657 )
2021-07-04 19:15:15 +03:00
Yuriy Zymlex
6736817bba
parser: fix rewind_scanner_to_current_token_in_new_mode
( #10495 )
2021-06-22 20:17:36 +03:00
Delyan Angelov
b6bd6d1d35
tests: add cmd/tools/vdoc/tests/vdoc_file_test.v, extract a v.util.diff
module, cleanup
2021-06-22 18:52:34 +03:00
shadowninja55
984551227b
doc: allow pressing / to focus search bar ( #10522 )
...
* type / to focus search; rename unused variables
* use ev.preventDefault() instead of setTimeout()
* delete doc.js_
2021-06-20 05:16:50 +03:00
Anton Zavodchikov
9ee1d8c848
doc: decrease letter count for search to 2 ( #10214 )
2021-05-27 10:17:25 +03:00
Delyan Angelov
6e589e2ae8
vdoc: fix panic on running v doc -all -m vlib/ -f html -inline-assets
two times in a row
2021-04-21 14:33:41 +03:00
Lukas Neubert
9427c5f526
vdoc: fix output folder creation ( #9699 )
2021-04-12 15:59:40 +03:00
Lukas Neubert
0eb59cf2bd
fmt: prevent possible trailing whitespace in wrapped infixes ( #9573 )
2021-04-03 18:30:25 +02:00
Alexander Medvednikov
7385f8e56b
all: a massive merge of ast and table modules
2021-04-02 01:57:09 +03:00
Swastik Baranwal
0e254e0329
vdoc: support -os and show docs according to the platform ( #9474 )
2021-03-27 09:50:06 +01:00
Delyan Angelov
ae6420afc7
tools: fix substring in s
usages, preventing v -W build-tools
2021-03-23 13:36:50 +02:00
Ned Palacios
1d42b4cf66
vdoc, v.doc: remove DocPos and use token.Position ( #9429 )
2021-03-23 09:07:09 +01:00
Delyan Angelov
c76c69ec35
all: simplify return if ...
constructs to make more code compatible with -autofree
2021-03-22 16:45:29 +02:00
Swastik Baranwal
f28e67d526
cmd/tools/v/vdoc: keep _
sep in numeric literals and highlight modules properly ( #9358 )
2021-03-18 15:06:16 +02:00
Ned Palacios
eccf707270
vdoc: improve error message for non-existing symbols ( #9359 )
2021-03-18 15:04:53 +02:00
Swastik Baranwal
2e84773ef1
cmd/tools/vdoc: highlight nested string quotes properly ( #9341 )
2021-03-17 09:50:22 +02:00
Delyan Angelov
0c620a78bf
vdoc: highlight keywords in bright_blue
2021-03-16 12:24:34 +02:00
Swastik Baranwal
0b0e96a8cd
vdoc: improve syntax highlighting ( #9323 )
2021-03-16 12:05:36 +02:00
Swastik Baranwal
26138f98af
v doc: implement color highlighting for the stdout format, enable it by default ( #9312 )
2021-03-15 13:21:19 +02:00
spaceface
e9797c618a
all: implement error interfaces ( #9291 )
2021-03-13 18:13:50 +01:00
Ned Palacios
62458e3553
vdoc: remove local mode ( #9282 )
2021-03-13 07:49:03 +02:00
Ned Palacios
114a7db6e5
vdoc: fix symbol filtering ( #9210 )
2021-03-09 13:05:50 +02:00
Patrick Hintermayer
8f0ede34ad
v doc: add available output formats ( #9180 )
2021-03-08 17:21:40 +02:00
spaceface
b712af56fd
all: bring back panic(err.msg)
-> panic(err)
( #9022 )
2021-03-01 00:18:14 +01:00