{"nodes":{"RedirectTest":{"id":"RedirectTest","text":"","summary":"","title":"RedirectTest","links":[],"redirect":"Node","listed":true,"connections":{},"stats":{"outgoing":0,"incoming":0}},"Introduction":{"id":"Introduction","text":"\n<p><small>\n<em>Eager to jump right in? Head straight to <a class=\"attached\" title=\" Installation\" href=\"/node/GetStarted\">GetStarted</a></em>.\n</small></p>\n\n<h2 id=\"What\"> What is en?</h2>\n\n<p>en is a writing tool. It was designed for complex, conceptually heavy projects, where the relationships between terms matter and possibly have their own attributes. This very website is running en. You can use it to write non-linear, connected textual works and have their references to which other mapped out as a <a class=\"attached\" title=\"A graph is a data structure composed of connected (and disconnected) nodes.\" href=\"/node/graph\">graph</a> of metadata-rich, interrelated information.</p>\n\n<p>It works by ingesting plain text files written in <a class=\"attached\" title=\"TOML is a configuration format that can be easily read and understood by humans and machines alike.\" href=\"/node/TOML\">TOML</a>, a file format that focuses on being human-readable but that can also be directly interpreted by computer programs. en also features its own <a class=\"attached\" title=\"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.\" href=\"/node/Syntax\">markup language</a> that was designed to be readable and as unobstructive as possible to the flow of writing.</p>\n\n<p>These files contain your node definitions and allow en to construct a human-readable website that makes your graphs' nodes browsable, searchable and listed in relation to each other or as a shallow <a class=\"absolute\" title=\"\" href=\"/tree\">tree of nodes</a>. It also serves this graph as <a class=\"absolute\" title=\"\" href=\"/data\">raw data</a> for integration with other tools that can further analyze and transform what you have written.</p>\n\n<h2 id=\"Motivation\"> Motivation</h2>\n\n<p>en was created out of the desire to write a book that did not follow a linear progression. But it can be used for note-taking, studying, documentation, encyclopedic content and any other format that benefits from a focus on the connections between pages. It aims to remove the constraints imposed by trying to mimic the linearity of typical nonfiction writing.</p>\n\n<p>It's described as a \"writing instrument\" because it's not so much about the presentation or even the web format. While that's the medium for this particular implementation, you can notice en serves its raw data in both TOML and JSON. It's first and foremost about mapping out and structuring written thoughts.</p>\n\n<p>Because your en graph is defined in simple plain-text files, you can add new pages easily from a few lines and start connecting them. Instead of having to create a dedicated file or resource for each new entry you find deserving of observation, with its own beginning and end, its own \"I'm empty, fill me to completion\" demeanor, you can stay in the flow of your sprawling thoughts. This is meant to fit the specific wiring of minds whose thoughts spread and fork quickly and often, whether to great depth or across wide expanses.</p>\n\n<h2 id=\"What's\"> What's ahead</h2>\n\n<p>en is in its infancy. Right now, most of the work is focused on making the markup language more robust. Some interesting planned features include:</p>\n\n\n<ul>\n<li>Multi-file graphs, including single-node <code>.en</code> files with TOML frontmatter</li>\n<li>Richer node connection metadata, with builtin connection kinds and special rendering styles</li>\n<li>More node metrics, sorting options and full-text search</li>\n<li>JSON schema for language server integration</li>\n<li>Separating the server from the source-to-source translator, allowing en's markup syntax to be used as a standalone compile-to-HTML language</li>\n<li>Adding CLI options to make it more practical to manipulate a graph, such as adding new nodes or querying your graph</li>\n<li>Hypergraphs, enabling cross-graph references and letting the user choose which graph to render</li>\n<li>Other rendering formats, such as static websites, single page HTML and PDF/EPUB with paper-friendly metadata</li>\n</ul>\n\n<p>If you like what you see and are curious about en's future, take a look at the <a class=\"attached\" title=\"\n Upcoming\" href=\"/node/roadmap\">roadmap</a> for a more comprehensive view of what else is to come.</p>\n\n<h2 id=\"Get\"> Get started</h2>\n\n<p>See the <a class=\"attached\" title=\" Installation\" href=\"/node/GetStarted\">Get Started</a> page to learn how to install and use en.</p>","summary":"\n<small>\nEager to jump right in? Head straight to GetStarted.","title":"Introduction","links":[],"redirect":"","listed":true,"connections":{"TOML":{"to":"TOML","from":"Introduction","detached":false},"GetStarted":{"to":"GetStarted","from":"Introduction","detached":false},"Graph":{"to":"Graph","from":"Introduction","detached":false},"Roadmap":{"to":"Roadmap","from":"Introduction","detached":false},"Syntax":{"to":"Syntax","from":"Introduction","detached":false}},"stats":{"outgoing":0,"incoming":0}},"TOML":{"id":"TOML","text":"<p>TOML is a configuration format that can be easily read and understood by humans and machines alike.</p>\n\n<p>It was chosen as en's main input format for its obvious semantics, because it's more readable, has friendlier strings compared to alternatives such as JSON and less convoluted indentation compared to YAML.</p>\n\n<p>One of the most valued attributes in en's design is readability. TOML provides powerful multi-line strings that can trim whitespace and literal multiline string that avoid the need for escaping. This couples well with en's own <a class=\"attached\" title=\"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.\" href=\"/node/Syntax\">markup syntax</a>.</p>\n\n<p>To learn more about TOML, you can visit its website at <a class=\"external\" title=\"\" href=\"https://toml.io\">https://toml.io</a>.</p>\n\n<p>To see the TOML representation for the graph you are reading right now, visit the <a class=\"absolute\" title=\"\" href=\"/data\">data endpoints</a>.</p>","summary":"TOML is a configuration format that can be easily read and understood by humans and machines alike.","title":"TOML","links":[],"redirect":"","listed":true,"connections":{"Syntax":{"to":"Syntax","from":"TOML","detached":false}},"stats":{"outgoing":0,"incoming":0}},"CLI":{"id":"CLI","text":"<p>You can set the hostname, port and graph file path using CLI options:</p>\n\n<pre>\nen --hostname 10.0.1.2 -p 443 --graph ./graphs/my-graph.toml\n</pre>\n\n<h2 id=\"Options\"> Options</h2>\n\n<h3 id=\"Graph\"> Graph</h3>\n\n<p>The relative or absolute path to the graph definition <a class=\"attached\" title=\"TOML is a configuration format that can be easily read and understood by humans and machines alike.\" href=\"/node/TOML\">TOML</a> file.</p>\n\n<p><strong>Variants:</strong> <code>--graph</code>, <code>-g</code></p>\n\n<p><strong>Default:</strong> <code>./static/graph.toml</code></p>\n\n<p><strong>Examples:</strong></p>\n\n<pre>\nen -g graph.toml\nen --g ./static/my-graph.toml\n</pre>\n\n<h3 id=\"Hostname\"> Hostname</h3>\n\n<p>The IP address where the en server will be accessible.</p>\n\n<p><strong>Variants:</strong> <code>--hostname</code>, <code>-h</code></p>\n\n<p><strong>Default:</strong> <code>0.0.0.0</code></p>\n\n<p><strong>Examples:</strong></p>\n\n<pre>\nen -h localhost\nen --hostname 10.120.0.5\n</pre>\n\n<h3 id=\"Port\"> Port</h3>\n\n<p>The port where the en server will be accessible.</p>\n\n<p><strong>Variants:</strong> <code>--port</code>, <code>-p</code></p>\n\n<p><strong>Default:</strong> A random available port assigned by the operating system</p>\n\n<p><strong>Examples:</strong></p>\n\n<pre>\nen -p 3003\nen --port 3000\n</pre>\n\n<h2 id=\"Using\"> Using multiple options</h2>\n\n<p>You can combine these options as you wish:</p>\n\n<pre>\nen -h localhost -p 3000\nen -p 3003 --host localhost --graph ./graph.toml\nen --g ./graph.toml -p 1312\n</pre>\n\n<p>If an option is specified more than once, the last use will override any previous ones.</p>","summary":"You can set the hostname, port and graph file path using CLI options:","title":"CLI Options","links":[],"redirect":"","listed":true,"connections":{"TOML":{"to":"TOML","from":"CLI","detached":false}},"stats":{"outgoing":0,"incoming":0}},"Acknowledgments":{"id":"Acknowledgments","text":"<p>en is only possible thanks to a number of projects and people:</p>\n\n<h2 id=\"Programming\"> Programming</h2>\n\n\n<ul>\n<li><a class=\"external\" title=\"\" href=\"https://rust-lang.org/\">The Rust Programing Language</a></li>\n<li><a class=\"external\" title=\"\" href=\"https://tokio.rs/\">Tokio</a></li>\n<li><a class=\"external\" title=\"\" href=\"https://github.com/tokio-rs/axum\">Axum</a></li>\n<li><a class=\"external\" title=\"\" href=\"https://keats.github.io/tera/\">Tera</a></li>\n<li><a class=\"external\" title=\"\" href=\"https://serde.rs/\">Serde</a> and the <a class=\"external\" title=\"\" href=\"https://github.com/toml-rs/toml\">toml crate</a></li>\n<li><a class=\"external\" title=\"\" href=\"https://toml.io/en/\">TOML</a></li>\n</ul>\n\n<h2 id=\"Services\"> Services & Utilities</h2>\n\n\n<ul>\n<li><a class=\"external\" title=\"\" href=\"https://git-scm.com/\">Git</a></li>\n<li><a class=\"external\" title=\"\" href=\"https://codeberg.org/\">Codeberg</a></li>\n<li><a class=\"external\" title=\"\" href=\"https://forgejo.org/\">Forgejo</a></li>\n<li><a class=\"external\" title=\"\" href=\"https://just.systems/\">Just</a></li>\n<li><a class=\"external\" title=\"\" href=\"https://github.com/watchexec/watchexec\">watchexec</a></li>\n<li><a class=\"external\" title=\"\" href=\"https://github.com/taiki-e/cargo-llvm-cov\">cargo-llvm-cov</a></li>\n</ul>\n\n<h2 id=\"Typography\"> Typography</h2>\n\n\n<ul>\n<li><a class=\"external\" title=\"\" href=\"https://pampatype.com/reforma\">Reforma</a>, by <a class=\"external\" title=\"\" href=\"https://pampatype.com\">PampaType</a> under the Creative Commons ND 4.0 license</li>\n<li><a class=\"external\" title=\"\" href=\"https://github.com/CatharsisFonts/Cormorant\">Cormorant</a>, by <a class=\"external\" title=\"\" href=\"https://github.com/CatharsisFonts\">Christian Thalmann</a> under the SIL Open Font License</li>\n<li><a class=\"external\" title=\"\" href=\"https://www.glukfonts.pl/font.php?font=Rawengulk\">Rawengulk</a>, by <a class=\"external\" title=\"\" href=\"https://www.glukfonts.pl\">gluk Fonts</a> under the SIL Open Font License</li>\n<li><a class=\"external\" title=\"\" href=\"https://madmalik.github.io/mononoki/\">Mononoki</a>, by <a class=\"external\" title=\"\" href=\"https://github.com/madmalik\">Matthias Tellen</a> under the SIL Open Font License</li>\n<li><a class=\"external\" title=\"\" href=\"https://github.com/m4rc1e/mavenproFont\">Maven</a>, by <a class=\"external\" title=\"\" href=\"https://github.com/m4rc1e/mavenproFont/blob/main/AUTHORS.txt\">Joe Prince and Project Authors</a> under the SIL Open Font License</li>\n</ul>\n\n<h2 id=\"Software\"> Software</h2>\n\n\n<ul>\n<li><a class=\"external\" title=\"\" href=\"https://nixos.org/\">NixOS</a>, <a class=\"external\" title=\"\" href=\"https://debian.org\">Debian</a>, <a class=\"external\" title=\"\" href=\"https://alpinelinux.org\">Alpine</a> and their <a class=\"external\" title=\"\" href=\"https://www.kernel.org/\">kernel</a></li>\n<li><a class=\"external\" title=\"\" href=\"https://librewolf.net/\">LibreWolf</a> and its upstream <a class=\"external\" title=\"\" href=\"https://www.firefox.com/\">Mozilla Firefox</a></li>\n<li><a class=\"external\" title=\"\" href=\"https://inkscape.org/\">InkScape</a></li>\n</ul>\n\n","summary":"en is only possible thanks to a number of projects and people:","title":"Acknowledgments","links":[],"redirect":"","listed":true,"connections":{},"stats":{"outgoing":0,"incoming":0}},"Syntax":{"id":"Syntax","text":"<p>Some fields of your en graph, namely the <a class=\"attached\" title=\"A node is defined in your graph file starting with a table header of the form:\" href=\"/node/Node\">Node</a> text field, have support for special syntax that allows you to apply formatting and create connections between your graph's nodes.</p>\n\n<p>If you are familiar with <a class=\"external\" title=\"\" href=\"https://en.wikipedia.org/wiki/Markdown\">Markdown</a>, you'll find some features familiar, with some notable differences too.</p>\n\n<h2 id=\"Anchors\"> Anchors</h2>\n\n<p>Anchors are the most important and powerful syntactic element you will work with because they can create connections between nodes when you use them. They have the following basic syntax:</p>\n\n<pre>\nanchor|destination\n</pre>\n\n<p>For example:</p>\n\n<pre>\nparticles|ParticlePhysics\n</pre>\n\n<p>This example will render as the word \"particles\" pointing to a node with ID <code>ParticlePhysics</code> because the destination is not an external URL.</p>\n\n<p>When both sides are the same, you can simply write:</p>\n\n<pre>\n|ParticlePhysics|\n</pre>\n\n<p>An external anchor looks like this:</p>\n\n<pre>\ndocs|https://en.jutty.dev/node/Documentation\n</pre>\n\n<p>External anchors are identified by the presence of either a <code>:</code> or a <code>/</code> character in the destination. This works for special handlers, such as <code>mailto:user@domain.com</code>, and destinations relative to the website root like <code>/about</code>.</p>\n\n<p>If the left side contains spaces, you need a leading <code>|</code> character:</p>\n\n<pre>\n|en docs|https://en.jutty.dev/node/Documentation\n</pre>\n\n<p>To make a plain address an anchor, wrap it in two <code>|</code> characters:</p>\n\n<pre>\n|https://en.jutty.dev|\n</pre>\n\n<h3 id=\"Node\"> Node anchors</h3>\n\n<p>Because anchors between nodes are central to en, there is special syntax to make them as fluid as possible to create without cluttering the text too much.</p>\n\n<p>en can resolve IDs case insensitively (with priority to case-sensitive matches),  will ignore trailing punctuation and a single <code>s</code> character for plurals, and will also collapse spaces when trying to resolve an ID, so you can also write:</p>\n\n<pre>\ncheck out the en |documentation|, or look at the |example|s.\n</pre>\n\n<p>If there is a node with id Documentation and another with id Example, they'd be linked to by the linked anchors.</p>\n\n<p>While flexible, this can sometimes be ambiguous. See <a class=\"attached\" title=\"en's anchor syntax can be very flexible, but some situations lead to ambiguity.\" href=\"/node/AnchorSyntax\">AnchorSyntax</a> for more details and caveats regarding anchors.</p>\n\n<h2 id=\"Formatting\"> Formatting</h2>\n\n<p>Supported formatting syntax includes:</p>\n\n\n<ul>\n<li><code>*</code> for bold</li>\n<li><code>_</code> for italics</li>\n<li><code>__</code> for underline</li>\n<li><code>~~</code> for strikethrough</li>\n</ul>\n\n<p>To apply these, you can wrap a word in the formatting operators, so for instance <code>*this*</code> will be rendered as <strong>this</strong> and <code>~~this~~</code> as <s>this</s>.</p>\n\n<h2 id=\"Checkboxes\"> Checkboxes</h2>\n\n<p>You can use <code>[ ]</code> and <code>[x]</code>  to render checkboxes:</p>\n\n<pre>\n- [ ] not done\n- [x] done\n</pre>\n\n\n<ul>\n<li><input type=\"checkbox\"/> not done</li>\n<li><input type=\"checkbox\" checked /> done</li>\n</ul>\n\n<h2 id=\"Blocks\"> Blocks</h2>\n\n<p>A block is any group of lines separated by empty lines:</p>\n\n<pre>\nblock A\nstill block A\nblock A's last line\n\nblock B starts here\nblock B ends here\n\nthis is block C\n</pre>\n\n<p>By default, a block not starting with any special syntax is a paragraph, such as this very line you are reading.</p>\n\n<p>Some blocks will join the lines together, meaning even if you write:</p>\n\n<pre>\na\nb\nc\n</pre>\n\n<p>You still get \"a b c\" as a result. This is the case for paragraphs, but not for lists, verse blocks, tables and preformatted text. Blockquotes support both modes.</p>\n\n<p>This is useful when editing your text, allowing you to break some thoughts and special syntax without losing control over where your paragraph ends, particularly when handling huge paragraphs.</p>\n\n<p>If you want to force lines to break, you can use a <code><</code> character at the end of a line:</p>\n\n<pre>\na &lt;\nb &lt;\nc &lt;\n</pre>\n\n<p>Which renders as:</p>\n\n<p>a <br>\nb <br>\nc <br></p>\n\n<p>While useful to break a few lines on demand, if you have a large block of lines you want to break this can become cumbersome. That's where verse blocks are useful.</p>\n\n<h3 id=\"Verse\"> Verse</h3>\n\n<p>Verse blocks are delimited by a <code>&</code> character at their first and last line and are useful to avoid precisely this line-joining behavior of paragraphs. They will break all lines without need for a trailing <code><</code> character:</p>\n\n<pre>\n&\n    these lines\n    break just fine\n    once they are over\n&\n</pre>\n\n<p class=\"verse\">    these lines<br>    break just fine<br>    once they are over\n</p>\n\n<h3 id=\"Quotes\"> Quotes</h3>\n\n<p>A block of lines starting with a <code>></code> character will render as a quote:</p>\n\n<pre>\n&gt; Who'll change old lamps for new ones?\n</pre>\n\n\n<blockquote>\nWho'll change old lamps for new ones?\n</blockquote>\n\n<p>Quote blocks have two forms. If you prepend all blocks with a <code>></code>, line breaks will be preserved, not collapsing the whole quote into a single line:</p>\n\n<pre>\n&gt; When I was alive\n&gt; I was dust which was,\n&gt; But now I am dust in dust\n&gt; I am dust which never was.\n</pre>\n\n\n<blockquote>\nWhen I was alive <br>\n I was dust which was, <br>\n But now I am dust in dust <br>\n I am dust which never was.\n</blockquote>\n\n<p>If you would like the quote to be collapsed into a single line instead, you can leave just the first <code>></code> and continue until the next empty line:</p>\n\n<pre>\n&gt; And should I feel kindness towards my enemies?\nNo: from that moment I declared everlasting war against the species,\nand more than all, against him who had formed me\nand sent me forth to this insupportable misery.\n</pre>\n\n\n<blockquote>\nAnd should I feel kindness towards my enemies?\nNo: from that moment I declared everlasting war against the species,\nand more than all, against him who had formed me\nand sent me forth to this insupportable misery.\n</blockquote>\n\n<p>You can still use <code><</code> characters to force line breaks in this case.</p>\n\n<h4 id=\"Citation\"> Citation</h4>\n\n<p>To add a citation to your quote block, start a line with two <code>-</code> characters:</p>\n\n<pre>\n&gt; i sat down next to her\n&gt; with a large frosty _bandito_\n&gt; she gazed at the ghost of me\n&gt; asked _“amigo, como esta”_\n-- Assotto Saint, Lady & Me\n</pre>\n\n\n<blockquote>\ni sat down next to her <br>\n with a large frosty <em>bandito</em> <br>\n she gazed at the ghost of me <br>\n asked <em>“amigo, como esta”</em><br/><cite class=\"quote-citation\">Assotto Saint, Lady & Me</cite>\n</blockquote>\n\n<p>If you have a more complex citation, you can use multiple lines starting with <code>--</code>. All such lines will be joined together in the citation. If you need to break lines, use the <code><</code> character at the end of a line:</p>\n\n<pre>\n&gt; Dois grandes mitos dominam a história oficial do Brasil:\n  o mito da índole pacífica do brasileiro e o da \"democracia racial\".\n-- Benedita da Silva,\n-- |Speech on the Federal Senate|https://www25.senado.leg.br/web/atividade/pronunciamentos/-/p/pronunciamento/165765|,\n-- March 3rd, 1995 &lt;\n-- International Day for the Elimination of Racial Discrimination\n</pre>\n\n\n<blockquote cite=\"https://www25.senado.leg.br/web/atividade/pronunciamentos/-/p/pronunciamento/165765\">\nDois grandes mitos dominam a história oficial do Brasil:\n  o mito da índole pacífica do brasileiro e o da \"democracia racial\".\n\n<br/><cite class=\"quote-citation\">Benedita da Silva,\n <a class=\"external\" title=\"\" href=\"https://www25.senado.leg.br/web/atividade/pronunciamentos/-/p/pronunciamento/165765\">Speech on the Federal Senate</a>,\n March 3rd, 1995 <br>\n International Day for the Elimination of Racial Discrimination</cite>\n</blockquote>\n\n<p>The first URL found in your citation will be used as the blockquote element's <code>cite</code> value.</p>\n\n<h3 id=\"Lists\"> Lists</h3>\n\n<p>A block of lines starting with a <code>-</code> character will be rendered as an unordered list:</p>\n\n<pre>\n- cyan\n- amber\n- crimson\n</pre>\n\n\n<ul>\n<li>cyan</li>\n<li>amber</li>\n<li>crimson</li>\n</ul>\n\n<p>Lines starting with a <code>+</code> character will create numbered lists instead:</p>\n\n<pre>\n+ ichi\n+ ni\n+ san\n</pre>\n\n\n<ol>\n<li>ichi</li>\n<li>ni</li>\n<li>san</li>\n</ol>\n\n<p>In both kinds of lists, you can use an uniform amount of indentation to nest the items:</p>\n\n<pre>\n- purple\n    - red\n    - blue\n- orange\n    - red\n    - yellow\n        - red\n        - green\n</pre>\n\n\n<ul>\n<li>purple<ul>\n<li>red</li>\n<li>blue</li></ul></li>\n<li>orange<ul>\n<li>red</li>\n<li>yellow<ul>\n<li>red</li>\n<li>green</li></ul></li></ul></li>\n</ul>\n\n<h3 id=\"Tables\"> Tables</h3>\n\n<p>Tables are blocks delimited by a sole <code>%</code> on its own line:</p>\n\n<pre>\n%\n    Country    !  Capital\n    Colombia   |  Bogotá\n    Belgium    |  Brussels\n    Palestine  |  Jerusalem\n    Zambia     |  Lusaka\n%\n</pre>\n\n\n<table>\n    <tr>\n        <th>Country</th>\n        <th>Capital</th>\n    </tr>\n    <tr>\n        <td>Colombia</td>\n        <td>Bogotá</td>\n    </tr>\n    <tr>\n        <td>Belgium</td>\n        <td>Brussels</td>\n    </tr>\n    <tr>\n        <td>Palestine</td>\n        <td>Jerusalem</td>\n    </tr>\n    <tr>\n        <td>Zambia</td>\n        <td>Lusaka</td>\n    </tr>\n</table>\n\n\n<p>Table cells are delimited by either a <code>!</code> for headers or <code>|</code> for common cells. These delimiters must be surrounded by at least one space to each side and are optional at the first and last position of each line.</p>\n\n<p>This means you can use any of the following formats:</p>\n\n<pre>\n%\n      middle |  only\n       tail  |  only   |\n    |  lead  |  only\n    | fully  | wrapped |\n%\n</pre>\n\n\n<table>\n    <tr>\n        <td>middle</td>\n        <td>only</td>\n    </tr>\n    <tr>\n        <td>tail</td>\n        <td>only</td>\n    </tr>\n    <tr>\n        <td>lead</td>\n        <td>only</td>\n    </tr>\n    <tr>\n        <td>fully</td>\n        <td>wrapped</td>\n    </tr>\n</table>\n\n\n<p>Because at least one space is required around each delimiter, you must indent the table inside the surrounding <code>%</code> markers by at least one space.</p>\n\n<h2 id=\"Rendering\"> Rendering unformatted text</h2>\n\n<p>The backtick character <code>`</code> can be used to render unformatted blocks and inline text:</p>\n\n<pre>\nThe asterisk `*` is special in en markup syntax.\n</pre>\n\n\n<blockquote>\nThe asterisk <code>*</code> is special in en markup syntax.\n</blockquote>\n\n<p>Using the syntax above, the asterisk won't be interpreted as the start of bold formatting and instead will be shown like this: <code>*</code>.</p>\n\n<p>This is useful for code but also for rendering characters with special meaning you wish to mention literally.</p>\n\n<p>Backticks on their own line will start and close a block of unformatted text such as the ones being used throughout this documentation to show code:</p>\n\n<pre>\n`\neverything in here will be rendered without formatting\n`\n</pre>\n\n<p>Finally, you can precede any character with a <code>\\</code> to fully <em>escape</em> that character from being interpreted. Because <a class=\"attached\" title=\"TOML is a configuration format that can be easily read and understood by humans and machines alike.\" href=\"/node/TOML\">TOML</a> also treats backslashes specially, you'll likely need to use double slashes, as in <code>\\\\</code>, unless you wrap your TOML strings in single quotes. See <a class=\"attached\" title=\"The backslash (\\) works by immediately adding the following character as a literal and skipping any further interpretation of it.\" href=\"/node/Escaping\">Escaping</a> for more details and examples.</p>\n\n<h2 id=\"Raw\"> Raw HTML</h2>\n\n<p>If you need some more advanced feature that is not supported directly by en's markup syntax, you can always just write plain HTML and it will be passed along. For example, you could render a form:</p>\n\n<pre>\n&lt;form style=\"text-align: center;\"&gt;\n    &lt;label for=\"name\"&gt; *__Name__* &lt;/label&gt;\n    &lt;input type=\"text\" id=\"name\"/&gt;\n    &lt;input type=\"submit\"/&gt;\n&lt;/form&gt;\n</pre>\n\n<p><form style=\"text-align: center;\">\n    <label for=\"name\"> <strong><u>Name</u></strong> </label>\n    <input type=\"text\" id=\"name\"/>\n    <input type=\"submit\"/>\n</form></p>\n\n<p>Notice that, as shown in this example, you can mix en syntax and HTML. You might want to add a space between your HTML tags and en special syntax so the boundary is clearer, but otherwise they don't tend to overlap since the symbols most used in HTML are not special in en with the exception of <code><</code>, which is interpreted specially only at the end of lines.</p>\n\n<p>If you want to avoid either one of these syntaxes from being interpreted specially, you should escape the relevant characters as explained in the previous section.</p>\n\n<h2 id=\"Known\"> Known issues</h2>\n\n\n<ul>\n<li>Nesting multiple different formatting symbols is currently supported only in a few cases. Better nesting is on the <a class=\"attached\" title=\"\n Upcoming\" href=\"/node/roadmap\">roadmap</a>, but currently may not work as expected.</li>\n</ul>\n\n","summary":"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.","title":"Syntax","links":[],"redirect":"","listed":true,"connections":{"Escaping":{"to":"Escaping","from":"Syntax","detached":false},"Roadmap":{"to":"Roadmap","from":"Syntax","detached":false},"Node":{"to":"Node","from":"Syntax","detached":false},"TOML":{"to":"TOML","from":"Syntax","detached":false},"AnchorSyntax":{"to":"AnchorSyntax","from":"Syntax","detached":false}},"stats":{"outgoing":0,"incoming":0}},"GetStarted":{"id":"GetStarted","text":"<h2 id=\"Installation\"> Installation</h2>\n\n<h3 id=\"Pre-built\"> Pre-built binaries</h3>\n\n<p>The easiest way to get started is by downloading a pre-built binary.</p>\n\n<p>x64 Linux binaries are available from the <a class=\"external\" title=\"\" href=\"https://git.jutty.dev/jutty/-/packages/generic/en\">git.jutty.dev package registry</a>:</p>\n\n\n<table>\n    <tr>\n        <th>Platform</th>\n        <th>Download</th>\n    </tr>\n    <tr>\n        <td>x64 Linux GNU</td>\n        <td><a class=\"external\" title=\"\" href=\"https://git.jutty.dev/api/packages/jutty/generic/en/0.4.0-alpha/en-x64-linux-gnu\">en-x64-linux-gnu</a></td>\n    </tr>\n    <tr>\n        <td>x64 Linux musl</td>\n        <td><a class=\"external\" title=\"\" href=\"https://git.jutty.dev/api/packages/jutty/generic/en/0.4.0-alpha/en-x64-linux-musl\">en-x64-linux-musl</a></td>\n    </tr>\n    <tr>\n        <td>x64 Windows MSVC</td>\n        <td><a class=\"external\" title=\"\" href=\"https://git.jutty.dev/api/packages/jutty/generic/en/0.4.0-alpha/en-x64-windows-msvc\">en-x64-windows-msvc</a></td>\n    </tr>\n</table>\n\n\n<p>If in doubt, it is likely your system uses the GNU libc. Regardless, the musl binary is statically compiled and should run on mostly any x64 Linux system.</p>\n\n<p>Windows builds are <a class=\"external\" title=\"\" href=\"https://en.wikipedia.org/wiki/Best-effort_delivery\">best-effort</a>, cross-compiled, mostly tested only through Wine and not tested on CI.</p>\n\n<p>Other platforms may be supported in the future depending on CI resources.</p>\n\n<h3 id=\"Build\"> Build from source</h3>\n\n<p>If you are on another platform or simply prefer starting from source, you can also build en yourself.</p>\n\n<p>You will need:</p>\n\n\n<ul>\n<li>For en itself, a <a class=\"external\" title=\"\" href=\"https://rustup.rs/\">Rust compiler</a></li>\n<li>For dependencies, a C compiler (e.g. <code>gcc</code>)</li>\n</ul>\n\n<p>Given the above is satisfied, you can build directly through Cargo:</p>\n\n<pre>\ncargo install --git https://codeberg.org/jutty/en --tag v0.4.0-alpha\n</pre>\n\n<p>And you should now have the <code>en</code> command available on your shell.</p>\n\n<p>The <code>cargo install</code> example shown above will build en from the last tagged release, which should be more stable. You can remove the <code>--tag v0.4.0-alpha</code> part if you'd like to build the most recent development sources.</p>\n\n<p>For more details on building from source, see <a class=\"attached\" title=\"An overview on building from source is available in the Get Started page.\" href=\"/node/SourceBuild\">SourceBuild</a>.</p>\n\n<h2 id=\"Usage\"> Usage</h2>\n\n<p>Once you have installed en, run it and point it to your graph:</p>\n\n<pre>\nen --graph my-graph.toml\n</pre>\n\n<p>See <a class=\"attached\" title=\"You can set the hostname, port and graph file path using CLI options:\" href=\"/node/CLI\">CLI</a> for defaults and details on the available options.</p>\n\n<h2 id=\"Graph\"> Graph Syntax</h2>\n\n<p>The graph is a <a class=\"attached\" title=\"TOML is a configuration format that can be easily read and understood by humans and machines alike.\" href=\"/node/TOML\">TOML</a> file. You can create nodes by adding text such as:</p>\n\n<pre>\n[nodes.Computer]\ntext = \"A computer is a machine capable of executing arbitrary instructions.\"\n</pre>\n\n<p>If you need longer text, it's more convenient to use triple quotes:</p>\n\n<pre>\n[nodes.Computer]\ntext = \"\"\"\nA computer is a machine capable of executing arbitrary instructions.\n\nThe main electronic component of a computer is its |motherboard|.\n\"\"\"\n</pre>\n\n<p>In <a class=\"attached\" title=\"\n Upcoming\" href=\"/node/Roadmap\">the future</a>, en should support both individual node files with TOML frontmatter and also multiple TOML files containing several nodes each. In the current implementation, all nodes live in a single <code>graph.toml</code> file.</p>\n\n<p>Some special syntax is allowed inside the node text. See <a class=\"attached\" title=\"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.\" href=\"/node/Syntax\">Syntax</a> for supported features.</p>\n\n<p>A node can have several other attributes. See <a class=\"attached\" title=\"A node is defined in your graph file starting with a table header of the form:\" href=\"/node/Node\">Node</a> for details on all of them.</p>\n\n<h3 id=\"Connections\"> Connections</h3>\n\n<p>Nodes can have connections between each other. Each node page lists its outgoing and incoming connections.</p>\n\n<p>The simplest kind of connection is achieved by creating an anchor to another node in the node text itself:</p>\n\n<pre>\n[nodes.Quark]\ntext = \"Quarks are subatomic particles that form |hadron|s.\"\n</pre>\n\n<p>Here, a connection is created from the node with ID <code>Quark</code> to the node with ID <code>Hadron</code>. See <a class=\"attached\" title=\"en's anchor syntax can be very flexible, but some situations lead to ambiguity.\" href=\"/node/AnchorSyntax\">AnchorSyntax</a> for the various ways you can link to other nodes from within the node text itself.</p>\n\n<p>There are several different ways to connect nodes, including ones where you can add metadata to the connection itself. See <a class=\"attached\" title=\"A connection is a link from one node to another.\" href=\"/node/Connections\">Connections</a> for more details.</p>\n\n<h2 id=\"Where\"> Where to go from here</h2>\n\n\n<ul>\n<li>Dive deeper into the <a class=\"attached\" title=\"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.\" href=\"/node/syntax\">syntax</a> used to write your graph</li>\n<li>Glimpse into en's future in the <a class=\"attached\" title=\"\n Upcoming\" href=\"/node/roadmap\">roadmap</a></li>\n<li>Visit the <a class=\"absolute\" title=\"\" href=\"/data\">data endpoints</a> for a raw view of the graph</li>\n<li>See an index of all pages in the <a class=\"absolute\" title=\"\" href=\"/tree\">tree</a></li>\n<li>Look under the hood in the <a class=\"external\" title=\"\" href=\"https://codeberg.org/jutty/en\">source code</a> repo</li>\n</ul>\n\n","summary":" Installation","title":"Get Started","links":[],"redirect":"","listed":true,"connections":{"CLI":{"to":"CLI","from":"GetStarted","detached":false},"Connections":{"to":"Connections","from":"GetStarted","detached":false},"TOML":{"to":"TOML","from":"GetStarted","detached":false},"SourceBuild":{"to":"SourceBuild","from":"GetStarted","detached":false},"Roadmap":{"to":"Roadmap","from":"GetStarted","detached":false},"Node":{"to":"Node","from":"GetStarted","detached":false},"Syntax":{"to":"Syntax","from":"GetStarted","detached":false},"AnchorSyntax":{"to":"AnchorSyntax","from":"GetStarted","detached":false}},"stats":{"outgoing":0,"incoming":0}},"Escaping":{"id":"Escaping","text":"<p>The backslash (<code>\\</code>) works by immediately adding the following character as a literal and skipping any further interpretation of it.</p>\n\n<p>For example, if you want to write inline unformatted text containing a backtick, you will need to escape it, so that to render <code>println!(\"`\")</code> as unformatted inline text, you'd write <code>`println!(\"\\`\")`</code>, otherwise the second backtick would close the code tag midway through it.</p>\n\n<p>If you want to render a literal backslash, you can escape the backslash itself by using two backslashes: <code>\\\\</code>.</p>\n\n<h2 id=\"Interactions\"> Interactions with TOML escaping</h2>\n\n<p>Notice that <a class=\"attached\" title=\"TOML is a configuration format that can be easily read and understood by humans and machines alike.\" href=\"/node/TOML\">TOML</a> itself also handles escape codes, so to pass a backslash you will need to escape it as a double backslash inside strings delimited by double quotes or triple double quotes. You can use a single backslash inside a string delimited by single quotes:</p>\n\n<pre>\n[node.Double]\ntext = \"You need double slashes here: \\\\*\"\n\n[node.TripleDouble]\ntext = \"\"\"\nAnd here: \\\\*\n\"\"\"\n\n[node.Single]\ntext = 'Here you need just one: \\*\"\n\n[node.TripleSingle]\ntext = '''\nHere too: \\*\n'''\n</pre>\n\n<p>This has nothing to do with en's markup syntax <em>per se</em>, it's just a consequence of how backslashes are also special in TOML syntax. For more details, see the <a class=\"external\" title=\"\" href=\"https://toml.io/en/v1.1.0#string\">TOML documentation on Strings</a>.</p>\n\n<h2 id=\"Interactions-1\"> Interactions with HTML</h2>\n\n<p>en will happily accept HTML code and pass it along to the browser, so you can use any feature from it as a sort of superset.</p>\n\n<p>If you want to prevent a particular part of your text from being interpreted as HTML, you can escape it <a class=\"external\" title=\"\" href=\"https://developer.mozilla.org/en-US/docs/Glossary/Character_reference\">as you normally would</a>.</p>\n\n<p>The fact you are using HTML does not exclude en syntax from being interpreted, although this may change in the future. Presently, you need to escape en markup syntax if you want it printed literally even inside HTML tags. This matters because en <a class=\"attached\" title=\"en's anchor syntax can be very flexible, but some situations lead to ambiguity.\" href=\"/node/AnchorSyntax\">uses its syntax to create connections</a> between your graph's nodes and makes several decisions based on these relations.</p>","summary":"The backslash (\\) works by immediately adding the following character as a literal and skipping any further interpretation of it.","title":"Escaping","links":[],"redirect":"","listed":true,"connections":{"TOML":{"to":"TOML","from":"Escaping","detached":false},"AnchorSyntax":{"to":"AnchorSyntax","from":"Escaping","detached":false}},"stats":{"outgoing":0,"incoming":0}},"Roadmap":{"id":"Roadmap","text":"\n<h2 id=\"Upcoming\"> Upcoming</h2>\n\n<h3 id=\"v0\"> v0.5.0-alpha</h3>\n\n<ul>\n<li><input type=\"checkbox\"/> Docs for custom assets and templates</li>\n<li><input type=\"checkbox\"/> Custom kind for connections</li>\n<li><input type=\"checkbox\"/> Hide tree leaves from the top level</li>\n<li><input type=\"checkbox\" checked /> Fix anchors containing <code>/</code> and <code>#</code> considered node IDs</li>\n<li><input type=\"checkbox\" checked /> Fix <code>PreFormat</code> blocks rendering HTML tags</li>\n</ul>\n\n<h3 id=\"v0-1\"> v0.6.0-alpha</h3>\n\n<ul>\n<li><input type=\"checkbox\"/> Custom header include</li>\n</ul>\n\n<h3 id=\"v0-2\"> v0.7.0-alpha</h3>\n\n<ul>\n<li><input type=\"checkbox\"/> Frontmatter format</li>\n<li><input type=\"checkbox\"/> Multi-file graphs</li>\n</ul>\n\n<h3 id=\"v0-3\"> v0.8.0-alpha</h3>\n\n<ul>\n<li><input type=\"checkbox\"/> Full-text search</li>\n</ul>\n\n<p><div style=\"margin: 6em 0 2em;\"></p>\n\n<p><em>See <a class=\"attached\" title=\"\n Upcoming\" href=\"/node/Roadmap#Changelog\">Changelog</a> for previously released versions.</em></p>\n\n<p><hr>\n</div></p>\n\n<h2 id=\"Backlog\"> Backlog</h2>\n<p>These changes are planned, but have not been assigned to an upcoming release yet.</p>\n\n<h3 id=\"Syntax\"> Syntax</h3>\n\n<ul>\n<li><input type=\"checkbox\"/> Improve nested formatting</li>\n<li><input type=\"checkbox\"/> Invert where redirects are set</li>\n<li><input type=\"checkbox\"/> Special sections<ul>\n<li>Top-bound<ul>\n<li><input type=\"checkbox\"/> Top-bound is not included in the summary (tooltip)</li>\n<li>Sections<ul>\n<li><input type=\"checkbox\"/> Definition (implies metadata <code>has_definition</code>)</li>\n<li><input type=\"checkbox\"/> See also (implies a kind of connection, e.g. <code>related</code>)</li>\n<li><input type=\"checkbox\"/> Not to be confused with (implies a kind of connection)</li></ul></li></ul></li>\n<li><input type=\"checkbox\"/> Contrast with (implies a kind of connection)</li>\n<li><input type=\"checkbox\"/> Example (implies metadata <code>has_example</code>)</li>\n<li>Bottom-bound<ul>\n<li><input type=\"checkbox\"/> References/influences (implies metadata <code>has_references</code>)<ul>\n<li><input type=\"checkbox\"/> Aggregated from the full text content</li></ul></li></ul></li></ul></li>\n</ul>\n\n<h3 id=\"Metrics\"> Metrics</h3>\n\n<ul>\n<li><input type=\"checkbox\"/> Most linked to nodes</li>\n<li><input type=\"checkbox\"/> Most linked from nodes</li>\n<li><input type=\"checkbox\"/> Most linked</li>\n</ul>\n\n<h3 id=\"Rendering\"> Rendering</h3>\n\n<ul>\n<li><input type=\"checkbox\"/> Sorting of tree, index list and drop-down navigation<ul>\n<li><input type=\"checkbox\" checked /> Alphabetic</li>\n<li><input type=\"checkbox\"/> By most linked to</li>\n<li><input type=\"checkbox\"/> By most linked</li></ul></li>\n<li>Tree<ul>\n<li><input type=\"checkbox\"/> Branch deeper</li></ul></li>\n<li>Customization<ul>\n<li><input type=\"checkbox\"/> Custom assets (favicon, CSS)<ul>\n<li><input type=\"checkbox\" checked /> Drop all hardcoded assets endpoints</li></ul></li>\n<li><input type=\"checkbox\" checked /> Custom templates<ul>\n<li><input type=\"checkbox\"/> user-supplied loading order (e.g. through filenames)</li></ul></li>\n<li><input type=\"checkbox\"/> Themes</li></ul></li>\n<li><input type=\"checkbox\"/> Table of contents</li>\n</ul>\n\n<h3 id=\"Connections\"> Connections</h3>\n\n<ul>\n<li><input type=\"checkbox\"/> <code>#</code> syntax for header ID anchors</li>\n<li>Connection kinds<ul>\n<li><input type=\"checkbox\"/> Mutual</li>\n<li><input type=\"checkbox\"/> Category <-> Membership</li>\n<li><input type=\"checkbox\"/> Opposite <-> Equivalent</li>\n<li><input type=\"checkbox\"/> Contrast <-> Similar</li>\n<li><input type=\"checkbox\"/> Cognate <-> Unrelated</li>\n<li><input type=\"checkbox\"/> Specialization <-> Generalization</li>\n<li><input type=\"checkbox\"/> Custom connection kinds</li>\n<li><input type=\"checkbox\" checked /> External anchors</li></ul></li>\n<li><input type=\"checkbox\"/> Suffix-aware anchors<ul>\n<li><input type=\"checkbox\" checked /> Plural anchors (<code>|node|s</code> -> <code>node</code>)</li>\n<li><input type=\"checkbox\" checked /> Ignore trailing punctuation</li>\n<li><input type=\"checkbox\"/> Conjugation anchors (<code>|will|ed</code> -> <code>will</code>)</li>\n<li><input type=\"checkbox\"/> Configurable suffixes</li></ul></li>\n</ul>\n\n<h3 id=\"I/O\"> I/O formats</h3>\n\n<h4 id=\"Input\"> Input</h4>\n\n<ul>\n<li><input type=\"checkbox\"/> Multi-graph</li>\n</ul>\n\n<h4 id=\"Output\"> Output</h4>\n\n<ul>\n<li><input type=\"checkbox\"/> Add separate TOML endpoints for pre/postprocessed</li>\n<li><input type=\"checkbox\"/> Render to filesystem</li>\n<li><input type=\"checkbox\"/> Single-page rendering</li>\n<li><input type=\"checkbox\"/> Consider printing parsing errors to console by default</li>\n</ul>\n\n<h3 id=\"Templating\"> Templating</h3>\n\n<ul>\n<li><input type=\"checkbox\"/> Simplify template code with includes, macros and custom functions</li>\n<li><input type=\"checkbox\"/> Move compiled templates to a static ref<ul>\n<li>See: <a class=\"external\" title=\"\" href=\"https://keats.github.io/tera/docs/#:~:text=only%20happen%20once\">https://keats.github.io/tera/docs/#:~:text=only%20happen%20once</a></li></ul></li>\n<li><input type=\"checkbox\"/> Reduce whitespace<ul>\n<li>See: <a class=\"external\" title=\"\" href=\"https://keats.github.io/tera/docs/#whitespace-control\">https://keats.github.io/tera/docs/#whitespace-control</a></li></ul></li>\n</ul>\n\n<h3 id=\"Documentation\"> Documentation</h3>\n\n<ul>\n<li><input type=\"checkbox\"/> Generate <code>meta.config</code> docs from JSON schema</li>\n</ul>\n\n<h4 id=\"Validation\"> Validation</h4>\n\n<ul>\n<li><input type=\"checkbox\"/> Finalize JSON schema</li>\n<li><input type=\"checkbox\"/> Add CI step with <code>taplo lint</code></li>\n</ul>\n\n<h3 id=\"Internals\"> Internals</h3>\n\n\n<ul>\n<li><input type=\"checkbox\"/> Assess <code>Option</code> return types that should be <code>Result</code></li>\n<li><input type=\"checkbox\"/> Replace CI tooling setup script with a nix shell</li>\n</ul>\n\n<h3 id=\"Performance\"> Performance</h3>\n\n<ul>\n<li><input type=\"checkbox\"/> Caching</li>\n<li><input type=\"checkbox\"/> Reduce O(n) calls in the formats module</li>\n</ul>\n\n<h3 id=\"Done\"> Done</h3>\n<p><details>\n<summary>Toggle to expand</summary></p>\n\n<h4 id=\"Syntax-1\"> Syntax</h4>\n\n<ul>\n<li>Formatting<ul>\n<li><input type=\"checkbox\" checked /> Blockquotes</li>\n<li><input type=\"checkbox\" checked /> Tables</li>\n<li><input type=\"checkbox\" checked /> Nested formatting</li>\n<li><input type=\"checkbox\" checked /> Headers</li>\n<li><input type=\"checkbox\" checked /> Preformatted blocks</li>\n<li><input type=\"checkbox\" checked /> <em>Oblique</em>,</li>\n<li><input type=\"checkbox\" checked /> <u>Underline</u></li>\n<li><input type=\"checkbox\" checked /> <s>Strikethrough</s></li>\n<li><input type=\"checkbox\" checked /> <strong>Bold</strong></li>\n<li><input type=\"checkbox\" checked /> <code>Inline code</code></li>\n<li><input type=\"checkbox\" checked /> Lists<ul>\n<li><input type=\"checkbox\" checked /> Nested lists</li></ul></li>\n<li><input type=\"checkbox\" checked /> Checkboxes<ul>\n<li><input type=\"checkbox\" checked /> Move this roadmap to en</li></ul></li></ul></li>\n</ul>\n\n<h4 id=\"Connections-1\"> Connections</h4>\n\n<ul>\n<li><input type=\"checkbox\" checked /> Count connection to a redirect as a connection to the target</li>\n<li><input type=\"checkbox\" checked /> Spaced node anchor (<code>|red fox|</code> -> <code>redfox</code> -> <code>RedFox</code>)</li>\n<li><input type=\"checkbox\" checked /> Automatic connections from anchors</li>\n</ul>\n\n<h4 id=\"I/O-1\"> I/O formats</h4>\n<h5 id=\"Input-1\"> Input</h5>\n\n<ul>\n<li><input type=\"checkbox\" checked /> Array syntax for lightweight connections</li>\n</ul>\n\n<h5 id=\"Output-1\"> Output</h5>\n\n<ul>\n<li><input type=\"checkbox\" checked /> Make error output more clean when <code>DEBUG</code> is unset</li>\n</ul>\n\n<h5 id=\"Metrics-1\"> Metrics</h5>\n\n<ul>\n<li><input type=\"checkbox\" checked /> Detached edges</li>\n</ul>\n\n<h4 id=\"Rendering-1\"> Rendering</h4>\n\n<ul>\n<li><input type=\"checkbox\" checked /> Render detached anchors differently</li>\n<li><input type=\"checkbox\" checked /> Strip/render some syntax in Tree text preview</li>\n<li><input type=\"checkbox\" checked /> Drop-down navigation</li>\n</ul>\n\n<h4 id=\"Server\"> Server</h4>\n\n<ul>\n<li><input type=\"checkbox\" checked /> Redirects</li>\n<li><input type=\"checkbox\" checked /> Automatic IDs</li>\n<li><input type=\"checkbox\" checked /> Automatic titles</li>\n<li><input type=\"checkbox\" checked /> Mismatch between TOML ID and provided ID</li>\n</ul>\n\n<h4 id=\"Performance-1\"> Performance</h4>\n\n<ul>\n<li><input type=\"checkbox\" checked /> Move more logic from Serial to Graph submodules</li>\n<li><input type=\"checkbox\" checked /> Further centralize state</li>\n</ul>\n\n<p></details></p>\n\n<p><hr style=\"margin: 6em 0 2em;\"></p>\n\n<h2 id=\"Changelog\"> Changelog</h2>\n\n<h3 id=\"|\"> <a class=\"external\" title=\"\" href=\"https://codeberg.org/jutty/en/releases/tag/v0.4.0-alpha\">v0.4.0-alpha</a></h3>\n\n\n<ul>\n<li>Embed assets and welcome graph into the binary</li>\n<li>Source custom templates and assets from <code>./templates</code> and <code>./static/public</code></li>\n</ul>\n\n","summary":"\n Upcoming","title":"Roadmap","links":[],"redirect":"","listed":true,"connections":{"Roadmap":{"to":"Roadmap","from":"Roadmap","detached":false}},"stats":{"outgoing":0,"incoming":0}},"Node":{"id":"Node","text":"<p>A node is defined in your graph file starting with a table header of the form:</p>\n\n<pre>\n[nodes.ID]\n</pre>\n\n<p>Where <code>ID</code> is an identifier of your choice.</p>\n\n<p>While the <a class=\"attached\" title=\"TOML is a configuration format that can be easily read and understood by humans and machines alike.\" href=\"/node/TOML\">TOML</a> specification is quite flexible regarding what characters can make up this identifier, it's recommended that you keep it simple. Non-English characters are fine, but characters with special meaning in <a class=\"attached\" title=\"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.\" href=\"/node/Syntax\">en syntax</a> and URL parsing might lead to unexpected results. See <a class=\"attached\" title=\"en's anchor syntax can be very flexible, but some situations lead to ambiguity.\" href=\"/node/AnchorSyntax\">AnchorSyntax</a> for details.</p>\n\n<h2 id=\"Fields\"> Fields</h2>\n\n<p>Nodes can have several optional fields that alter how en interprets and displays them.</p>\n\n\n<ul>\n<li><code>title</code>: The main heading shown at the top of the page and tab title</li>\n<li><code>text</code>: The textual content that is shown when the node is accessed</li>\n<li><code>redirect</code>: Where to redirect any attempt to access the node</li>\n<li><code>links</code>: An array of identifiers for other nodes to which this node is connected</li>\n<li><code>listed</code>: Whether this node should be listed in the index and tree pages. This won't prevent the node from being found or linked to directly through its ID</li>\n</ul>\n\n<h2 id=\"Example\"> Example</h2>\n\n<pre>\n[nodes.Citrus]\ntitle = \"Citrus Trees\"\nlisted = true\ntext = \"Citrus is a |genus| of trees known mainly for its fruits.\"\nredirect = \"Citric\"\nlinks = [ \"Orange\", \"Lemon\", \"Lime\", \"Grapefruit\", ]\n\n[[nodes.Citrus.connections]]\nfrom = \"Citrus\"\nto = \"Citric acid\"\n</pre>\n\n<h3 id=\"Default\"> Default values</h3>\n\n<p>The example above has all fields in it for completeness, but all fields have default values and are therefore optional. This means that explicitly writing <code>listed = true</code> is the same as not setting it at all.</p>\n\n<p>The default values for unset fields are:</p>\n\n\n<ul>\n<li><code>title</code>: Same as the identifier</li>\n<li><code>text</code>: An empty string (i.e. <code>text = \"\"</code>)</li>\n<li><code>redirect</code>: An empty string</li>\n<li><code>links</code>: An empty array (i.e. <code>links = []</code>)</li>\n<li><code>listed</code>: <code>true</code></li>\n</ul>\n\n","summary":"A node is defined in your graph file starting with a table header of the form:","title":"Node","links":[],"redirect":"","listed":true,"connections":{"AnchorSyntax":{"to":"AnchorSyntax","from":"Node","detached":false},"TOML":{"to":"TOML","from":"Node","detached":false},"Syntax":{"to":"Syntax","from":"Node","detached":false}},"stats":{"outgoing":0,"incoming":0}},"SourceBuild":{"id":"SourceBuild","text":"<p>An overview on building from source is available in the <a class=\"attached\" title=\" Installation\" href=\"/node/GetStarted#Build\">Get Started</a> page. This page contains a more detailed and considered approach for those interested.</p>\n\n<p>en is developed on NixOS and builds are tested on both Debian and Alpine, meaning en should compile and run on both glibc and musl systems.</p>\n\n<h2 id=\"Dependencies\"> Dependencies</h2>\n\n<p>A Rust toolchain is required to build en itself and can be installed through <a class=\"external\" title=\"\" href=\"https://rustup.rs/\">rustup</a>.</p>\n\n<p>For compiling the en dependencies, you will also need a C toolchain: a compiler and a libc (e.g. <code>gcc</code> + <code>glibc</code> or <code>clang</code> + <code>musl</code>), which may already be installed on your system.</p>\n\n<p>For the two tested systems, all you need are the following packages:</p>\n\n\n<table>\n    <tr>\n        <th>Distribution</th>\n        <th>Needed packages</th>\n    </tr>\n    <tr>\n        <td><strong>Debian</strong></td>\n        <td><code>gcc</code> <code>libc6-dev</code></td>\n    </tr>\n    <tr>\n        <td><strong>Alpine</strong></td>\n        <td><code>clang</code></td>\n    </tr>\n</table>\n\n\n<p>You may also need <code>curl</code>, <code>git</code> and <code>ca-certificates</code> depending on how you will fetch the source code.</p>\n\n<h2 id=\"Building\"> Building from a Git clone</h2>\n\n<p>Aside from the <code>cargo install</code> approach described in <a class=\"attached\" title=\" Installation\" href=\"/node/GetStarted#Build\">GetStarted</a>, you can alternatively fetch the code yourself using Git, which allows you to inspect and change it before compiling:</p>\n\n<pre>\ngit clone -b v0.4.0-alpha --single-branch https://codeberg.org/jutty/en\ncd en\ncargo build --locked --release\n</pre>\n\n<p>In this case, the <code>en</code> binary will be in <code>target/release/en</code>.</p>\n\n<h2 id=\"Runnable\"> Runnable examples</h2>\n\n<p>You can find the exact commands used to test installation on both systems in the <a class=\"external\" title=\"\" href=\"https://codeberg.org/jutty/en/src/branch/main/containers\"><code>containers</code></a> directory of the en source repository.</p>\n","summary":"An overview on building from source is available in the Get Started page.","title":"SourceBuild","links":[],"redirect":"","listed":true,"connections":{"GetStarted":{"to":"GetStarted","from":"SourceBuild","detached":false}},"stats":{"outgoing":0,"incoming":0}},"AnchorSyntax":{"id":"AnchorSyntax","text":"<p>en's anchor syntax can be very flexible, but some situations lead to ambiguity.</p>\n\n<p>In short, following these two rules should keep you out of trouble:</p>\n\n\n<ul>\n<li><strong>Avoid characters with special meanings in your node IDs</strong>: <a class=\"attached\" title=\"TOML is a configuration format that can be easily read and understood by humans and machines alike.\" href=\"/node/TOML\">TOML</a> allows you to use a wide range of characters in identifiers, but when writing your graph it's better keep your IDs free of some characters. Accents and ideograms are fine, but characters such as <code>#</code>, <code>&</code>, <code>:</code> and <code>/</code> are not because they are interpreted differently by en and URL parsers, which might lead to unexpected results</li>\n<li><strong>Know you can be explicit to force proper evaluation</strong>: When needed, use full three-pipe anchors, as in <code>|text|destination|</code>, to make your anchors fully unambiguous</li>\n</ul>\n\n<h2 id=\"Basic\"> Basic anchor</h2>\n<p>See the <a class=\"attached\" title=\"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.\" href=\"/node/Syntax#Anchors\">Anchors section in the Syntax page</a> for the basic anchor syntax. The following sections go into more detail on some edge cases.</p>\n\n<h3 id=\"Trailing\"> Trailing characters in anchors</h3>\n\n<p>For internal anchors, most punctuation is automatically separated from the anchor destination so you can simply write:</p>\n\n<pre>\nThis gem|PreciousStone, though green, was not an emerald.\n</pre>\n\n\n<blockquote>\nThis <a class=\"detached\" title=\"\" href=\"/node/PreciousStone\">gem</a>, though green, was not an emerald.\n</blockquote>\n\n<p>This is one of the reasons to avoid punctuation in your node IDs.</p>\n\n<p>The punctuation symbols that are ignored at the trailing boundary of anchors are:</p>\n\n<pre>\n, . : ; ? ! ( ) ' \" ` | _ * \n</pre>\n\n<p>For external anchors, you often must add a third <code>|</code> to explicitly set the end because external URLs can have all sorts of arbitrary characters. This is not necessary for spaces, but it is for other characters.</p>\n\n<h2 id=\"Plural\"> Plural node anchors</h2>\n\n<p>Something similar applies to the lowercase letter <code>s</code>:</p>\n\n<pre>\nWe found three |boat|s at the marina.\n</pre>\n\n<p>This conveniently lets you write plural words as anchors to their singular form without having to write:</p>\n\n<pre>\nWe found three boats|Boat at the marina.\n</pre>\n\n<p>Which is annoying to write and makes the text a lot less fluid.</p>\n\n<p>Unlike with punctuation, this doesn't mean you can't have a node with the ID <code>s</code>. You can, but you'll have to write your anchors to it always with a trailing pipe:</p>\n\n<pre>\nThe |letter s|s| is important so we dedicated a whole page to it: |s|!\n</pre>\n\n<h2 id=\"Spaced\"> Spaced node anchors</h2>\n\n<p>If you write a node anchor with spaces, it will be collapsed:</p>\n\n<pre>\nThis |Node Anchor| will work as if it were |NodeAnchor|.\n</pre>\n\n<p>Accordingly, node IDs should not have spaces because, among other things, this feature makes it impossible to create an anchor to them.</p>\n\n<h2 id=\"Case-insensitive\"> Case-insensitive fallbacks</h2>\n\n<p>Because node ID resolution redirects to a lowercase match if it can't find an exact match, you can write:</p>\n\n<pre>\nThe next |precious stone| was stolen in 1973.\n</pre>\n\n<p>And the visible text will still display as \"precious stone\" but point to an ID such as <code>PreciousStone</code>.</p>\n\n<p>This is not a problem if you want to refer to a specific ID that differs only in case because the case-sensitive match takes priority.</p>\n\n<h2 id=\"URL\"> URL detection</h2>\n\n<p>en must differentiate node anchors from outgoing URLs:</p>\n\n<pre>\n|internal|Internal|\n|external|https://external.example.com|\n</pre>\n\n<p>It does this by looking at the destination and checking if it contains a <code>/</code> or <code>:</code>. That's one more reason to avoid these characters in your node IDs.</p>","summary":"en's anchor syntax can be very flexible, but some situations lead to ambiguity.","title":"Anchor Syntax","links":[],"redirect":"","listed":true,"connections":{"PreciousStone":{"to":"PreciousStone","from":"AnchorSyntax","detached":true},"Syntax":{"to":"Syntax","from":"AnchorSyntax","detached":false},"TOML":{"to":"TOML","from":"AnchorSyntax","detached":false}},"stats":{"outgoing":0,"incoming":0}},"Graph":{"id":"Graph","text":"<p>A graph is a data structure composed of connected (and disconnected) nodes.</p>\n\n<p>A familiar example is that of a social network. Each account can be thought of as a node and the \"follow\" and \"follower\" relationships can be thought of as edges (connections). A node may have many or few connections, and the nodes it is connected to are meaningful to understand how it fits into the whole.</p>\n\n<p>en uses this concept to create a writing tool, allowing you to map out complex thoughts as a web of connected texts.</p>","summary":"A graph is a data structure composed of connected (and disconnected) nodes.","title":"Graph","links":[],"redirect":"","listed":true,"connections":{},"stats":{"outgoing":0,"incoming":0}},"Outputs":{"id":"Outputs","text":"<p>en take as its input one or more graph files containing your node definitions. It then processes your graph, looks for connections and configuration values and produces one or more outputs depending on your settings:</p>\n\n\n<ul>\n<li>A browsable, live-served website (such as this one)</li>\n<li>A <a class=\"attached\" title=\"TOML is a configuration format that can be easily read and understood by humans and machines alike.\" href=\"/node/TOML\">TOML</a> representation of the graph that can be used as a basis to generate other, adapted graphs</li>\n<li>A JSON representation of the graph that can be further analyzed and interpreted with third-party tools</li>\n</ul>\n\n<p>The output formats are not simply a translation of the input, but enrich them. Among other things, they translate en's <a class=\"attached\" title=\"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.\" href=\"/node/Syntax\">markup syntax</a> into HTML, add metrics about how nodes are connected and flag which missing nodes are most sought after by dangling connections.</p>","summary":"en take as its input one or more graph files containing your node definitions.","title":"Outputs","links":[],"redirect":"","listed":true,"connections":{"Syntax":{"to":"Syntax","from":"Outputs","detached":false},"TOML":{"to":"TOML","from":"Outputs","detached":false}},"stats":{"outgoing":0,"incoming":0}},"Connections":{"id":"Connections","text":"<p>A connection is a link from one node to another. As shown in <a class=\"attached\" title=\" Installation\" href=\"/node/GetStarted\">GetStarted</a>, the simplest way to create them is by adding an <a class=\"attached\" title=\"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.\" href=\"/node/Syntax#Anchors\">anchor</a> in the node text itself. However, there are other ways to create connections between nodes.</p>\n\n<h2 id=\"Links\"> Links</h2>\n\n<p>Even if a node is not mentioned in the node text, you can still add connections to it.</p>\n\n<p>For simple connections without any associated properties, you can simply add links, which are lightweight connections without any metadata aside from the automatically determined source and destination:</p>\n\n<pre>\n[nodes.Quark]\ntext = \"A subatomic particle that forms hadrons.\"\n\nlinks = [ \"Particle\", \"Hadron\" ] </pre>\n\n<p>This will create two outgoing connections from Quark: to Particle and to Hadron.</p>\n\n<h2 id=\"Rich\"> Rich connections</h2>\n\n<p>For richer connections that have their own properties, you can use the full connection syntax:</p>\n\n<pre>\n[nodes.Earth.connections.Moon]\nkind = \"Satellite\"\n\n[nodes.Earth.connections.MilkyWay]\nkind = \"Galaxy\"\n</pre>\n\n<p>This will create connections from the node with ID <code>Earth</code> to the nodes with ID <code>Moon</code> and <code>MilkyWay</code> and add the \"Satellite\" and \"Galaxy\" kinds to each connection, respectively. This will add a corresponding CSS class with the same name to the connection when it's rendered so you can style it in special ways and is also reflected in the <a class=\"attached\" title=\"en take as its input one or more graph files containing your node definitions.\" href=\"/node/outputs\">output formats</a>.</p>","summary":"A connection is a link from one node to another.","title":"Connections","links":[],"redirect":"","listed":true,"connections":{"GetStarted":{"to":"GetStarted","from":"Connections","detached":false},"Outputs":{"to":"Outputs","from":"Connections","detached":false},"Syntax":{"to":"Syntax","from":"Connections","detached":false}},"stats":{"outgoing":0,"incoming":0}},"Customization":{"id":"Customization","text":"<p>You can customize several aspects of en by overriding its default templates, styles and other assets.</p>\n\n<h2 id=\"The\"> The <code>public</code> directory</h2>\n\n<p>The <code>static/public</code> directory is searched by en in the current working directory and can also be <a class=\"attached\" title=\"You can set the hostname, port and graph file path using CLI options:\" href=\"/node/CLI\">passed as a command line option</a>. All files placed inside this directory will be served by the en server as static files. You can create directories and organize files as you see fit, and then reference them through custom templates and includes.</p>\n\n<p>If you place a file in a default path, it will override the default. Namely:</p>\n\n\n<ul>\n<li><code>static/public/assets/favicon.svg</code>: Website icon as seen on tabs and other UI elements</li>\n<li><code>static/public/assets/style.css</code>: Main CSS stylesheet</li>\n<li><code>static/public/assets/fonts/fonts.css</code>: Fonts CSS index mapping the default families <code>sans</code>, <code>serifed</code>, <code>mono</code>, <code>prose</code> and <code>title</code>. The <code>prose</code> family is used for paragraphs such as in the node text content, while the <code>sans</code> family is used for UI elements such as the navigation bar and footer.</li>\n</ul>\n\n<p>The en server supports a variety of file types including plain text; data formats such as CSV, TOML and JSON; various font and image formats; and document formats such as PDF and EPUB. If you want to serve a file with a mimetype that is not included among the <a class=\"external\" title=\"\" href=\"https://codeberg.org/jutty/en/src/branch/main/src/router/handlers/mime.rs\">builtin ones</a>, you can use the <code>mimes</code> <a class=\"detached\" title=\"\" href=\"/node/Configuration#mimes\">configuration option</a>. If you don't, the file will be served with mimetype <code>application/octet-stream</code>, which may or may not work depending on what you are actually serving and how it's being consumed.</p>\n\n<h2 id=\"Styles\"> Styles</h2>\n\n<p>You can override the default CSS and fonts using custom CSS files.</p>\n\n<p>To completely override the default style, you can place your replacement at the default path as explained in the previous section.</p>\n\n<p>If you just want to add small customizations, this can be better accomplished by adding a CSS file as part of a custom headers include, as explained in the next section.</p>\n\n<h2 id=\"Templates\"> Templates</h2>\n\n<p>en uses the <a class=\"external\" title=\"\" href=\"https://keats.github.io/tera\">Tera</a> templating engine, which provides several features for creating your own templates.</p>\n\n<p>When starting up, en will look for a <code>templates</code> directory in the current working directory. For each template, it looks up the corresponding filename inside this directory. If it can't find one, it will fallback to a default template.</p>\n\n<p>For a list of templates along with their names, see the <a class=\"external\" title=\"\" href=\"https://codeberg.org/jutty/en/src/branch/main/templates\">templates directory</a> in the source code repository.</p>\n\n<p>See the <a class=\"external\" title=\"\" href=\"https://keats.github.io/tera/docs\">Tera documentation</a> for a more extensive description of the available features for writing templates.</p>\n\n<h3 id=\"Includes\"> Includes</h3>\n\n<p>Overriding an entire template can be very verbose, considering the default templates attempt to handle various edge cases.</p>\n\n<p>To make it easier to override the most common use cases, the following templates are consumed as \"includes\" in specific parts of the main templates if placed inside the <code>templates</code> directory with the suffix <code>.include.html</code>:</p>\n\n\n<ul>\n<li><code>header</code>: Included at the end of the default templates' base header</li>\n<li><code>post-body</code>: Included after the body in the default base template</li>\n<li><code>favicon</code>: Replaces the default favicon code</li>\n<li><code>styles</code>: Replaces the default CSS links</li>\n<li><code>footer</code>: Replaces the footer</li>\n<li><code>navigation</code>: Replaces the navigation bar</li>\n<li><code>index-header</code>: Replaces the block showing the title and subtitle of the website in the index page</li>\n<li><code>index-list</code>: Replaces the block showing the list of nodes in the index page</li>\n</ul>\n\n<p>For example, to override the block in the header of all pages that globally sets the CSS stylesheets, you can drop a file at <code>templates/styles.include.html</code> containing something like:</p>\n\n<pre>\n&lt;link href=\"https://cdn.example.com/external.css\" rel=\"stylesheet\"&gt;\n&lt;link href=\"/static/assets/my-styles.css\" rel=\"stylesheet\"&gt;\n</pre>\n","summary":"You can customize several aspects of en by overriding its default templates, styles and other assets.","title":"Customization","links":[],"redirect":"","listed":true,"connections":{"CLI":{"to":"CLI","from":"Customization","detached":false},"Configuration#mimes":{"to":"Configuration#mimes","from":"Customization","detached":true}},"stats":{"outgoing":0,"incoming":0}}},"root_node":"Introduction","incoming":{"Outputs":[{"to":"Outputs","from":"Connections","detached":false}],"Configuration#mimes":[{"to":"Configuration#mimes","from":"Customization","detached":true}],"AnchorSyntax":[{"to":"AnchorSyntax","from":"Syntax","detached":false},{"to":"AnchorSyntax","from":"GetStarted","detached":false},{"to":"AnchorSyntax","from":"Escaping","detached":false},{"to":"AnchorSyntax","from":"Node","detached":false}],"SourceBuild":[{"to":"SourceBuild","from":"GetStarted","detached":false}],"Escaping":[{"to":"Escaping","from":"Syntax","detached":false}],"PreciousStone":[{"to":"PreciousStone","from":"AnchorSyntax","detached":true}],"Graph":[{"to":"Graph","from":"Introduction","detached":false}],"TOML":[{"to":"TOML","from":"Introduction","detached":false},{"to":"TOML","from":"CLI","detached":false},{"to":"TOML","from":"Syntax","detached":false},{"to":"TOML","from":"GetStarted","detached":false},{"to":"TOML","from":"Escaping","detached":false},{"to":"TOML","from":"Node","detached":false},{"to":"TOML","from":"AnchorSyntax","detached":false},{"to":"TOML","from":"Outputs","detached":false}],"Node":[{"to":"Node","from":"Syntax","detached":false},{"to":"Node","from":"GetStarted","detached":false}],"Syntax":[{"to":"Syntax","from":"Introduction","detached":false},{"to":"Syntax","from":"TOML","detached":false},{"to":"Syntax","from":"GetStarted","detached":false},{"to":"Syntax","from":"Node","detached":false},{"to":"Syntax","from":"AnchorSyntax","detached":false},{"to":"Syntax","from":"Outputs","detached":false},{"to":"Syntax","from":"Connections","detached":false}],"CLI":[{"to":"CLI","from":"GetStarted","detached":false},{"to":"CLI","from":"Customization","detached":false}],"Connections":[{"to":"Connections","from":"GetStarted","detached":false}],"GetStarted":[{"to":"GetStarted","from":"Introduction","detached":false},{"to":"GetStarted","from":"SourceBuild","detached":false},{"to":"GetStarted","from":"Connections","detached":false}],"Roadmap":[{"to":"Roadmap","from":"Introduction","detached":false},{"to":"Roadmap","from":"Syntax","detached":false},{"to":"Roadmap","from":"GetStarted","detached":false},{"to":"Roadmap","from":"Roadmap","detached":false}]},"lowercase_keymap":{"acknowledgments":"Acknowledgments","syntax":"Syntax","roadmap":"Roadmap","introduction":"Introduction","graph":"Graph","customization":"Customization","outputs":"Outputs","node":"Node","escaping":"Escaping","sourcebuild":"SourceBuild","getstarted":"GetStarted","anchorsyntax":"AnchorSyntax","toml":"TOML","cli":"CLI","redirecttest":"RedirectTest","connections":"Connections"},"meta":{"config":{"_private":false,"about":true,"about_text":"","ascii_dom_ids":false,"content_language":"en","error_poem":true,"footer":true,"footer_credits":false,"footer_date":true,"footer_version":true,"footer_text":"<p><a class=\"attached\" title=\"en is only possible thanks to a number of projects and people:\" href=\"/node/Acknowledgments\">acknowledgments</a> &bullet; <a class=\"external\" title=\"\" href=\"https://codeberg.org/jutty/en\">source code</a></p>","index_node_count":8,"index_node_list":true,"index_root_node":true,"index_search":true,"node_selector":true,"navbar_search":true,"raw":true,"raw_json":true,"raw_toml":true,"serve_fonts":true,"site_description":"","site_title":"","tree":true,"tree_node_summary":false},"version":{"major":0,"minor":4,"patch":0,"qualifier":"alpha"},"messages":[],"malformed":false},"stats":{"detached":{"PreciousStone":1,"Configuration#mimes":1},"detached_total":2}}