aboutsummaryrefslogtreecommitdiff
path: root/lib/docs
AgeCommit message (Collapse)Author
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-25Add embedded SVG favicon to reference doc templatesJay Petacat
The SVG looks way better than the pixelated PNG and will adapt best to whatever screen it is being displayed on. The PNG continues to be used because Apple Safari does not support SVG favicons yet. All other major browsers do. See https://caniuse.com/link-icon-svg. This is a companion PR to ziglang/www.ziglang.org#310.
2023-09-24autodoc: give explicit width to logoLoris Cro
fix #17251
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-17autodoc: rename the doctest section in the frontend to 'Usage Examples'Loris Cro
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: Fix styling of the navbarKrzysztof Wolicki
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: tweak page layoutIan Johnson
Closes #17011 Closes #17012 This commit allows the logo to scale more freely to fit its container, and removes some extra margins so that the content scroll bar is flush with the right side of the viewport.
2023-09-09Autodoc: fix search results navigationIan Johnson
Closes #17013
2023-09-04autodoc: style links in source codeLoris Cro
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-09-03autodoc: Extract decl ref style and fix light mode color (#15990)James Chen-Smith
Co-authored-by: James Chen-Smith <james@chen-smith.net> Co-authored-by: Loris Cro <kappaloris@gmail.com>
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-08-03autodoc: Added line_comment tokens to ziglexer.js tokenizerKrzysztof Wolicki
2023-07-29autodoc: implement typeof support in new rendering systemLoris Cro
2023-07-28autodoc: improve styling of new help dropdownLoris Cro
2023-07-25autodoc: html page fixesLoris 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-06changed identifier to whiteEmile Badenhorst
2023-07-06Fixed names prefixEmile Badenhorst
2023-07-06updated cssEmile Badenhorst
2023-07-04autodoc: use commonmark.js for Markdown renderingIan Johnson
2023-07-03autodoc: wire in js tokenizer to frontendLoris Cro
2023-07-03Autodoc: Javascript port of zig lexer. (#16306)Emile Badenhorst
* Most of the js lexer ported * Fixed lexical Ranges * Mini test framework * More testing and bug fixing in zig js lexer * Removed bad import * Implemented good html generation Closes #15863
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