Minor logging, docs and style tweaks

This commit is contained in:
Juno Takano 2026-01-11 17:32:47 -03:00
commit c6f9ea667d
4 changed files with 50 additions and 29 deletions

View file

@ -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

View file

@ -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())));

View file

@ -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

View file

@ -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;