From 7f7c52d3836bbea7f992d6f0247a92f423e6d0a6 Mon Sep 17 00:00:00 2001 From: technofab Date: Tue, 23 Sep 2025 10:39:20 +0200 Subject: [PATCH] docs: add style.css and logo --- cells/repo/docs.nix | 6 ++++-- docs/images/logo.svg | 1 + docs/style.css | 15 +++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100755 docs/images/logo.svg create mode 100644 docs/style.css diff --git a/cells/repo/docs.nix b/cells/repo/docs.nix index ab349eb..ada65e8 100644 --- a/cells/repo/docs.nix +++ b/cells/repo/docs.nix @@ -20,12 +20,14 @@ in }; config = { site_name = "Rensa Core"; + site_url = "https://rensa.projects.tf"; repo_name = "rensa-nix/core"; repo_url = "https://gitlab.com/rensa-nix/core"; + extra_css = ["style.css"]; theme = { - logo = "images/logo.png"; + logo = "images/logo.svg"; icon.repo = "simple/gitlab"; - favicon = "images/favicon.png"; + favicon = "images/logo.svg"; }; nav = [ {"Introduction" = "index.md";} diff --git a/docs/images/logo.svg b/docs/images/logo.svg new file mode 100755 index 0000000..3089ddc --- /dev/null +++ b/docs/images/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/style.css b/docs/style.css new file mode 100644 index 0000000..b2ae4ff --- /dev/null +++ b/docs/style.css @@ -0,0 +1,15 @@ +.md-header__button.md-logo { + margin: 0; + padding-top: .2rem; + padding-bottom: .2rem; +} + +[dir="ltr"] .md-header__title { + margin-left: 0; +} + +.md-header__button.md-logo img, +.md-header__button.md-logo svg { + height: 2rem; +} +