Ian Johnson
2f26b15995
Autodoc: fix search results navigation
...
Closes #17013
2023-09-09 19:47:57 +02:00
Krzysztof Wolicki
5cc1831ca4
autodoc: Fix rendering of enum types ( #17058 )
2023-09-03 18:34:29 +02:00
Loris Cro
e5c72a32a7
autodoc: fix rendering of std.json.ObjectMap
...
closes #17014
supersedes #17022
follow up issue #17061
2023-09-03 18:32:26 +02:00
Krzysztof Wolicki
555028086a
autodoc: Implement @call, @unionInit, @mulAdd support ( #16918 )
...
* autodoc: Implement `@call`, `@unionInit`, `@mulAdd` support
* autodoc: Implement builtinIndex in ex
2023-09-03 17:20:23 +02:00
Krzysztof Wolicki
86a9e1deaf
autodoc: Implement @bitSizeOf rendering in main.js ( #16895 )
2023-09-03 17:18:51 +02:00
Krzysztof Wolicki
80c1d48ccb
autodoc: Implement a[b], a.?, and a.* ( #16863 )
...
* autodoc: Implement elem_val_node and basic optional_payload_*
* autodoc: Add `.*` loads
2023-09-03 17:18:16 +02:00
Loris Cro
0516a4d629
autodoc: fix typo
2023-09-03 17:15:15 +02:00
Loris Cro
c0da41582b
autodoc: better light mode colors
...
fix #15799
2023-09-03 17:12:52 +02:00
Loris Cro
373e48c983
autodoc: new layout ( #16715 )
...
* autodoc: init guide TOC work
* autodoc: working guides toc navigation
* autodoc: more improvements
* autodoc: ui refinements
* autodoc: new layout and init descriptions for namespaces in std.zig
2023-08-06 18:12:05 +02:00
Loris Cro
f5239677e2
autodoc: implement typeof support in new rendering system
2023-07-29 19:07:23 +02:00
Loris Cro
4f5082fc86
autodoc: improve handling of periods in search box and add search explainer
2023-07-25 19:19:39 +02:00
Krzysztof Wolicki
4bc90f17bb
autodoc: Fix an issue with aliased functions ( #16421 )
2023-07-22 16:36:26 +02:00
zooster
996eb01746
collconv -> callconv ( #16453 )
2023-07-20 00:40:47 +00:00
Loris Cro
7dd1cf26f9
autodoc: improved linking for declrefs
2023-07-14 19:11:55 +02:00
Loris Cro
a187141056
Autodoc tokenizer ( #16409 )
...
* autodoc: init work to refactor exprName
* autodoc: Implement more expressions in exprName refactor
* autodoc: more work
* autodoc: More exprName to ex refactoring
* autodoc: Remove whitespace flag from renderer; Add pre tags in
value and variable drawing in renderContainer
* autodoc: add inline styling to pre blocks
* autodoc: move renderer code to main.js
* autodoc: More exprName to ex refactoring; Fn signatures rendered with new code
* autodoc: Fix function rendering. Add more things to ex
* autodoc: nuke exprName
---------
Co-authored-by: Krzysztof Wolicki <der.teufel.mail@gmail.com>
2023-07-14 16:27:09 +02:00
Ian Johnson
91daf1c8d8
Autodoc: implement boolean operations
2023-07-06 17:28:11 +02:00
Ian Johnson
d3eaa75c07
autodoc: use commonmark.js for Markdown rendering
2023-07-04 17:08:46 +02:00
Loris Cro
28ad74e8a6
autodoc: wire in js tokenizer to frontend
2023-07-03 19:18:44 +02:00
Loris Cro
97a1b046ea
autodoc: fix scoring bug when matching full decl name
2023-07-01 17:38:18 +02:00
Emile Badenhorst
35a8e8a06c
Fixed Autodoc rendering of @truncate builtin ( #16263 )
...
* fixed autodoc rendering of @trucate builtin
* Changed to LHS for typeRef
* autodoc: fix typeref for `truncate`
---------
Co-authored-by: Loris Cro <kappaloris@gmail.com>
2023-07-01 16:43:17 +02:00
Ian Johnson
4dacaa1e12
Autodoc: add preference for / search
...
Closes #16081
2023-06-28 18:16:16 +02:00
Krzysztof Wolicki
5804f3f757
autodoc: walkResultTypeRef returns Zig's undefined instead of 0th type
2023-06-27 19:07:39 +02:00
Eric Joldasov
50339f595a
all: zig fmt and rename "@XToY" to "@YFromX"
...
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-06-19 12:34:42 -07:00
Krzysztof Wolicki
e9da87866c
autodoc: Fix rendering of function arguments named _
2023-06-18 14:41:49 +00:00
Loris Cro
216ef10dc4
Merge branch 'master' into autodoc-searchkey
2023-06-18 09:06:40 +02:00
Krzysztof Wolicki
ad6e106f52
autodoc: Fix rendering of some values in main.js
2023-06-04 11:05:53 +00:00
Krzysztof Wolicki
94a7d5b8a5
autodoc: Links to private decls now lead to source files
2023-05-22 00:55:51 +02:00
Krzysztof Wolicki
3e5824d2a6
autodoc: Fix rendering of imported modules
2023-05-16 13:11:33 +02:00
Linus Groh
bebb6a45a5
autodoc: Start search on any search input event, not just keydown
2023-05-13 17:52:13 +01:00
Andrew Kelley
7f7bd206dc
Merge pull request #15519 from dweiller/issue-15482
...
Optimize lowering of `s[start..][0..len]`
2023-05-11 08:59:44 -07:00
Loris Cro
5512455974
Merge pull request #15637 from der-teufel-programming/autodoc-layouts
...
autodoc: Add layout to Struct and Union to handle packed and extern
2023-05-11 17:46:29 +02:00
Loris Cro
8ece99083f
Merge pull request #15545 from r00ster91/autodocthing
...
autodoc: make help modal toggleable and allow entering "?" in search
2023-05-11 17:44:55 +02:00
Krzysztof Wolicki
b7ba9aa892
autodoc: Add layout to Struct and Union to properly display packed and extern;
...
Make rendering of types in exprName more similar to zig fmt
2023-05-10 01:53:00 +02:00
Krzysztof Wolicki
9c8b9719cb
autodoc: Fix exprName for struct and union types
2023-05-09 10:51:19 +02:00
Krzysztof Wolicki
b488f97e92
autodoc: Analyze and expose backing integer types for packed structs
2023-05-08 22:34:46 +02:00
Krzysztof Wolicki
f2aa7c8698
autodoc: Remove rendering "tuple" as part of the name in exprName
2023-05-08 22:29:20 +02:00
dweiller
2c5924c59a
autodoc: fix support for slice_length ZIR instruction
2023-05-07 15:55:21 +10:00
Krzysztof Wolicki
538c8258c7
autodoc: Remove debug code
2023-05-05 12:01:00 +02:00
Krzysztof Wolicki
e0c65ce3f2
autodoc: main.js exprName cleanup
2023-05-05 02:46:04 +02:00
Krzysztof Wolicki
e363ffad90
autodoc: Better comptimeExpr code for blocks
2023-05-05 01:46:19 +02:00
r00ster91
eab4cd7a66
autodoc: type "?" instead of opening help modal if search selected
...
The question mark character can appear in identifiers as part of the
`@"syntax"` so we should allow typing it. Now, when the search is
selected, "?" is entered instead. It also shouldn't be that common in
general for the user to want to open the help modal.
2023-05-02 04:43:06 +02:00
r00ster91
6f1336a50c
autodoc: make the help modal toggleable
...
Now you can simply press "?" again to toggle the help modal instead of
requiring Esc. Both Esc and "?" work.
2023-05-02 04:41:25 +02:00
cryptocode
5d20a4e35c
autodoc: Add / as an alternative search key
...
Per Discord discussion. Motivation: `/` is now the de facto standard for initating search on webpages.
2023-04-29 20:48:18 +02:00
Krzysztof Wolicki
aa51a5c557
autodoc: Gather and display decltests
2023-04-29 00:54:23 +02:00
Loris Cro
d0311e28b3
autodoc: fix sidebar regression and other minor bugs
2023-04-26 18:20:41 +02:00
Loris Cro
b294bff1a8
Autodoc: new decl search system ( #15475 )
...
New search system is based on a Radix Tree. The Radix Tree contains a shallow list of all decl names (ie no paths), plus some suffixes, split by following the official style guide (eg "HashMapUnmanaged" also produces "MapUnmanaged" and "Unmanaged", same with snake_case and camelCase names).
Additionally, the search system uses the decl graph data to recognize hierarchical relationships between decls, allowing you to zero on a target namespace for search. As an example "fs create" will score highe all things related to the creation of files and directories inside of `std.fs`, while still showing (but with lower score) matches from `std.Bulild`.
As another example "fs windows" will prioritize windows-related results in `std.fs`, while "windows fs" will prioritize fs-related results in `std.windows`.
2023-04-26 18:17:20 +02:00
Krzysztof Wolicki
a260fa8bf2
autodoc: Change package to module to better reflect the new names
2023-04-23 01:02:09 +02:00
Loris Cro
c5fb245f60
Merge branch 'master' into autodoc-src-files-dirs
2023-04-22 19:10:23 +02:00
Krzysztof Wolicki
428f745270
autodoc: Change html file destination dirs
...
Each file is now saved with its package index in data.json
2023-04-22 02:36:19 +02:00
Krzysztof Wolicki
7e18bd7f71
autodoc: Handle calling conventions better
...
special case inline cc in exprName
2023-04-21 11:52:07 +02:00