yuyi
4ba4fe7c25
vdoc: highlight comments with gray color ( #18436 )
2023-06-14 14:57:59 +03:00
yuyi
467a1b4435
fmt: remove redundant parenthesis in the complex infix expr ( #17873 )
2023-04-04 13:47:48 +03:00
Delyan Angelov
822acd78cb
tools: add test for VDOC_SORT=false ./v doc file.v
2023-03-30 16:53:12 +03:00
Delyan Angelov
214f72ba03
tools: support VDOC_SORT=false ./v doc time
2023-03-30 14:35:54 +03:00
Delyan Angelov
9c511e03f6
tools: remove import v.pref
, just for pref.vexe_path()
, to compile tools faster ( #17411 )
2023-02-26 07:56:14 +02:00
Swastik Baranwal
8873127687
v doc: properly highlight the new generics syntax []
in the CLI results of v doc arrays
etc ( #16703 )
2022-12-19 12:12:46 +02:00
yuyi
ef5be22f81
all: replace generic <>
with []
- part 2 ( #16536 )
2022-11-26 18:23:26 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' ( #16428 )
2022-11-15 16:53:13 +03:00
Alexander Medvednikov
e81e0ac708
fmt: replace go
with spawn
2022-11-05 10:46:40 +03:00
yuyi
51f4d99399
all: change optional to result in most of the libraries ( #16123 )
2022-10-20 22:14:33 +03:00
Swastik Baranwal
f7f0e0b5dc
v doc: remove int_literal
and float_literal
from syntax highlighting, since they are internal types ( #16066 )
2022-10-13 20:49:34 +03:00
yuyi
41dbd12bc4
tests: make error handling the same as the main function ( #15825 )
2022-09-21 19:45:43 +03:00
Swastik Baranwal
d08edf8cba
vdoc: highlight generic struct everywhere ( #15506 )
2022-08-23 15:21:26 +03:00
Swastik Baranwal
a1de8f5f98
vdoc: highlight variadic function parameters ( #15474 )
2022-08-20 12:02:50 +03:00
Swastik Baranwal
22a79cfa1e
v doc
: add highlighting for new types and fix highlighting for edge cases (#15455 )
2022-08-18 18:06:55 +03:00
Daniel Däschle
d679146a80
fmt: remove space in front of ? and ! ( #14366 )
2022-05-13 06:56:21 +03:00
Delyan Angelov
4da2908d63
vdoc: fix panic on empty //
comment on v doc -f html file.v
; turn expected code block after empty example
to a warning
2022-05-03 00:02:12 +03:00
Alexander Medvednikov
d4a0d6f73c
all: byte => u8
2022-04-15 14:58:56 +03:00
Delyan Angelov
8788512c4d
checker: make using err.msg and err.code produce an *actual* notice, even with the present compatibility hack (will be *removed* in 2022-06-01)
2022-04-12 14:56:02 +03:00
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