add bare bones TOML syntax
just for the following post so it's pretty shitty
This commit is contained in:
parent
80c6b90f9b
commit
1170829d2d
2 changed files with 151 additions and 0 deletions
|
@ -414,3 +414,116 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
% id = "01JHGY8R3HQNWADNHDGDC3XNPJ"
|
||||||
|
- `toml`
|
||||||
|
|
||||||
|
% id = "01JHGY8R3HHKSJ56P5ZN1DPK7E"
|
||||||
|
- this one is not very good...
|
||||||
|
it was written very hastily for [page:design/freehouse][]
|
||||||
|
|
||||||
|
% id = "01JHGY8R3HPBT0J9MSVFCPPQNZ"
|
||||||
|
- it'll probably be tweaked later
|
||||||
|
|
||||||
|
% id = "01JHGY8R3HA2E49YNW1Y21VBEN"
|
||||||
|
- sample
|
||||||
|
|
||||||
|
```toml
|
||||||
|
# This string is prepended before each link address.
|
||||||
|
# Replace this with a different root path if you need to host the site in a subdirectory (eg. "/treehouse").
|
||||||
|
# Note this does not affect the behavior of `serve`, as the treehouse is always served under /.
|
||||||
|
# Therefore this is most useful for reverse proxies.
|
||||||
|
# This variable can also be set using the TREEHOUSE_SITE environment variable.
|
||||||
|
site = ""
|
||||||
|
|
||||||
|
# This is used to generate a link in the footer that links to the page's source commit.
|
||||||
|
# The final URL is `{commit_base_url}/{commit}/content/{tree_path}.tree`.
|
||||||
|
commit_base_url = "https://src.liquidev.net/liquidex/treehouse/src/commit"
|
||||||
|
|
||||||
|
[user]
|
||||||
|
title = "riki's house"
|
||||||
|
author = "riki"
|
||||||
|
description = "a fluffy ragdoll's fluffy house = -w- ="
|
||||||
|
canonical_url = "https://riki.house"
|
||||||
|
|
||||||
|
# URI prefix to use for entry IDs in feeds.
|
||||||
|
# This is kept at the old domain so as not to wreak havoc in people's feed readers.
|
||||||
|
# (changing this would mark all existing entries as unread, which would be really annoying.)
|
||||||
|
feed_id_prefix = "https://liquidex.house"
|
||||||
|
|
||||||
|
[defs]
|
||||||
|
|
||||||
|
# Social garbage
|
||||||
|
"social/github" = "https://github.com/liquidev"
|
||||||
|
"social/soundcloud" = "https://soundcloud.com/daknus"
|
||||||
|
"social/listenbrainz" = "https://listenbrainz.org/user/liquidev/"
|
||||||
|
|
||||||
|
# treehouse management facilities
|
||||||
|
"treehouse/issues" = "https://src.liquidev.net/liquidex/treehouse/issues"
|
||||||
|
|
||||||
|
# My own repositories
|
||||||
|
"stitchkit/repo" = "https://github.com/abyteintime/stitchkit"
|
||||||
|
"dawd3/repo" = "https://github.com/liquidev/dawd3"
|
||||||
|
"treehouse/repo" = "https://src.liquidev.net/liquidex/treehouse"
|
||||||
|
"dispatchers/repo" = "https://github.com/liquidev/dispatchers"
|
||||||
|
"abit/repo" = "https://github.com/abyteintime/abit"
|
||||||
|
"rokugo/repo" = "https://github.com/rokugo-lang/rokugo"
|
||||||
|
"mica/repo" = "https://github.com/mica-lang/mica"
|
||||||
|
"planet_overgamma/repo" = "https://github.com/liquidev/planet-overgamma"
|
||||||
|
"rkgk/repo" = "https://github.com/liquidev/rkgk"
|
||||||
|
"netcanv/repo" = "https://github.com/netcanv/netcanv"
|
||||||
|
|
||||||
|
# Blog posts I like to reference
|
||||||
|
"article/function_coloring" = "https://journal.stuffwithstuff.com/2015/02/01/what-color-is-your-function/"
|
||||||
|
|
||||||
|
"word/hyperlink" = "https://en.wiktionary.org/wiki/hyperlink"
|
||||||
|
"word/iff" = "https://en.wiktionary.org/wiki/iff"
|
||||||
|
|
||||||
|
# People
|
||||||
|
"person/areox" = "https://areox.boo"
|
||||||
|
"person/ezioleq" = "https://ezioleq.com"
|
||||||
|
"person/firstbober" = "https://firstbober.com"
|
||||||
|
"person/olekolek1000" = "https://oo8.dev"
|
||||||
|
"person/vixenka" = "https://vixenka.com"
|
||||||
|
|
||||||
|
[feed]
|
||||||
|
tags = [
|
||||||
|
# Hobby corners
|
||||||
|
"meow",
|
||||||
|
"programming",
|
||||||
|
"design",
|
||||||
|
"music",
|
||||||
|
"games",
|
||||||
|
"philosophy",
|
||||||
|
|
||||||
|
# Programming fields
|
||||||
|
"graphics",
|
||||||
|
"plt",
|
||||||
|
|
||||||
|
# Programming languages
|
||||||
|
"c",
|
||||||
|
"cxx",
|
||||||
|
"lua",
|
||||||
|
"javascript",
|
||||||
|
|
||||||
|
# Projects
|
||||||
|
"treehouse",
|
||||||
|
"haku",
|
||||||
|
]
|
||||||
|
|
||||||
|
[redirects.page]
|
||||||
|
"programming/cxx" = "programming/languages/cxx"
|
||||||
|
"programming/unreal-engine" = "programming/technologies/unreal-engine"
|
||||||
|
|
||||||
|
[emoji]
|
||||||
|
|
||||||
|
[pics]
|
||||||
|
|
||||||
|
[build.javascript]
|
||||||
|
import_roots = [
|
||||||
|
{ name = "treehouse", path = "" },
|
||||||
|
{ name = "tairu", path = "components/tairu" },
|
||||||
|
{ name = "haku", path = "components/haku" },
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
||||||
|
|
38
static/syntax/toml.json
Normal file
38
static/syntax/toml.json
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
"comment": "NOTE: very incomplete. barely enough to highlight treehouse.toml",
|
||||||
|
|
||||||
|
"patterns": [
|
||||||
|
{ "regex": "#.*", "is": "comment" },
|
||||||
|
|
||||||
|
{
|
||||||
|
"regex": "(\"(?:\\\\\"|[^\"])*\"|[a-zA-Z0-9_\\-\\.]+)\\s*(=)",
|
||||||
|
"is": {
|
||||||
|
"default": "default",
|
||||||
|
"captures": ["ident", "operator"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"regex": "(\\[)([a-zA-Z0-9_\\-\\.]+)(\\])",
|
||||||
|
"is": {
|
||||||
|
"default": "default",
|
||||||
|
"captures": ["punct", "keyword2", "punct"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"regex": "(\\[\\[)([a-zA-Z0-9_\\-\\.]+)(\\]\\])",
|
||||||
|
"is": {
|
||||||
|
"default": "default",
|
||||||
|
"captures": ["punct", "keyword2", "punct"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
{ "regex": "\"\"\".*?\"\"\"", "is": "string", "flags": ["dotMatchesNewline"], "comment": "TODO: escaping" },
|
||||||
|
{ "regex": "'''.*?'''", "is": "string", "flags": ["dotMatchesNewline"], "comment": "TODO: escaping" },
|
||||||
|
{ "regex": "\"(\\\\\"|[^\"])*\"", "is": "string" },
|
||||||
|
{ "regex": "'.*?'", "is": "string" },
|
||||||
|
|
||||||
|
{ "regex": "[,\\(\\)\\[\\]\\{\\}]", "is": "punct" }
|
||||||
|
],
|
||||||
|
"keywords": {}
|
||||||
|
}
|
Loading…
Reference in a new issue