From 24f841f772efb3e237c63e32367f9620baa9afed Mon Sep 17 00:00:00 2001 From: mfahampshire Date: Tue, 6 Feb 2024 17:07:15 +0100 Subject: [PATCH] removed themes aside from dark and light custom --- documentation/docs/book.toml | 4 - documentation/docs/nym_themes/custom.css | 1 + documentation/docs/nym_themes/index.hbs | 343 +++++++++++++++++++++++ 3 files changed, 344 insertions(+), 4 deletions(-) create mode 100644 documentation/docs/nym_themes/index.hbs diff --git a/documentation/docs/book.toml b/documentation/docs/book.toml index 01fe88de1a..cbf9801c2b 100644 --- a/documentation/docs/book.toml +++ b/documentation/docs/book.toml @@ -53,16 +53,12 @@ theme = "nym_themes" default-theme = "coal" preferred-dark-theme = "coal" curly-quotes = true -# mathjax-support = false # useful if we want to pull equations in copy-fonts = true no-section-label = false additional-css = ["./nym_themes/custom.css", "./mdbook-admonish.css"] additional-js = [] git-repository-url = "https://github.com/nymtech/nym" git-repository-icon = "fa-github" -# edit-url-template = "https://github.com/rust-lang/mdBook/edit/master/guide/{path}" -# site-url = "/docs/" -# cname = "nymtech.net" input-404 = "not-found.md" [output.html.fold] diff --git a/documentation/docs/nym_themes/custom.css b/documentation/docs/nym_themes/custom.css index bd15faac15..1250ecd268 100644 --- a/documentation/docs/nym_themes/custom.css +++ b/documentation/docs/nym_themes/custom.css @@ -1,6 +1,7 @@ :root { --mono-font: Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace; } + .coal { --sidebar-active: #fb6e4e; diff --git a/documentation/docs/nym_themes/index.hbs b/documentation/docs/nym_themes/index.hbs new file mode 100644 index 0000000000..000a82bad7 --- /dev/null +++ b/documentation/docs/nym_themes/index.hbs @@ -0,0 +1,343 @@ + + + + + + {{ 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}} + + + + +
+
+ {{{ 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}} + +
+ +