Minor refactorings, justfile tweaks, roadmap update
This commit is contained in:
parent
bfd22bb6fa
commit
79c0ba9eed
5 changed files with 16 additions and 18 deletions
|
|
@ -220,10 +220,9 @@ default:
|
||||||
@just --list --unsorted --justfile {{justfile()}}
|
@just --list --unsorted --justfile {{justfile()}}
|
||||||
|
|
||||||
export RUSTFLAGS := "-Dwarnings"
|
export RUSTFLAGS := "-Dwarnings"
|
||||||
export RUST_BACKTRACE := "1"
|
|
||||||
export CARGO_TERM_COLOR := 'always'
|
export CARGO_TERM_COLOR := 'always'
|
||||||
|
|
||||||
debug_vars := 'DEBUG=${DEBUG:-} DEBUG_FILTER=${DEBUG_FILTER:-}'
|
debug_vars := 'DEBUG=${DEBUG:-} DEBUG_FILTER=${DEBUG_FILTER:-} RUST_BACKTRACE=${RUST_BACKTRACE:-}'
|
||||||
watch_cmd := "watchexec -qc -r -e rs,toml,html --color always -- "
|
watch_cmd := "watchexec -qc -r -e rs,toml,html --color always -- "
|
||||||
cover_cmd := 'cargo llvm-cov --color always --ignore-filename-regex "main\.rs|dev\.rs"'
|
cover_cmd := 'cargo llvm-cov --color always --ignore-filename-regex "main\.rs|dev\.rs"'
|
||||||
just_cmd := 'just --timestamp --explain --command-color green'
|
just_cmd := 'just --timestamp --explain --command-color green'
|
||||||
|
|
|
||||||
|
|
@ -12,12 +12,17 @@ You can learn more and see what en looks like by visiting the [homepage](https:/
|
||||||
|
|
||||||
- [x] Add tests
|
- [x] Add tests
|
||||||
- [ ] Improve content syntax parser coverage
|
- [ ] Improve content syntax parser coverage
|
||||||
|
- [ ] Redirects
|
||||||
- [ ] Richer text formatting
|
- [ ] Richer text formatting
|
||||||
- [x] Headers
|
- [x] Headers
|
||||||
- [x] Preformatted blocks
|
- [x] Preformatted blocks
|
||||||
- [x] Inline code
|
- [x] Inline code
|
||||||
- [x] Anchor rendering
|
- [x] Anchor rendering
|
||||||
- [ ] Automatic anchors
|
- [ ] Automatic anchors
|
||||||
|
- [ ] Plural anchors (|node|s -> node)
|
||||||
|
- [ ] Conjugation anchors (|will|ed -> will)
|
||||||
|
- [ ] Spaced node anchor (|red fox| -> redfox -> RedFox)
|
||||||
|
- [ ] TOML allows only letters, numbers, dashes and underscores in node IDs. This means trailing punctuation such as in `panther|Panthera,` could be automatically split
|
||||||
- [ ] `#` syntax for header ID anchors
|
- [ ] `#` syntax for header ID anchors
|
||||||
- [x] External anchors
|
- [x] External anchors
|
||||||
- [ ] Bold, italics, underline, strikethrough
|
- [ ] Bold, italics, underline, strikethrough
|
||||||
|
|
|
||||||
|
|
@ -180,19 +180,13 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn detached_node() {
|
fn detached_node() {
|
||||||
let node = Node {
|
let mut node = Node::new(None);
|
||||||
id: String::from("SomeNode"),
|
node.connections = Some(vec![Edge {
|
||||||
text: String::new(),
|
anchor: String::from("SomeAnchor"),
|
||||||
title: String::new(),
|
from: String::new(),
|
||||||
links: vec![String::new()],
|
to: String::new(),
|
||||||
hidden: false,
|
detached: false,
|
||||||
connections: Some(vec![Edge {
|
}]);
|
||||||
anchor: String::from("SomeAnchor"),
|
|
||||||
from: String::new(),
|
|
||||||
to: String::new(),
|
|
||||||
detached: false,
|
|
||||||
}]),
|
|
||||||
};
|
|
||||||
|
|
||||||
let mut map: HashMap<String, Node> = HashMap::new();
|
let mut map: HashMap<String, Node> = HashMap::new();
|
||||||
map.insert(String::from("SomeNode"), node);
|
map.insert(String::from("SomeNode"), node);
|
||||||
|
|
|
||||||
|
|
@ -147,8 +147,8 @@ impl Graph {
|
||||||
impl Node {
|
impl Node {
|
||||||
pub fn new(message: Option<String>) -> Node {
|
pub fn new(message: Option<String>) -> Node {
|
||||||
Node {
|
Node {
|
||||||
id: "VoidNode".to_string(),
|
id: "404".to_string(),
|
||||||
title: "Pure Void".to_string(),
|
title: "Not Found".to_string(),
|
||||||
text: match message {
|
text: match message {
|
||||||
Some(s) => s,
|
Some(s) => s,
|
||||||
None => "Node is empty, missing or wasn't found.".to_string(),
|
None => "Node is empty, missing or wasn't found.".to_string(),
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<a href="/graph/json">
|
<a href="/graph/json">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
raw endpoints
|
raw endpoints
|
||||||
{% if config.raw_toml or config.raw_json %}
|
{%- if config.raw_toml or config.raw_json -%}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
for possible parsing errors.</p>
|
for possible parsing errors.</p>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue