diff --git a/documentation/docs/book.toml b/documentation/docs/book.toml index e0a4dadf8e..f7fde9f8b7 100644 --- a/documentation/docs/book.toml +++ b/documentation/docs/book.toml @@ -16,11 +16,11 @@ edition = "2018" [preprocessor.theme] pagetoc = true sidebar-width = "280px" -content-max-width = "70%" -content-main-margin-left = "5%" -content-main-margin-right = "5%" +content-max-width = "80%" root-font-size = "70%" -# DO NOT CHANGE or you might overwrite the custom hbs file +# if you need to change anything in the index.hbs file you need to turn this to `false`, rebuild the book, +# probably remove the additional `comment` that gets appended to the header, and then change this back to `true`. +# this is because of a bug in the `mdbook-theme` plugin turn-off = true [preprocessor.admonish] @@ -67,15 +67,14 @@ curly-quotes = true copy-fonts = true no-section-label = false additional-css = [ - "./theme/custom.css", - "./theme/mdbook-admonish.css", - "./theme/pagetoc.css", + "./themes/custom.css", + "./themes/mdbook-admonish.css", + "./themes/pagetoc.css", ] -additional-js = ["./theme/pagetoc.js"] +additional-js = ["./themes/pagetoc.js"] git-repository-url = "https://github.com/nymtech/nym/documentation/" git-repository-icon = "fa-github" input-404 = "not-found.md" -cname = "nymtech.net" [output.html.fold] enable = true # whether or not to enable section folding diff --git a/documentation/docs/theme/css/chrome.css b/documentation/docs/theme/css/chrome.css index e16262342c..687d5e46b9 100644 --- a/documentation/docs/theme/css/chrome.css +++ b/documentation/docs/theme/css/chrome.css @@ -98,8 +98,6 @@ a > .hljs { } .menu-title { - position: absolute; - left: 50%; display: inline-block; font-weight: 200; font-size: 2.4rem; diff --git a/documentation/docs/theme/css/variables.css b/documentation/docs/theme/css/variables.css index 93de90cb02..51b94cfc5a 100644 --- a/documentation/docs/theme/css/variables.css +++ b/documentation/docs/theme/css/variables.css @@ -6,7 +6,7 @@ --sidebar-resize-indicator-width: 8px; --sidebar-resize-indicator-space: 2px; --page-padding: 15px; - --content-max-width: 70%; + --content-max-width: 80%; --menu-bar-height: 40px; --mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; --code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */ diff --git a/documentation/docs/theme/index.hbs b/documentation/docs/theme/index.hbs index 2e92241177..9c5b8b9ef6 100644 --- a/documentation/docs/theme/index.hbs +++ b/documentation/docs/theme/index.hbs @@ -47,6 +47,11 @@ {{#each additional_css}} {{/each}} + + {{#if mathjax_support}} + + + {{/if}}