Commit graph

79 commits

Author SHA1 Message Date
Folkert
d8fa2b8d92
stop passing stdlib (use lazy_static) 2022-03-22 19:53:02 +01:00
Anton-4
d373085386
Merge pull request #2675 from rtfeldman/new-syntax-highlight
peg grammar, tokenizer, new syntax highlighting
2022-03-14 17:20:14 +01:00
Folkert
c79ecec56e
make SubsByModule opaque 2022-03-11 20:16:55 +01:00
Anton-4
c8fd1836c9
clippy+fmt 2022-03-07 19:59:45 +01:00
Anton-4
37704323b1
basic highlighting flow using MarkupNodes 2022-03-04 20:19:05 +01:00
Folkert
957140df64 remove builtin lookup function being passed around 2022-02-14 20:32:31 +01:00
Folkert
c663a35e16 final phase 2022-01-26 15:44:24 +01:00
Joshua Warner
f22f96843e Refactor ParseProblem
* Remove the `pos` field, which was always being assigned Position::default()
* Remove one use of this `pos`, by removing the never-used SyntaxError::ConditionFailed variant
* Adjust the other use to do what was probably intended - which is to say, pointing to the beginning of the def with the error
* Rename to FileError, reuse `SourceError` as an inner field, to avoid duplicating the `bytes`
2022-01-03 20:10:50 -08:00
Joshua Warner
49818343dd extract state 2021-12-16 17:13:53 -08:00
Anton-4
c7c421b2f5 fixed scope lookup bug 2021-10-19 16:45:28 +02:00
Anton-4
0a77b3f334 debugging wrong id in docs test 2021-10-18 19:58:03 +02:00
Anton-4
e003725f21 cleanup unwrap 2021-10-15 19:01:41 +02:00
Anton-4
d3f2b95f7a addes test to docs for function 2021-10-15 15:02:37 +02:00
Anton-4
4324b08a30 cleanup+fmt+clippy 2021-10-05 11:58:11 +02:00
Anton-4
548d806a88 def->MarkupNode working 2021-10-04 19:26:31 +02:00
Anton-4
c6066cc629 expr working, debugging def 2021-10-02 19:47:46 +02:00
Anton-4
f63c276a5f docs flow working with mocked markup to html 2021-10-01 18:22:27 +02:00
Chadtech
1ff614b2f1 Merge branch 'trunk' of github.com:rtfeldman/roc into docs-parse-code-blocks 2021-08-22 15:54:28 -04:00
Chadtech
9e12f6d3ec ToHtml trait for docs and some rudimentary syntax highlighting that is definitely a work in progress 2021-08-22 15:53:26 -04:00
Chadtech
c72400c619 Merge branch 'trunk' of github.com:rtfeldman/roc into docs-parse-code-blocks 2021-08-10 00:31:06 -04:00
Chadtech
d7b347bd1d Compute annotation instead of NoTypeAnn in docs code 2021-08-10 00:21:21 -04:00
Chadtech
68147e7703 docs Syntax highlight function set up, and test set up for syntax highlighting 2021-08-09 20:21:03 -04:00
Richard Feldman
235a68d332 Fix relative fragments for DocDef 2021-08-08 23:32:37 -04:00
Richard Feldman
0291d5d0c0 Emit code blocks for auto-links in docs 2021-08-08 23:25:33 -04:00
Richard Feldman
c1e65ce340 Update a comment 2021-08-08 15:48:58 -04:00
Richard Feldman
4bfa82b679 Fix asset links for docs 2021-08-08 00:44:26 -04:00
Richard Feldman
d37e30560b Add a base href root to docs links 2021-08-07 23:40:49 -04:00
Richard Feldman
4c0c09374d Improve error message for a docs problem 2021-08-07 21:46:20 -04:00
Folkert
ceb5cc66fa use IdentStr 2021-08-03 21:14:36 +02:00
Richard Feldman
9fb0a7946e
Merge pull request #1512 from rtfeldman/docs-exposed-values-in-sidebar
Sidebar only shows exposed values
2021-08-01 22:02:15 -04:00
Chadtech
f3c009d653 Filter side nav items by what the module exposes 2021-08-01 14:14:21 -04:00
Richard Feldman
07de1837e4 Fix some comments 2021-08-01 10:23:16 -04:00
Richard Feldman
b7c666e5e7 Switch to [Str.join] syntax for doc links 2021-08-01 10:23:16 -04:00
Folkert
e805e63db6 typos 2021-07-30 16:54:22 +02:00
Folkert
899cbeabd7 fix extra ampersands 2021-07-29 17:32:08 +02:00
Chadtech
aea7e536de comply with clippy 2021-07-11 17:23:36 -04:00
Chadtech
3fbb0ed60f is multiline check for docs type annotation rendering 2021-07-11 14:58:46 -04:00
Chadtech
00acb6c289 Record rendering had unnecessary new lines and indents 2021-07-11 11:51:35 -04:00
Chadtech
6d00171cd7 Links to different modules require relative href 2021-07-10 11:14:55 -04:00
Chadtech
e091c254ba Fix doc links 2021-07-05 12:40:50 -04:00
Chadtech
62d5633546 Fixed problems with docs failing to render and included test to validate that behavior 2021-07-03 14:51:40 -04:00
Chadtech
38ef2a915a Only render exposed values 2021-06-27 20:24:05 -04:00
Chadtech
9d2976f14f Module aliases passed into LoadedModule, and used in docs to generate docs for aliases exposed by the module 2021-06-19 13:35:57 -04:00
Chadtech
f53339a595 Clippy fix 2021-06-12 19:09:00 -04:00
Chadtech
ebbdf671ae Look into values exposed by host and only add those entries to the documentation html 2021-06-12 18:57:59 -04:00
Anton-4
47f606d588
Merge branch 'trunk' into typos_ci 2021-06-07 15:01:55 +02:00
Anton-4
22d834ebd9 Merge branch 'trunk' of github.com:rtfeldman/roc into typos_ci 2021-06-07 12:33:26 +02:00
Chadtech
ef74f50ae7 A module like Json.Decode will now have its docs at Json/Decode/index.html 2021-06-07 01:02:20 -04:00
Richard Feldman
53da2a2d14 clippy 2021-06-06 10:10:51 -04:00
Richard Feldman
18be90649e Don't link to .html files anymore
We now generate index.html files, so the .html
suffix is no longer needed!
2021-06-06 10:01:44 -04:00