diff --git a/README.md b/README.md index 3163585..685af8e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ It works by ingesting a TOML file containing your node specification and serving ## Roadmap -For an outline of planned and completed features, see the [roadmap](./docs/development/roadmap.md). +For an outline of planned and completed features, see the [roadmap](https://en.jutty.dev/node/Roadmap). ## Learn more diff --git a/src/syntax/content/parser/context/anchor.rs b/src/syntax/content/parser/context/anchor.rs index 665627c..1a45d3e 100644 --- a/src/syntax/content/parser/context/anchor.rs +++ b/src/syntax/content/parser/context/anchor.rs @@ -145,10 +145,7 @@ fn push( if let Some(node_id) = candidate.node_id() && let Some(node) = graph.find_node(&node_id).node { - log!("Found matching node {node:?} for anchor candidate {candidate}"); candidate.set_node(&node); - } else { - log!("Could not find a matching node for anchor candidate {candidate}"); } tokens.push(Token::Anchor(Box::new(candidate.clone()))); diff --git a/static/graph.toml b/static/graph.toml index 7830df3..5262492 100644 --- a/static/graph.toml +++ b/static/graph.toml @@ -85,8 +85,9 @@ This will create a connection from the node with ID `Realism` to a node with ID [nodes.docs] redirect = "Documentation" +hidden = true -[nodes.Node] # foo +[nodes.Node] text = """ A node is defined in your graph file starting with a table header of the form: @@ -182,10 +183,9 @@ If an option is specified more than once, the last use will override any previou [nodes.Syntax] text= """ - Some fields of your en graph, namely the |Node| text field, have support for special syntax that allows you to apply formatting and create connections between your graph's nodes. -If you are familiar with Markdown|https://en.wikipedia.org/wiki/Markdown|, you'll find that some features familiar, with some notable differences too. +If you are familiar with Markdown|https://en.wikipedia.org/wiki/Markdown|, you'll find some features familiar, with some notable differences too. ## Anchors @@ -369,7 +369,7 @@ Here too: \\\\* ''' ` -This has nothing to do with en's markup syntax per se, it's just a consequence of how newlines are also special in |TOML| syntax. For more details, see the |TOML documentation on Strings|https://toml.io/en/v1.1.0#string|. +This has nothing to do with en's markup syntax per se, it's just a consequence of how backslashes are also special in |TOML| syntax. For more details, see the |TOML documentation on Strings|https://toml.io/en/v1.1.0#string|. """ [nodes.AnchorSyntax] @@ -519,9 +519,22 @@ en is only possible thanks to a number of projects and people: [nodes.Roadmap] text = """ -- [x] Redirects -- [x] Strip/render some syntax in Tree text preview -- [x] Drop-down navigation +- [x] Formatting + - [ ] Blockquotes + - [x] Nested formatting + - [x] Headers + - [x] Preformatted blocks + - [x] _Oblique_, + - [x] __Underline__ + - [x] ~~Strikethrough~~ + - [x] *Bold* + - [x] `Inline code` + - [x] Lists + - [x] Nested lists + - [x] Checkboxes + - [x] Move this roadmap to en +- [ ] Caching +- [ ] Invert where redirects are set - [ ] Meta-awareness - [ ] Detached edges - [ ] Most linked to nodes @@ -541,13 +554,14 @@ text = """ - [ ] By most linked - [x] Anchors and connections - [x] Render detached anchors differently + - [ ] Count connection to a redirect as a connection to the target - [ ] Suffix-aware anchors - [x] Plural anchors (`|node|s` -> `node`) - [x] Ignore trailing punctuation - [ ] Conjugation anchors (`|will|ed` -> `will`) - [ ] Configurable suffixes - [x] Spaced node anchor (`|red fox|` -> `redfox` -> `RedFox`) - - [ ] Automatic connections from anchors + - [x] Automatic connections from anchors - [ ] `#` syntax for header ID anchors - [ ] Connection kinds - [ ] Mutual @@ -558,20 +572,6 @@ text = """ - [ ] Specialization <-> Generalization - [ ] Custom connection kinds - [x] External anchors -- [x] Richer text formatting - - [x] Nested formatting - - [ ] Blockquotes - - [x] Headers - - [x] Preformatted blocks - - [x] _Oblique_, - - [x] __Underline__ - - [x] ~~Strikethrough~~ - - [x] *Bold* - - [x] `Inline code` - - [x] Lists - - [x] Nested lists - - [x] Checkboxes - - [x] Move this roadmap to en - [ ] Full-text search - [ ] Begin centralizing state - [ ] Reduce O(n) calls in the formats module @@ -583,6 +583,12 @@ text = """ - [ ] Multi-file graphs - [ ] Multi-graph - [ ] Themes + +## Done + +- [x] Redirects +- [x] Strip/render some syntax in Tree text preview +- [x] Drop-down navigation - [x] Array syntax for lightweight connections - [x] Automatic IDs - [x] Automatic titles diff --git a/static/style.css b/static/style.css index c62f865..26153f5 100644 --- a/static/style.css +++ b/static/style.css @@ -31,18 +31,30 @@ pre, code { } a { - color: #0d6161; + color: #0f6366; text-decoration: underline dotted #138e8e; text-decoration-thickness: 1.5px; + text-underline-offset: 3px; } a:visited { text-decoration-color: #999; + text-decoration-style: dashed; } a.detached { color: #595959; - text-decoration-color: #555555; + text-decoration-color: none; +} + +a.external { + color: #1958a7; + text-decoration-color: #2A7CDF; + text-decoration-style: solid; +} + +footer div a { + text-decoration: none; } div.header-row { @@ -78,6 +90,7 @@ span.hidden-label { h1.node-title { display: inline; margin: 10px 0; + font-weight: 300; } footer div { @@ -163,10 +176,15 @@ em#index-node-count { } a { - color: #1bc8c8; + color: #1dd7d7; text-decoration-color: #159b9b; } + a.external { + color: #2fbae4; + text-decoration-color: #46c1e7; + } + a.detached { color: #acacac; text-decoration-color: #777;