From 93775bc5423e2e12d51d4930c66fbd7c6ad7fc46 Mon Sep 17 00:00:00 2001 From: Jonathan Johnson Date: Tue, 9 Jan 2024 06:53:18 -0800 Subject: [PATCH] Moved guide "warning" to all pages This required overriding the main theme file to position it where I wanted it to be. head.hbs puts it above the button bar, and header.hbs puts it outside the page area entirely. --- guide/src/intro.md | 2 - guide/theme/index.hbs | 366 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 366 insertions(+), 2 deletions(-) create mode 100644 guide/theme/index.hbs diff --git a/guide/src/intro.md b/guide/src/intro.md index 7739816..7bffbd7 100644 --- a/guide/src/intro.md +++ b/guide/src/intro.md @@ -1,7 +1,5 @@ # Introduction -> **WARNING:** Cushy is in early alpha. This guide doubly so. - This is a user's guide for [Cushy][cushy], a [Rust][rust] GUI crate. The [documentation][docs] is a great resource for finding information about specific functionality quickly. This guide is aimed to providing an example-rich diff --git a/guide/theme/index.hbs b/guide/theme/index.hbs new file mode 100644 index 0000000..c899563 --- /dev/null +++ b/guide/theme/index.hbs @@ -0,0 +1,366 @@ + + + + + + + {{ title }} + {{#if is_print }} + + {{/if}} + {{#if base_url}} + + {{/if}} + + + + {{> head}} + + + + + + {{#if favicon_svg}} + + {{/if}} + {{#if favicon_png}} + + {{/if}} + + + + {{#if print_enable}} + + {{/if}} + + + + {{#if copy_fonts}} + + {{/if}} + + + + + + + + {{#each additional_css}} + + {{/each}} + + {{#if mathjax_support}} + + + {{/if}} + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ {{> header}} + + + + {{#if search_enabled}} + + {{/if}} + + + + +
+
+

+ WARNING: Cushy is in early alpha. This guide doubly so. +

+ {{{ content }}} +
+ + +
+
+ + + +
+ + {{#if live_reload_endpoint}} + + + {{/if}} + + {{#if google_analytics}} + + + {{/if}} + + {{#if playground_line_numbers}} + + {{/if}} + + {{#if playground_copyable}} + + {{/if}} + + {{#if playground_js}} + + + + + + {{/if}} + + {{#if search_js}} + + + + {{/if}} + + + + + + + {{#each additional_js}} + + {{/each}} + + {{#if is_print}} + {{#if mathjax_support}} + + {{else}} + + {{/if}} + {{/if}} + +
+ + + \ No newline at end of file