1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

98 Commits

Author SHA1 Message Date
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
41dbd12bc4 tests: make error handling the same as the main function (#15825) 2022-09-21 19:45:43 +03:00
d08edf8cba vdoc: highlight generic struct everywhere (#15506) 2022-08-23 15:21:26 +03:00
a1de8f5f98 vdoc: highlight variadic function parameters (#15474) 2022-08-20 12:02:50 +03:00
22a79cfa1e v doc: add highlighting for new types and fix highlighting for edge cases (#15455) 2022-08-18 18:06:55 +03:00
d679146a80 fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
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
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
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
7d8db1042d vdoc: don't highlight less than expression as generic function (#13938) 2022-04-05 05:58:47 +03:00
2cd9c91e98 vdoc: highlight terminal examples for -comments -color (#13937) 2022-04-04 18:13:24 +03:00
91b40304b7 vdoc: highlight .., ... as punctuation & postfix ops as operators (#13924) 2022-04-04 09:21:54 +03:00
d10135e2c4 vdoc: HTML highlight generic function as function, not name (#13923) 2022-04-03 23:41:02 +03:00
9c1981a309 vdoc: show // comment prefix and hide any \x01 character (#13880) 2022-03-31 20:00:06 +03:00
a87cd9663e vdoc: highlight inline examples for -f html (#13879) 2022-03-31 19:32:32 +03:00
7ee93c8a20 docs: show the full information for deprecated functions 2022-03-29 15:17:55 +03:00
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
8b033c3993 tools: add a -theme-dir folder/ parameter to v doc (#13550) 2022-02-21 12:08:46 +02:00
7f70493e1d vdoc: show the V commit hash too, not just 0.2.4 2022-02-06 23:50:11 +02:00
ceb05b163a strings: rename Builder.write_b() to Builder.write_byte(), add deprecation (#13313) 2022-01-28 20:34:44 +02:00
fa6f7d4c83 os: add os.quoted_path/1, use it consistently for running V itself 2022-01-22 21:13:28 +02:00
c97f0c59d1 tools: generate index.html instead of .html for v doc -m -f html . 2022-01-06 04:06:33 +02:00
fb3a793a27 tools: add "skip to content" link for screan reader and tui browsers (#12571) 2021-11-25 02:53:02 +02:00
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
108a01d65f fmt: fix unnecessary line break in array init (fix #11448) (#11562) 2021-09-21 16:20:09 +03:00
25bf68e2f1 ci: os.chdir() fixes for windows jobs 2021-08-28 16:21:46 +03:00
7bffabbce2 vdoc: add -comments and new comment merger (#11221) 2021-08-19 10:20:43 +03:00
e089d66225 vdoc: imrpove font spacing in the generated html docs (#11159) 2021-08-12 10:15:18 +03:00
12fb4655f5 vdoc: use nicer font (#11151) 2021-08-12 09:21:31 +03:00
800c0e5092 vlib: remove deprecated map{} usages as well as deprecated functions (#11035) 2021-08-04 12:44:41 +03:00
0f09228adb vdoc: fix wrong escaping in HTML docs (#10638) 2021-07-30 12:00:03 +03:00
90b9b9d755 v doc: small clean of Return to contents markdown link 2021-07-27 13:00:07 +03:00
78a41969f6 vdoc: fancier attributes (#10789) 2021-07-13 19:44:22 +03:00
f4d4f56d97 doc: fix html doc closing tags (#10787) 2021-07-13 16:45:17 +03:00
d1f1c5ae51 v doc: add attribute tags to v doc -f html (#10778) 2021-07-13 08:27:20 +03:00
b0b4b8e65b checker: fix missing check generic fn call args (fix #10649) (#10657) 2021-07-04 19:15:15 +03:00
6736817bba parser: fix rewind_scanner_to_current_token_in_new_mode (#10495) 2021-06-22 20:17:36 +03:00
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
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
9ee1d8c848 doc: decrease letter count for search to 2 (#10214) 2021-05-27 10:17:25 +03:00
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
9427c5f526 vdoc: fix output folder creation (#9699) 2021-04-12 15:59:40 +03:00
0eb59cf2bd fmt: prevent possible trailing whitespace in wrapped infixes (#9573) 2021-04-03 18:30:25 +02:00
7385f8e56b all: a massive merge of ast and table modules 2021-04-02 01:57:09 +03:00
0e254e0329 vdoc: support -os and show docs according to the platform (#9474) 2021-03-27 09:50:06 +01:00
ae6420afc7 tools: fix substring in s usages, preventing v -W build-tools 2021-03-23 13:36:50 +02:00
1d42b4cf66 vdoc, v.doc: remove DocPos and use token.Position (#9429) 2021-03-23 09:07:09 +01:00
c76c69ec35 all: simplify return if ... constructs to make more code compatible with -autofree 2021-03-22 16:45:29 +02:00
f28e67d526 cmd/tools/v/vdoc: keep _ sep in numeric literals and highlight modules properly (#9358) 2021-03-18 15:06:16 +02:00
eccf707270 vdoc: improve error message for non-existing symbols (#9359) 2021-03-18 15:04:53 +02:00