Commit Graph

19134 Commits

Author SHA1 Message Date
Brian Carroll
fe8ea970e8
static-site-gen: report successes & errors, and update roc_cli test 2022-09-04 16:53:01 +01:00
Brian Carroll
ce357db270
static-site-gen: make the nav links nicer 2022-09-04 16:43:44 +01:00
Brian Carroll
bbb36cae17
static-site-gen: move assets to output folder 2022-09-04 16:43:05 +01:00
Brian Carroll
93bc73fb14
static-site-gen: copy assets from Daring Fireball 2022-09-04 16:43:03 +01:00
Brian Carroll
edb9fb7022
static-site-gen: formatting 2022-09-04 16:42:56 +01:00
Brian Carroll
70c424b138
static-site-gen: template compiles 2022-09-04 16:42:53 +01:00
Brian Carroll
82bbccfb53
BAD ERROR: importing 'lang' twice causes compiler crash 2022-09-04 16:42:49 +01:00
Brian Carroll
9f32ce4e53
static-site-gen: <head> compiles 2022-09-04 16:42:42 +01:00
Brian Carroll
35858ed4f8
Fixed error by removing = 2022-09-04 16:42:36 +01:00
Brian Carroll
0487107e24
Unhelpful compiler error (wrong location with invalid href=
── UNFINISHED LIST ────────────────── examples/static-site-gen/static-site.roc ─

I am partway through started parsing a list, but I got stuck here:

21│          head [] [
22│              meta [httpEquiv "content-type" , content "text/html; charset=utf-8" ] [],
23│              title [] [text "Daring Fireball: Markdown"],
24│              link [rel "apple-touch-icon-precomposed" ,href="/graphics/apple-touch-icon.png"] [],
                 ^

I was expecting to see a closing square bracket before this, so try
adding a ] and see if that helps?

Note: When I get stuck like this, it usually means that there is a
missing parenthesis or bracket somewhere earlier. It could also be a
stray keyword or operator.
2022-09-04 16:42:02 +01:00
Brian Carroll
e15ed9c846
static-site-gen: Replace hello.txt with a copy of John Gruber's website 2022-09-04 16:41:43 +01:00
Brian Carroll
a8cd357b77
static-site-gen: add a Rust Markdown parser 2022-09-04 16:41:40 +01:00
Brian Carroll
bbc8c36d30
static-site-gen: get rid of Result 2022-09-04 16:41:24 +01:00
Brian Carroll
65a18591e5
static-site-gen: treat all input files as Str rather than List U8
This is just a lot more convenient and in practice isn't really a limitation
2022-09-04 16:41:14 +01:00
Brian Carroll
72174e41a6
static-site-gen: Add a gitignored bin folder 2022-09-04 16:41:02 +01:00
Brian Carroll
2c4b5a8b68
static-site-gen: update README 2022-09-04 16:40:42 +01:00
Folkert
5a078eee4f
fix bug in loading of an opaque pointer 2022-09-04 17:22:43 +02:00
Brian Carroll
f3e999169d
Merge pull request #3959 from roc-lang/platform-example-docs
Generate and host CLI platform example docs
2022-09-04 15:26:33 +01:00
Richard Feldman
85ac11171e
Exclude Effect.roc from cli docs generation 2022-09-03 21:12:39 -04:00
Richard Feldman
15f349fc37
Link to the CLI platform docs in examples README 2022-09-03 21:11:21 -04:00
Richard Feldman
1505cb514e
Generate docs for CLI example platform 2022-09-03 21:06:41 -04:00
Richard Feldman
1093bdde63
Fix a broken doc link 2022-09-03 20:25:48 -04:00
Richard Feldman
1ce5d7c98c
Remove some incorrect pf. qualifications 2022-09-03 19:00:31 -04:00
Richard Feldman
76547a61f0
Merge pull request #3948 from roc-lang/windows-c-calling-convention
windows c calling convention
2022-09-03 09:58:49 -07:00
Folkert de Vries
b1973d5862
Merge pull request #3953 from roc-lang/windows-setup
better windows setup instructions
2022-09-03 16:21:30 +02:00
Richard Feldman
4e46efdcfd
Merge pull request #3949 from roc-lang/docs-improvements
Docs improvements
2022-09-03 07:15:26 -07:00
Folkert
d99fdb3831
change the cutoff for when a pointer is used on windows 2022-09-03 12:42:13 +02:00
Folkert
8175e3a9e2
Merge remote-tracking branch 'origin/main' into windows-c-calling-convention 2022-09-03 12:14:17 +02:00
Jan Van Bruggen
4508a27fda
Merge pull request #3918 from roc-lang/format_cli_help
Improve consistency in CLI help messages
2022-09-02 20:03:45 -06:00
Folkert de Vries
93ace1d6f3
Merge pull request #3945 from roc-lang/i3942
Adds lambda set layout interning
2022-09-02 21:08:30 +02:00
Folkert de Vries
8cd308aa04
Merge pull request #3946 from roc-lang/faster-occurs-check
Attempt occurs checks for recursive lambda sets only during monomorphization
2022-09-02 20:51:51 +02:00
Folkert
ac3c5e2fdb
further additions for building on windows 2022-09-02 20:36:31 +02:00
Anton-4
34de640003
better windows setup instructions
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-09-02 19:42:56 +02:00
Brian Carroll
026087027e
Merge pull request #3902 from roc-lang/nightly_ubu_20
build nightly on ubuntu 20.04
2022-09-02 13:06:37 +01:00
Richard Feldman
ce4aa4c502
Centralize sidebar link logic 2022-09-01 16:28:21 -04:00
Richard Feldman
f3d38fd756
Merge pull request #3947 from KilianVounckx/str-splitfirst-bugfix
Str splitfirst bugfix
2022-09-01 12:00:18 -07:00
Richard Feldman
debcea0f8f
Set cache-control headers on Netlify 2022-09-01 14:24:40 -04:00
Richard Feldman
bdd98e0276
Add prefetching to sidebar links 2022-09-01 14:24:40 -04:00
Folkert
f0f720a86a
pass by pointer more on windows 2022-09-01 20:12:55 +02:00
kilianv
273907319d
Add tests for Str.splitLast
There was only one test, which didn't cover the bug I fixed in Str.splitLast. I
added the tests to make sure the bug will be caught in the future.
2022-09-01 17:03:26 +02:00
kilianv
97f49bf940
Add expect tests for Str.splitLast 2022-09-01 16:59:11 +02:00
kilianv
d89253779a
Add expect tests for Str.splitFirst 2022-09-01 16:57:19 +02:00
kilianv
23e430d91d
Fix splitFirst bug
The reason was an of-by-one error.
2022-09-01 16:48:04 +02:00
kilianv
80c8c80082
Add tests to splitFirst function
Bugfix is coming up. The extra tests should capture the fix. Right now
not all tests pass.
2022-09-01 16:43:13 +02:00
Brian Carroll
bfc00a4b94
Merge pull request #3920 from roc-lang/static-site-gen
Static site generator example
2022-09-01 07:12:12 +01:00
Ayaz Hafiz
086f7a7e9d
Attempt occurs checks for recursive lambda sets only during monomorphization 2022-08-31 16:45:57 -05:00
Ayaz Hafiz
46bc8647b4
Further push layout interner 2022-08-31 16:08:00 -05:00
Folkert de Vries
5d31ec762d
Merge pull request #3890 from roc-lang/layout-cache
Re-introduce layout caching
2022-08-31 22:50:54 +02:00
Ayaz Hafiz
cea2fcafae
Fix dev/wasm compile errors 2022-08-31 15:42:02 -05:00
Ayaz Hafiz
3a130acc32
Fix mut in test 2022-08-31 15:01:01 -05:00