Commit graph

63 commits

Author SHA1 Message Date
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
Turiiya
9639f55db0
vdoc: include src dir when trying to generate doc comments for module (#21505) 2024-05-15 21:07:15 +03:00
Turiiya
7f7b6c3ed9
vdoc: rewrite and extend vdocignore (#21314) 2024-04-20 12:48:37 +03:00
Turiiya
8aa9314a99
vlib: refactor empty string checks to use s == '' or s != '', instead of s.len == 0 (#21300) 2024-04-18 02:44:31 +03:00
Turiiya
39de87c895
vdoc: fix out path if -o is not passed but input has a path, add test (#21246) 2024-04-11 16:28:16 +03:00
Turiiya
efc395eb64
vdoc: don't add _docs directory when an out path is specified (#21233) 2024-04-09 06:50:50 +03:00
Pierre Curto
91d50e415c
vdoc: fix #8044 and -comments flag (#20592) 2024-01-27 07:10:50 +02:00
Swastik Baranwal
4458e49652
vdoc: fix syntax highlighting for symbols before ! and between ( and , (#19888) 2023-11-16 20:14:28 +02:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
Delyan Angelov
999328a136
tools: support v doc -run-examples math, to ensure that all // Example: code doc comments are working (#19852) 2023-11-13 12:53:42 +02:00
Delyan Angelov
f3425139fb
tools: make vdoc more verbose with -v to more easily diagnose parsing problems on incomplete code examples with it 2023-11-01 14:02:33 +02:00
Turiiya
6b978a6b5a
vdoc: refactor theme files (#19024) 2023-08-02 10:46:18 +03:00
Turiiya
e78e468d5f
vdoc: include the project root folder, when searching for readme of src/ (#19000) 2023-07-30 00:00:18 +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
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
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
2cd9c91e98
vdoc: highlight terminal examples for -comments -color (#13937) 2022-04-04 18:13:24 +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
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
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
Leo Developer
7bffabbce2
vdoc: add -comments and new comment merger (#11221) 2021-08-19 10:20:43 +03:00
yuyi
b0b4b8e65b
checker: fix missing check generic fn call args (fix #10649) (#10657) 2021-07-04 19:15:15 +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
Swastik Baranwal
0e254e0329
vdoc: support -os and show docs according to the platform (#9474) 2021-03-27 09:50:06 +01:00
Ned Palacios
1d42b4cf66
vdoc, v.doc: remove DocPos and use token.Position (#9429) 2021-03-23 09:07:09 +01:00
Ned Palacios
eccf707270
vdoc: improve error message for non-existing symbols (#9359) 2021-03-18 15:04:53 +02:00
Delyan Angelov
0c620a78bf
vdoc: highlight keywords in bright_blue 2021-03-16 12:24:34 +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
spaceface
d63b7bc35a
all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
spaceface
b9a381f101
all: migrate to the new Option (p. 1) (#8924) 2021-02-28 22:24:29 +03:00
Delyan Angelov
2516c07614
ci: fix v -W build-tools 2021-02-22 15:33:35 +02:00
Ned Palacios
ebb5305b27
vdoc: fix markdown toc link rendering (#8714) 2021-02-13 09:04:47 +02:00
Delyan Angelov
e5a84719ca
all: require calling optfn() ? / optfn() or {...} for fn optfn() ? {} 2021-01-26 16:43:17 +02:00
Delyan Angelov
dbaccd4272
vfmt: shorten main.const_name to just const_name 2021-01-25 20:57:33 +02:00
Delyan Angelov
728344ff65
ci: fix v test-cleancode 2021-01-25 12:55:01 +02:00
Lukas Neubert
8b61891348
fmt: smarter if condition wrapping (#8201) 2021-01-23 10:33:22 +02:00
zakuro
33694665f0
fmt: align each contiguous field of struct. not the whole. (#7981) 2021-01-12 04:38:43 +01:00
Larpon
362c21de06
vdoc: remove http doc server (#7984) 2021-01-09 22:47:58 +01:00
Larpon
b299fb1e92
vdoc: heavy refactor, immutable config (#7945) 2021-01-08 12:25:22 +02:00