From 3f2638be146adb377c70a0daf785bb7f105c5f88 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 9 Jul 2023 14:07:21 +0800 Subject: [PATCH] docs/site: update site layout --- README.adoc | 3 +++ docs/Gemfile.lock | 9 ++++++--- docs/assets/scss/extend.scss | 7 ++++--- docs/layouts/_default/baseof.html | 4 ++-- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/README.adoc b/README.adoc index ea32cc3c..771ba614 100644 --- a/README.adoc +++ b/README.adoc @@ -1,6 +1,7 @@ = foo-dogsquared's NixOS config :toc: :devos_link: https://github.com/divnix/digga/tree/580fc57ffaaf9cf3a582372235759dccfe44ac92/examples/devos +:doc_site: https://foo-dogsquared.github.io/nixos-config :canonical_flake_url: github:foo-dogsquared/nixos-config :canonical_flake_url_tarball_master: https://github.com/foo-dogsquared/nixos-config/archive/master.tar.gz :canonical_flake_url_tarball_specific: https://github.com/foo-dogsquared/nixos-config/archive/35c27749c55077727529f412dade862e4deb2ae8.tar.gz @@ -10,6 +11,8 @@ This is my NixOS config as a link:https://www.tweag.io/blog/2020-05-25-flakes/[N I finally have some time trying to grok flakes and redo my NixOS config from scratch after leaving it for some time (because I have work and have to quickly set things up without me trying to debug how NixOS works). Here is the result. +Anyways, this project also has a dedicated website at {doc_site}. + diff --git a/docs/Gemfile.lock b/docs/Gemfile.lock index 5cce4439..ba7ae6a3 100644 --- a/docs/Gemfile.lock +++ b/docs/Gemfile.lock @@ -9,7 +9,7 @@ GEM rexml asciidoctor-diagram-ditaamini (1.0.3) asciidoctor-diagram-plantuml (1.2023.5) - asciidoctor-foodogsquared-extensions (1.0.0) + asciidoctor-foodogsquared-extensions (1.0.1) asciidoctor (~> 2.0) rugged (~> 1.0) ast (2.4.2) @@ -47,7 +47,10 @@ GEM syntax_tree (>= 6.1.1, < 7) ruby-progressbar (1.13.0) rugged (1.6.3) - sorbet-runtime (0.5.10904) + slim (5.1.1) + temple (~> 0.10.0) + tilt (>= 2.1.0) + sorbet-runtime (0.5.10908) syntax_tree (6.1.1) prettier_print (>= 1.2.0) unicode-display_width (2.4.2) @@ -67,4 +70,4 @@ DEPENDENCIES ruby-lsp BUNDLED WITH - 2.4.14 + 2.4.10 diff --git a/docs/assets/scss/extend.scss b/docs/assets/scss/extend.scss index bbf17116..4ae3ce0b 100644 --- a/docs/assets/scss/extend.scss +++ b/docs/assets/scss/extend.scss @@ -6,7 +6,7 @@ $line-height: 1.45; :root { --gap: 1rem; - --sidebar-width: 300px; + --sidebar-width: 22%; } body { @@ -18,13 +18,14 @@ body { height: 100vh; } -.book.sidebar { +.book__sidebar { margin: 0; padding: var(--gap); background: var(--base01); height: 100vh; overflow-y: auto; outline: none; + transition: 0.2s; position: fixed; top: 0; @@ -36,7 +37,7 @@ body { } } -.book.content { +.book__content { padding: var(--gap); overflow-y: auto; margin: 0 auto; diff --git a/docs/layouts/_default/baseof.html b/docs/layouts/_default/baseof.html index 3b45c224..f54bdbdd 100644 --- a/docs/layouts/_default/baseof.html +++ b/docs/layouts/_default/baseof.html @@ -5,10 +5,10 @@ {{ partial "head-extended.html" . }} -