Commit graph

19 commits

Author SHA1 Message Date
Agus Zubiaga
8dedd9f03c
New app header syntax
Implements the new app header syntax as discussed in Zulip [1].

    app [main] {
	cli: platform "../platform/main.roc",
	json: "../json/main.roc"
    }

Old headers still parse and are automatically upgraded to the new
syntax by the formatter.

[1] 418444862
2024-05-01 10:49:01 -03:00
Anton-4
0d26203acd
improve errors, support nested snippets 2024-01-31 18:26:21 +01:00
Michael Pfeifer
b40803da9b
Remove unnecessary empty line 2024-01-29 00:05:06 +01:00
Michael Pfeifer
74476531cf
Support embedding parts of files with the static site gen platform 2024-01-17 22:34:34 +01:00
Luke Boswell
3832228a13
update to use file: prefix 2023-03-19 14:10:22 +11:00
Luke Boswell
c7f8ba6ded
fix subfolder generation 2023-03-17 12:58:40 +11:00
Luke Boswell
239f79d26f
roc format 2023-03-15 21:17:54 +11:00
Luke Boswell
bea3a4f2f7
add static code file import for site gen 2023-03-15 20:59:58 +11:00
Luke Boswell
1590b30b19
Add a lexing-based 'highlight' mode to the parser
basic syntax highlighting

added more syntax highlighting coverage

add example of a markdown table with styling

move FIXED_TOKEN logic into highlight

refactor highlight, add support for backpassing

escape html from source code

fix bug with <pre> tag ordering

refactor out html from roc_parse

remove test, put highlight functionality into separate file

fix typo
2023-02-28 17:03:49 +11:00
Anton-4
0d58a7cf8a
example.org is better 2022-10-15 14:28:56 +02:00
Anton-4
eb727bd8b0
fixed links, minimal exceptions
Replaced lorem ipsum links with links to roc-lang. All exceptions added are due to problems with those sites and their interaction with programs like curl
2022-10-15 14:25:03 +02:00
Anton-4
f7dd5ca708
replace random links with roc-lang.org
random links are generated by the lorem ipsum generator, we don't want to allow a bunch of random links in the repo for security purposes.

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2022-10-15 12:21:59 +02: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
Brian Carroll
be245a8ede
static-site-gen: fix typos 2022-09-04 19:10:25 +01:00
Brian Carroll
ce357db270
static-site-gen: make the nav links nicer 2022-09-04 16:43:44 +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
7d6f0b3806
examples: first draft of static site generator example 2022-08-28 14:33:03 +01:00