Commit graph

109 commits

Author SHA1 Message Date
Yuki Omoto
33ed87cacb
Add missing parentheses of type annotation in docs
This commit adds parentheses for type annotation of nested function
as in `mapWithIndex : List a, (a, Nat -> b) -> List b`.

This resolves #4698
2023-03-26 21:04:26 +09:00
Yuki Omoto
e8adfa5b71
Treat html as text in markdown parsing to disallow html in docs 2023-03-25 21:17:53 +09:00
itmuckel
97f68974a9
Code Review Changes 2023-03-20 19:53:38 +01:00
itmuckel
cc70413e05
Add github style links to docs sections 2023-03-20 19:53:31 +01:00
Anton-4
9c0d2a2eb0
some style changes 2023-03-18 14:22:52 +01:00
Seth Workman
4756781f25
fix mobile support for button container 2023-03-17 15:27:13 -05:00
Seth Workman
fed541947a
add copy button to builtin docs 2023-03-17 08:51:53 -05:00
Luke Boswell
91604f8be6
return structure using <h2> elements, fix css 2023-03-15 18:19:33 +11:00
Richard Feldman
cc88437182
Increase spacing between docs entries
Signed-off-by: Richard Feldman <oss@rtfeldman.com>
2023-03-12 09:07:42 -04:00
Luke Boswell
5a0a7289ba
update styles for docs 2023-03-12 16:44:05 +11:00
Luke Boswell
766385a561
make colors WCAG AA compliant 2023-03-10 13:27:43 +11:00
Luke Boswell
2bed7da218
improve token categories and color scheme 2023-03-10 11:38:42 +11:00
Luke Boswell
6e80b52d91
format and clippy 2023-03-08 17:33:49 +11:00
Luke Boswell
890f3db10a
update to support fenced code 2023-03-08 17:30:30 +11:00
Luke Boswell
ffcb91321e
clippy 2023-03-06 22:41:06 +11:00
Luke Boswell
25b3b61e07
cargo fmt 2023-03-06 22:37:56 +11:00
Luke Boswell
5e40e580cb
update docs syntax highlighting, remove unsused code 2023-03-06 22:20:49 +11:00
Joshua Warner
31a4eb2bfd
Fix parsing of tuple accessors after an identifier - e.g. myIdent.2 2023-01-30 21:12:01 -08:00
Folkert
92da3973e7
remove argument from load_and_typecheck 2022-12-29 16:50:19 +01:00
Richard Feldman
b9f8253c39
Always generate doc links to builtins 2022-12-24 22:32:15 -05:00
Richard Feldman
3f0060f492
Fix some formatting 2022-12-24 22:32:15 -05:00
Richard Feldman
1a2b2826ab
clippy 2022-12-24 22:32:14 -05:00
Richard Feldman
15d4c2ad68
Don't render undexposed types in docs 2022-12-24 22:32:13 -05:00
Richard Feldman
15590fb31b
Generate docs basde on package root .roc file 2022-12-24 22:32:13 -05:00
Richard Feldman
ab45d6c632
Fix docs generation of types 2022-12-24 22:32:12 -05:00
Richard Feldman
f5cb2d73a1
Merge branch 'precompiled-legacy' into https-packages 2022-11-24 04:29:56 -05:00
Richard Feldman
7d2fa63dca
Make roc_cache_dir() panic if it can't find $HOME 2022-11-20 20:54:03 -05:00
Richard Feldman
721841fa1f
Provide roc_cache_dir everywhere 2022-11-20 19:53:48 -05:00
Richard Feldman
200d456b7b
Create single source of favicon truth 2022-11-19 06:23:46 -05:00
Richard Feldman
1e4cf52fd4
Merge pull request #4504 from roc-lang/fix-styles
Fix some web styles
2022-11-16 21:53:05 -05:00
Brian Carroll
b64514d7e4
Fix web REPL error formatting by routing the active Palette everywhere 2022-11-11 23:38:08 +00:00
Richard Feldman
e2891257ba
Don't use a style attribute for the builtins tip
This doesn't work because of our content-security policy!
2022-11-11 12:24:19 -05:00
Luke Boswell
cec67721e6
merge upstream/main 2022-11-06 09:27:46 +11:00
Christopher Duncan
4b808100b4
Amend List.walk documentation with latest syntax 2022-11-05 06:16:27 -04:00
Luke Boswell
a3f901427a
correct formatting and removed duplicate image 2022-11-03 20:02:10 +11:00
Luke Boswell
f3bdb5f321
updating rust package documentation 2022-11-03 20:00:06 +11:00
Joshua Warner
07be8ec000
Refactor Parser trait to pass min_indent
This removes the need to explicitly pass thru min_indent when using the parser combinators.

My ultimate goal here is to evolve the current parser closer toward a purely combinator-based parser,
at which point we can more easily transition smoothly to a formal(ish) grammar, or expand the meanings of combinators
to include things like:
* Incremental (re)parsing
* Unified parsing and formatting code
* Better error recovery
* Using the main parser directly for syntax highlighting
2022-10-31 13:31:47 -07:00
Richard Feldman
7737aac810
Drop the trailing "/" in docs sidebar links 2022-10-23 21:10:35 -04:00
Richard Feldman
921ab885ce
Move where the "different name" tip goes 2022-10-23 18:55:41 -04:00
Richard Feldman
c15a1dde22
Restyle search key shortcut 2022-10-23 18:55:40 -04:00
Christopher Duncan
7131432e7c
Dynamically generate the documentation title 2022-10-16 09:04:53 -04:00
Anton-4
46920d3c08
simplify format
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-10-11 15:47:09 +02:00
Christopher Duncan
5ccd3c884d
Fix prefetch links in the Standard Library page 2022-10-11 08:00:11 -04:00
Luke Boswell
17aac69d92
fix for 's' keypress in search, and escape behaviour to reset sidebar elements 2022-10-09 20:42:19 +11:00
Richard Feldman
34f56371f7
Search docs with S instead of /
It turns out / on Firefox is already search,
and we don't want to override that.

Also adds a tip to make the shortcut discoverable.
2022-10-09 04:26:00 -04:00
Luke Boswell
2b47a4067b
updated quick search keyboard shortct in docs to / key, included escape out of input box 2022-10-09 17:56:28 +11:00
Luke Boswell
91a71a8550
added event listener to focus search box in docs 2022-10-09 16:12:21 +11:00
Richard Feldman
791340e2ae
Don't have docs print unnecessary parens or spaces 2022-09-12 20:32:46 -04:00
Richard Feldman
0a3a9584c4
Don't put spaces in types in docs 2022-09-12 20:32:46 -04:00
Richard Feldman
75a0eeacc7
Don't hardcode "roc/builtins 1.0.0" in docs 2022-09-12 20:32:45 -04:00