Minor logging, docs and style tweaks
This commit is contained in:
parent
ccee6b2500
commit
c6f9ea667d
4 changed files with 50 additions and 29 deletions
|
|
@ -6,7 +6,7 @@ It works by ingesting a TOML file containing your node specification and serving
|
||||||
|
|
||||||
## Roadmap
|
## 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
|
## Learn more
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -145,10 +145,7 @@ fn push(
|
||||||
if let Some(node_id) = candidate.node_id()
|
if let Some(node_id) = candidate.node_id()
|
||||||
&& let Some(node) = graph.find_node(&node_id).node
|
&& let Some(node) = graph.find_node(&node_id).node
|
||||||
{
|
{
|
||||||
log!("Found matching node {node:?} for anchor candidate {candidate}");
|
|
||||||
candidate.set_node(&node);
|
candidate.set_node(&node);
|
||||||
} else {
|
|
||||||
log!("Could not find a matching node for anchor candidate {candidate}");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tokens.push(Token::Anchor(Box::new(candidate.clone())));
|
tokens.push(Token::Anchor(Box::new(candidate.clone())));
|
||||||
|
|
|
||||||
|
|
@ -85,8 +85,9 @@ This will create a connection from the node with ID `Realism` to a node with ID
|
||||||
|
|
||||||
[nodes.docs]
|
[nodes.docs]
|
||||||
redirect = "Documentation"
|
redirect = "Documentation"
|
||||||
|
hidden = true
|
||||||
|
|
||||||
[nodes.Node] # foo
|
[nodes.Node]
|
||||||
text = """
|
text = """
|
||||||
A node is defined in your graph file starting with a table header of the form:
|
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]
|
[nodes.Syntax]
|
||||||
text= """
|
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.
|
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
|
## 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]
|
[nodes.AnchorSyntax]
|
||||||
|
|
@ -519,9 +519,22 @@ en is only possible thanks to a number of projects and people:
|
||||||
|
|
||||||
[nodes.Roadmap]
|
[nodes.Roadmap]
|
||||||
text = """
|
text = """
|
||||||
- [x] Redirects
|
- [x] Formatting
|
||||||
- [x] Strip/render some syntax in Tree text preview
|
- [ ] Blockquotes
|
||||||
- [x] Drop-down navigation
|
- [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
|
- [ ] Meta-awareness
|
||||||
- [ ] Detached edges
|
- [ ] Detached edges
|
||||||
- [ ] Most linked to nodes
|
- [ ] Most linked to nodes
|
||||||
|
|
@ -541,13 +554,14 @@ text = """
|
||||||
- [ ] By most linked
|
- [ ] By most linked
|
||||||
- [x] Anchors and connections
|
- [x] Anchors and connections
|
||||||
- [x] Render detached anchors differently
|
- [x] Render detached anchors differently
|
||||||
|
- [ ] Count connection to a redirect as a connection to the target
|
||||||
- [ ] Suffix-aware anchors
|
- [ ] Suffix-aware anchors
|
||||||
- [x] Plural anchors (`|node|s` -> `node`)
|
- [x] Plural anchors (`|node|s` -> `node`)
|
||||||
- [x] Ignore trailing punctuation
|
- [x] Ignore trailing punctuation
|
||||||
- [ ] Conjugation anchors (`|will|ed` -> `will`)
|
- [ ] Conjugation anchors (`|will|ed` -> `will`)
|
||||||
- [ ] Configurable suffixes
|
- [ ] Configurable suffixes
|
||||||
- [x] Spaced node anchor (`|red fox|` -> `redfox` -> `RedFox`)
|
- [x] Spaced node anchor (`|red fox|` -> `redfox` -> `RedFox`)
|
||||||
- [ ] Automatic connections from anchors
|
- [x] Automatic connections from anchors
|
||||||
- [ ] `#` syntax for header ID anchors
|
- [ ] `#` syntax for header ID anchors
|
||||||
- [ ] Connection kinds
|
- [ ] Connection kinds
|
||||||
- [ ] Mutual
|
- [ ] Mutual
|
||||||
|
|
@ -558,20 +572,6 @@ text = """
|
||||||
- [ ] Specialization <-> Generalization
|
- [ ] Specialization <-> Generalization
|
||||||
- [ ] Custom connection kinds
|
- [ ] Custom connection kinds
|
||||||
- [x] External anchors
|
- [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
|
- [ ] Full-text search
|
||||||
- [ ] Begin centralizing state
|
- [ ] Begin centralizing state
|
||||||
- [ ] Reduce O(n) calls in the formats module
|
- [ ] Reduce O(n) calls in the formats module
|
||||||
|
|
@ -583,6 +583,12 @@ text = """
|
||||||
- [ ] Multi-file graphs
|
- [ ] Multi-file graphs
|
||||||
- [ ] Multi-graph
|
- [ ] Multi-graph
|
||||||
- [ ] Themes
|
- [ ] Themes
|
||||||
|
|
||||||
|
## Done
|
||||||
|
|
||||||
|
- [x] Redirects
|
||||||
|
- [x] Strip/render some syntax in Tree text preview
|
||||||
|
- [x] Drop-down navigation
|
||||||
- [x] Array syntax for lightweight connections
|
- [x] Array syntax for lightweight connections
|
||||||
- [x] Automatic IDs
|
- [x] Automatic IDs
|
||||||
- [x] Automatic titles
|
- [x] Automatic titles
|
||||||
|
|
|
||||||
|
|
@ -31,18 +31,30 @@ pre, code {
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #0d6161;
|
color: #0f6366;
|
||||||
text-decoration: underline dotted #138e8e;
|
text-decoration: underline dotted #138e8e;
|
||||||
text-decoration-thickness: 1.5px;
|
text-decoration-thickness: 1.5px;
|
||||||
|
text-underline-offset: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:visited {
|
a:visited {
|
||||||
text-decoration-color: #999;
|
text-decoration-color: #999;
|
||||||
|
text-decoration-style: dashed;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.detached {
|
a.detached {
|
||||||
color: #595959;
|
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 {
|
div.header-row {
|
||||||
|
|
@ -78,6 +90,7 @@ span.hidden-label {
|
||||||
h1.node-title {
|
h1.node-title {
|
||||||
display: inline;
|
display: inline;
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
|
font-weight: 300;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer div {
|
footer div {
|
||||||
|
|
@ -163,10 +176,15 @@ em#index-node-count {
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #1bc8c8;
|
color: #1dd7d7;
|
||||||
text-decoration-color: #159b9b;
|
text-decoration-color: #159b9b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.external {
|
||||||
|
color: #2fbae4;
|
||||||
|
text-decoration-color: #46c1e7;
|
||||||
|
}
|
||||||
|
|
||||||
a.detached {
|
a.detached {
|
||||||
color: #acacac;
|
color: #acacac;
|
||||||
text-decoration-color: #777;
|
text-decoration-color: #777;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue