mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 06:48:12 +08:00
Add editor structure outline to the developer guide on the website
This commit is contained in:
@@ -38,3 +38,18 @@
|
||||
{{ load_data(path="static/text-balancer.js", format="plain") | safe }}
|
||||
</script>
|
||||
{% endmacro text_balancer %}
|
||||
|
||||
{% macro hierarchical_message_system_tree() %}
|
||||
{%- set content = load_data(path = "other/editor-structure/replacement.html", format = "plain", required = false) -%}
|
||||
{%- set fallback = "<pre>THIS CONTENT IS FILLED IN WHEN CI BUILDS THE WEBSITE.
|
||||
|
||||
TO TEST IT LOCALLY, RUN:
|
||||
|
||||
cd website/other/editor-structure
|
||||
|
||||
AND THEN:
|
||||
|
||||
cargo test --package graphite-editor --lib -- messages::message::test::generate_message_tree
|
||||
node generate.js ../../../hierarchical_message_system_tree.txt replacement.html</pre>" -%}
|
||||
{{ content | default(value = fallback) | safe }}
|
||||
{% endmacro hierarchical_message_system_tree %}
|
||||
|
||||
Reference in New Issue
Block a user