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()}}
|
||||
|
||||
export RUSTFLAGS := "-Dwarnings"
|
||||
export RUST_BACKTRACE := "1"
|
||||
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 -- "
|
||||
cover_cmd := 'cargo llvm-cov --color always --ignore-filename-regex "main\.rs|dev\.rs"'
|
||||
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
|
||||
- [ ] Improve content syntax parser coverage
|
||||
- [ ] Redirects
|
||||
- [ ] Richer text formatting
|
||||
- [x] Headers
|
||||
- [x] Preformatted blocks
|
||||
- [x] Inline code
|
||||
- [x] Anchor rendering
|
||||
- [ ] 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
|
||||
- [x] External anchors
|
||||
- [ ] Bold, italics, underline, strikethrough
|
||||
|
|
|
|||
|
|
@ -180,19 +180,13 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn detached_node() {
|
||||
let node = Node {
|
||||
id: String::from("SomeNode"),
|
||||
text: String::new(),
|
||||
title: String::new(),
|
||||
links: vec![String::new()],
|
||||
hidden: false,
|
||||
connections: Some(vec![Edge {
|
||||
anchor: String::from("SomeAnchor"),
|
||||
from: String::new(),
|
||||
to: String::new(),
|
||||
detached: false,
|
||||
}]),
|
||||
};
|
||||
let mut node = Node::new(None);
|
||||
node.connections = Some(vec![Edge {
|
||||
anchor: String::from("SomeAnchor"),
|
||||
from: String::new(),
|
||||
to: String::new(),
|
||||
detached: false,
|
||||
}]);
|
||||
|
||||
let mut map: HashMap<String, Node> = HashMap::new();
|
||||
map.insert(String::from("SomeNode"), node);
|
||||
|
|
|
|||
|
|
@ -147,8 +147,8 @@ impl Graph {
|
|||
impl Node {
|
||||
pub fn new(message: Option<String>) -> Node {
|
||||
Node {
|
||||
id: "VoidNode".to_string(),
|
||||
title: "Pure Void".to_string(),
|
||||
id: "404".to_string(),
|
||||
title: "Not Found".to_string(),
|
||||
text: match message {
|
||||
Some(s) => s,
|
||||
None => "Node is empty, missing or wasn't found.".to_string(),
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<a href="/graph/json">
|
||||
{% endif %}
|
||||
raw endpoints
|
||||
{% if config.raw_toml or config.raw_json %}
|
||||
{%- if config.raw_toml or config.raw_json -%}
|
||||
</a>
|
||||
{% endif %}
|
||||
for possible parsing errors.</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue