Richard Feldman
92b897fc13
Add File I/O CLI example
2022-09-11 16:56:02 -04:00
Richard Feldman
f39e7e6737
Add File to CLI platform
2022-09-11 16:56:02 -04:00
Richard Feldman
75af7b2c5c
Add InternalTask
2022-09-11 16:56:02 -04:00
Richard Feldman
4a14a019b6
Add new File I/O CLI effects
2022-09-11 16:56:02 -04:00
Richard Feldman
762fa75511
Add Stderr.line to cli-platform
2022-09-11 16:56:02 -04:00
Brian Carroll
1a5395d196
static-site-gen: check output dir exists, to kill a Heisenbug on CI
2022-09-10 23:49:54 +01:00
Jan Van Bruggen
8bbfd68621
Add language to all fenced code blocks
...
See https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md040
2022-09-09 01:12:31 -06:00
Jan Van Bruggen
072a6bd002
Eliminate consecutive newlines
...
See https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md012
2022-09-09 01:12:30 -06:00
Jan Van Bruggen
3902668ce5
Add angle brackets to bare URLs
...
See https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md034
2022-09-09 01:12:30 -06:00
Jan Van Bruggen
3219178003
Ensure only one h1
per .md
file
...
See https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md025
2022-09-07 23:27:18 -06:00
Brian Carroll
cf6a62b7ad
static-site-gen: Use Box to workaround app/host ABI issues
2022-09-07 23:36:43 +01:00
Anton-4
322ae187bc
Merge branch 'main' into markdown
...
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-09-06 08:31:49 +02:00
Brian Carroll
6fe9466b0d
static-site-gen: add some CSS
2022-09-05 21:13:37 +01:00
Brian Carroll
c21a6cb67c
static-site-gen: New example using lorem ipsum content
2022-09-05 20:46:53 +01:00
Brian Carroll
aeac8035c1
Delete example (open license is for markdown not for the site)
2022-09-05 18:43:32 +01:00
Jan Van Bruggen
1272503bec
Merge pull request #3943 from sandprickle/move-examples-3912
...
Move Platform Examples (3912)
2022-09-05 10:38:24 -06:00
Brian Carroll
be245a8ede
static-site-gen: fix typos
2022-09-04 19:10:25 +01:00
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
Richard Feldman
15f349fc37
Link to the CLI platform docs in examples README
2022-09-03 21:11:21 -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
Bryce Miller
67a5aedd44
Merge branch 'roc-lang:main' into move-examples-3912
2022-09-01 15:20:34 -04:00
Bryce Miller
55688e8fa2
move WebAssembly example
2022-08-31 14:20:25 -04:00
Bryce Miller
bc7d62e94c
move Zig example
2022-08-31 14:09:34 -04:00
Bryce Miller
6ccd00abf4
move C example
2022-08-31 14:05:43 -04:00
Bryce Miller
841af10f36
move Swift example
2022-08-31 13:39:24 -04:00
Bryce Miller
ec548d9143
Move Rust example
2022-08-31 13:21:53 -04:00
Brian Carroll
9e96241e3e
get static-site-gen working with surgical linker
2022-08-31 09:00:45 +01:00
Brian Carroll
0759b646e6
examples: fix static-site-gen when output dir doesn't exist yet
2022-08-31 09:00:24 +01:00
Brian Carroll
f1cb7d735b
try to use legacy linker on static-site-gen in example tests
2022-08-30 23:57:38 +01:00
Brian Carroll
63bc153025
Fix build errors
2022-08-29 23:23:38 +01:00
Brian Carroll
5d6037d888
cli_run: add test for static-site-gen example and print more to stdout
2022-08-29 22:05:35 +01:00
Brian Carroll
f2ddaa95db
Account for a compiler bug and tweak platform a bit
2022-08-28 23:29:38 +01:00
Brian Carroll
5aee798340
examples: Add a README to the static site generator
2022-08-28 21:52:04 +01:00
Brian Carroll
7d6f0b3806
examples: first draft of static site generator example
2022-08-28 14:33:03 +01:00