Andrew Kelley
ec95e00e28
flatten lib/std/special and improve "pkg inside another" logic
...
stage2: change logic for detecting whether the main package is inside
the std package. Previously it relied on realpath() which is not portable.
This uses resolve() which is how imports already work.
* stage2: fix cleanup bug when creating Module
* flatten lib/std/special/* to lib/*
- this was motivated by making main_pkg_is_inside_std false for
compiler_rt & friends.
* rename "mini libc" to "universal libc"
2022-05-06 22:41:00 -07:00
xackus
ab991cab84
std docs: @This() in generic types
2021-04-12 09:31:45 +02:00
xackus
7857ad78db
std docs: update var to anytype
2021-04-11 22:59:30 +02:00
Hannu Hartikainen
c9ffb6f734
std docs: enhance search browser history UX
...
Before this change every keypress in the search field causes a browser
history entry, which makes navigating back annoying.
On first keypress in the search field, a new history entry is created.
On subsequent keypresses, the most recent history entry is replaced.
Therefore a typical history after searching and navigating to an entry
might look like
1. documentation root
2. search page "print"
3. docs for `std.debug.print`
Co-authored-by: Žiga Željko <ziga.zeljko@gmail.com>
2021-04-04 16:25:47 -07:00
Veikka Tuominen
85dd5746bd
Merge pull request #6678 from s-ol/doc-type-aware
...
generated docs improvements: add vector, fntype, anytype type-printing; bool, function value-printing
2020-10-29 15:19:02 +02:00
s-ol
6e96352b90
docs: link to functions in getValueText and getCallHtml
2020-10-29 00:10:22 +01:00
s-ol
300b617140
generated docs: add FnFrame type support
...
See #3404
2020-10-23 15:44:32 +02:00
s-ol
bf982cd4e9
generated docs: add anyframe type support
...
See #3404
2020-10-22 16:05:59 +02:00
s-ol
c81e8c2125
generated docs: add vector type support
...
See #3404
2020-10-22 16:05:59 +02:00
xackus
36d586336c
std docs: print bool values
2020-10-20 23:27:12 +03:00
Veikka Tuominen
eb687810cf
Merge pull request #4976 from xackus/std-lib-docs
...
std lib docs: fix null and int values
2020-06-01 14:50:05 +03:00
Vexu
d061e5854a
Merge pull request #5020 from jinroh/docs/search-perf
...
docs: search perf
2020-05-16 16:43:41 +03:00
StrangeBug
54088fe6e1
Add support for external links and URL to markdown parser.
2020-05-05 18:09:32 +02:00
Pierre Guilleminot
f31e0d9834
docs: use String.repeat for dom templates
2020-04-13 14:03:44 +02:00
Pierre Guilleminot
297452cf67
improve search perf: trim search results
2020-04-12 23:17:20 +02:00
Pierre Guilleminot
f76d59ef76
improve search perf: batching dom list mutations
2020-04-12 23:13:57 +02:00
xackus
721c76b53c
refactor common pattern into a function
2020-04-07 23:37:33 +02:00
xackus
bf46117f13
std lib docs: fix null and int values
2020-04-07 23:37:01 +02:00
pfg
e3b37fc9c1
Generated documentation mobile support
2020-03-04 10:47:21 -05:00
Rocknest
437c6a4b7e
Make markdown parser more safe ( #4105 )
...
Fixes #3722
2020-01-07 15:26:21 -05:00
Henry Wu
170de5ecae
generated docs: log trace instead of error
...
When the error occurred for getValueText it could potentially omit
useful documentation since the page stops rendering.
2019-12-16 12:40:38 -05:00
Andrew Kelley
a3f6a58c77
remove var args from the language
...
closes #208
2019-12-09 15:27:27 -05:00
Vexu
137cb32f5e
add docs for function parameters
2019-12-04 14:14:47 -05:00
Vexu
977b613881
add container doc comments to generated docs
2019-11-15 15:17:59 +02:00
Timon Kruiper
03603ea353
Std docs: Fix a js error that would cause some function to be not rendered
2019-10-28 15:06:55 -04:00
Felix Queißner
5456eb1107
Starts to implement markdown parser. Implemented: strong, emphasis, strikethrough, underline, code blocks, ulist, olist, paragraphs, headings. Planned: Links, Images, internal references.
2019-10-20 11:49:28 +02:00
Andrew Kelley
1014cfdf3b
generated docs: progress towards generic types being useful
...
See #3406
2019-10-16 01:49:02 -04:00
Andrew Kelley
e6ca61bdd1
generated docs: further clean up keyboard shortcut handling
...
now it's harder to introduce a bug when modifying keyboard shortcut
code.
2019-10-15 18:37:24 -04:00
dtw-waleee
725c873e81
fix small misstake, 'escape' v. 'Escape'
2019-10-15 18:19:13 -04:00
dtw-waleee
3e891c9c0b
Fix keyboard layout issue with help-modal
...
Some keyboard layouts produces a different ev.which value in firefox
for ? than 191, eg. the Swedish QWERTY one produces 171. Chrome/chromium
doesn't have this issue.
2019-10-15 18:19:13 -04:00
Andrew Kelley
8b45921664
merge targets of generated docs
2019-10-11 18:14:06 -04:00
Andrew Kelley
6082c14753
generated docs: add optional type support
2019-10-10 20:32:17 -04:00
Andrew Kelley
bc393eefa1
generated docs: better rendering of unknown decls
2019-10-10 19:21:56 -04:00
Andrew Kelley
d15a71afc9
generated docs: clean up type names and param names
...
closes #3410
2019-10-10 15:42:40 -04:00
Andrew Kelley
78d06ec4af
Merge branch 'docs-union-enum' of https://github.com/Vexu/zig into Vexu-docs-union-enum
2019-10-10 13:36:37 -04:00
Andrew Kelley
6330dfbea6
generated docs: better listing of functions
2019-10-10 11:03:16 -04:00
Timon Kruiper
e34e3344d4
Generated docs: Add function paramater names
2019-10-10 15:23:24 +02:00
Timon Kruiper
4250d27fe5
Generated docs: store static container info in a containerDecl astNode
...
And then get the struct field astNodes through the containerDecl astNode.
The type of a struct field is still stored in the types array, but the
static information is in the astNodes.
2019-10-10 14:21:35 +02:00
Vexu
2b55484f3f
implement doc generation for union and enum
2019-10-10 10:27:12 +03:00
Andrew Kelley
12ed85d0d1
generated docs: better handle when root is std
2019-10-10 01:38:20 -04:00
Andrew Kelley
510b6443ba
generated docs: avoid clobbering browser shortcut keys
2019-10-09 18:28:50 -04:00
Andrew Kelley
000a1df4a3
generated docs: add array type support
...
See #3404
2019-10-09 18:22:46 -04:00
Andrew Kelley
6d54e8fc3c
generated docs: render values
...
also fix pressing enter in search box before search finishes
closes #3409
2019-10-09 18:09:35 -04:00
Andrew Kelley
13ae7d47b7
generated docs: refactor how type kinds work
2019-10-09 18:09:35 -04:00
Andrew Kelley
e0ab685467
generated docs: more verbose fields
...
also prevent docs making hyperlinks for integer types
2019-10-09 16:31:20 -04:00
Andrew Kelley
8d5e3a2f33
generated docs: separate section for namespaces
...
if a type is a struct with no fields, then it goes in the namespaces
section.
2019-10-09 15:52:55 -04:00
Andrew Kelley
3ce83e879b
generated docs: show error sets pages
...
also favicon, improve error sets css, syntax awareness of
noreturn
2019-10-09 15:23:13 -04:00
Timon Kruiper
8a547d9e81
Docs: adds docs comments to struct fields
2019-10-09 13:27:06 -04:00
Andrew Kelley
48f5b21e7c
generated docs: functions in a table with descriptions
2019-10-09 00:24:58 -04:00
Andrew Kelley
71fb4ef8da
generated docs: separate Error Sets from Types
2019-10-08 23:33:19 -04:00