aboutsummaryrefslogtreecommitdiff
path: root/lib/docs/main.js
AgeCommit message (Collapse)Author
2025-08-06autodoc: Use the search input's value on load (#24467)massi
Co-authored-by: massi <git@massi.world>
2025-02-15Autodoc: report errors in user interfaceIan Johnson
Also includes panics by virtue of the previous commit, checking one item off #19249.
2025-02-15Autodoc: use browser console log levels and simplify panicIan Johnson
Using the browser's `console.error`, etc. functions instead of `console.log` produces prettier output in the console. Additionally, `console.error` in particular includes a stack trace, which is useful for debugging where the error occurred. Additionally, this commit leverages the enhanced logging to delete the separate `panic` function from the JS code and write it in Zig instead.
2024-07-09Autodoc: only group structs under "namespaces"Ian Johnson
The old heuristic of checking only for the number of fields has the downside of classifying all opaque types, such as `std.c.FILE`, as "namespaces" rather than "types".
2024-03-13autodoc: Use `code` for keyboard eventsCarl Åstholm
2024-03-10update autodocs web application to latestAndrew Kelley
upstream commit 1f921d540e1a8bb40839be30239019c820eb663d after this branch is merged, ziglang/zig becomes the new repository for this code.
2024-03-10upstream new autodocs implementationAndrew Kelley
2023-10-30autodoc: Some support for field_call (#16853)Krzysztof Wolicki
* autodoc: Some support for field_call * autodoc: Change handling of field_call to respect tryResolveRefPath, add fieldVal to Expr * autodoc: Fixed errors * autodoc: sync with latest master changes --------- Co-authored-by: Loris Cro <kappaloris@gmail.com>
2023-10-22autodoc: Display type kinds for containers (#17667)Krzysztof Wolicki
2023-10-04autodoc: Add `hidden` class to [src] link when starting renderApi to only ↵Krzysztof Wolicki
show it for functions (#17322)
2023-10-04autodoc: Add handling for array_cat, array_mul, struct_init_empty_result. ↵Krzysztof Wolicki
(#17367) Fix issue with getting docs for src-less types in main.js
2023-09-20autodoc: show more doc comments for namespaces and typesLoris Cro
previously, in the container view (the type of view that you see when you look at `std` for example), when listing types and namespaces, we would only show doc comments places on the direct child decl, which in the case of the `std` namespace, for example, it's just a bunch of re-exports. now, if we don't find a direct doc comment, we chase indirection and display doc comments placed directly on the definition, if any. this is the precise priority order: ``` /// 1 pub const Foo = _Foo; /// 2 const _Foo = struct { //! 3 }; ``` The numbers show the priority order for autodoc.
2023-09-17autodoc: split json payload per fieldLoris Cro
this will make s3 re-enable compression for the stdlib's autodoc and improve loading times (and data usage) for users alongside this commit the deploy script for the official website is also being updated
2023-09-16autodoc: Implement various missing expressions in ex (#17129)Krzysztof Wolicki
Co-authored-by: Loris Cro <kappaloris@gmail.com>
2023-09-16autodoc: Implement builtin function rendering.Krzysztof Wolicki
Implement unary ops handling. Fix getType in main.js Minor cleanup of builtin function handling.
2023-09-16autodoc: Remove unnecessary Expr tagKrzysztof Wolicki
2023-09-16autodoc: Handle `ref` ZIR instructionKrzysztof Wolicki
2023-09-09Autodoc: simplify search text on mobileIan Johnson
This prevents the placeholder text from spilling out of the search bar on smaller screens.
2023-09-09Autodoc: fix search results navigationIan Johnson
Closes #17013
2023-09-03autodoc: Fix rendering of enum types (#17058)Krzysztof Wolicki
2023-09-03autodoc: fix rendering of std.json.ObjectMapLoris Cro
closes #17014 supersedes #17022 follow up issue #17061
2023-09-03autodoc: Implement `@call`, `@unionInit`, `@mulAdd` support (#16918)Krzysztof Wolicki
* autodoc: Implement `@call`, `@unionInit`, `@mulAdd` support * autodoc: Implement builtinIndex in ex
2023-09-03autodoc: Implement `@bitSizeOf` rendering in main.js (#16895)Krzysztof Wolicki
2023-09-03autodoc: Implement `a[b]`, `a.?`, and `a.*` (#16863)Krzysztof Wolicki
* autodoc: Implement elem_val_node and basic optional_payload_* * autodoc: Add `.*` loads
2023-09-03autodoc: fix typoLoris Cro
2023-09-03autodoc: better light mode colorsLoris Cro
fix #15799
2023-08-06autodoc: new layout (#16715)Loris Cro
* 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-07-29autodoc: implement typeof support in new rendering systemLoris Cro
2023-07-25autodoc: improve handling of periods in search box and add search explainerLoris Cro
2023-07-22autodoc: Fix an issue with aliased functions (#16421)Krzysztof Wolicki
2023-07-20collconv -> callconv (#16453)zooster
2023-07-14autodoc: improved linking for declrefsLoris Cro
2023-07-14Autodoc tokenizer (#16409)Loris Cro
* 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-06Autodoc: implement boolean operationsIan Johnson
2023-07-04autodoc: use commonmark.js for Markdown renderingIan Johnson
2023-07-03autodoc: wire in js tokenizer to frontendLoris Cro
2023-07-01autodoc: fix scoring bug when matching full decl nameLoris Cro
2023-07-01Fixed Autodoc rendering of @truncate builtin (#16263)Emile Badenhorst
* 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-06-28Autodoc: add preference for `/` searchIan Johnson
Closes #16081
2023-06-27autodoc: walkResultTypeRef returns Zig's undefined instead of 0th typeKrzysztof Wolicki
2023-06-19all: zig fmt and rename "@XToY" to "@YFromX"Eric Joldasov
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-06-18autodoc: Fix rendering of function arguments named `_`Krzysztof Wolicki
2023-06-18Merge branch 'master' into autodoc-searchkeyLoris Cro
2023-06-04autodoc: Fix rendering of some values in main.jsKrzysztof Wolicki
2023-05-22autodoc: Links to private decls now lead to source filesKrzysztof Wolicki
2023-05-16autodoc: Fix rendering of imported modulesKrzysztof Wolicki
2023-05-13autodoc: Start search on any search input event, not just keydownLinus Groh
2023-05-11Merge pull request #15519 from dweiller/issue-15482Andrew Kelley
Optimize lowering of `s[start..][0..len]`
2023-05-11Merge pull request #15637 from der-teufel-programming/autodoc-layoutsLoris Cro
autodoc: Add layout to Struct and Union to handle packed and extern
2023-05-11Merge pull request #15545 from r00ster91/autodocthingLoris Cro
autodoc: make help modal toggleable and allow entering "?" in search