diff --git a/docs/images/favicon.png b/docs/images/favicon.png deleted file mode 100644 index 4b380b1..0000000 Binary files a/docs/images/favicon.png and /dev/null differ diff --git a/docs/images/logo.png b/docs/images/logo.png deleted file mode 100644 index 79fa6b8..0000000 Binary files a/docs/images/logo.png and /dev/null differ diff --git a/docs/images/logo.svg b/docs/images/logo.svg new file mode 100644 index 0000000..efba622 --- /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; +} + diff --git a/flake.lock b/flake.lock index 2e3eb9a..7f0a07d 100644 --- a/flake.lock +++ b/flake.lock @@ -230,17 +230,16 @@ "nix-mkdocs": { "locked": { "dir": "lib", - "lastModified": 1754753501, - "narHash": "sha256-k7KEGQ7qejmwrSXVSvZ9zVD1H+ZtNm0I5fmCVmZVi+4=", + "lastModified": 1757055638, + "narHash": "sha256-KHYSkEreFe4meXzSdEbknC/HwaQSNClQkc8vzHlAsMM=", "owner": "technofab", "repo": "nixmkdocs", - "rev": "aba4f26f320b15043101824b65e72058ecab296f", + "rev": "7840a5febdbeaf2da90babf6c94b3d0929d2bf74", "type": "gitlab" }, "original": { "dir": "lib", "owner": "technofab", - "ref": "v1.0.0", "repo": "nixmkdocs", "type": "gitlab" } diff --git a/flake.nix b/flake.nix index 1eca9f5..dc9e417 100644 --- a/flake.nix +++ b/flake.nix @@ -39,56 +39,36 @@ convco.enable = true; }; }; - doc = { + docs."default".config = { path = ./docs; - deps = pp: [ - pp.mkdocs-material - pp.mkdocs-macros - (pp.callPackage inputs.mkdocs-material-umami {}) - ]; + material = { + enable = true; + colors = { + primary = "black"; + accent = "blue"; + }; + umami = { + enable = true; + src = "https://analytics.tf/umami"; + siteId = "d8354dfa-2ad2-4089-90d2-899b981aef22"; + domains = ["nixible.projects.tf"]; + }; + }; + macros = { + enable = true; + includeDir = toString self'.packages.optionsDocs; + }; config = { site_name = "Nixible"; + site_url = "https://nixible.projects.tf"; repo_name = "TECHNOFAB/nixible"; repo_url = "https://gitlab.com/TECHNOFAB/nixible"; - edit_uri = "edit/main/docs/"; + extra_css = ["style.css"]; theme = { - name = "material"; - features = ["content.code.copy" "content.action.edit"]; icon.repo = "simple/gitlab"; - logo = "images/logo.png"; - favicon = "images/favicon.png"; - palette = [ - { - scheme = "default"; - media = "(prefers-color-scheme: light)"; - primary = "black"; - accent = "blue"; - toggle = { - icon = "material/brightness-7"; - name = "Switch to dark mode"; - }; - } - { - scheme = "slate"; - media = "(prefers-color-scheme: dark)"; - primary = "black"; - accent = "blue"; - toggle = { - icon = "material/brightness-4"; - name = "Switch to light mode"; - }; - } - ]; + logo = "images/logo.svg"; + favicon = "images/logo.svg"; }; - plugins = [ - "search" - "material-umami" - { - macros = { - include_dir = self'.packages.optionsDocs; - }; - } - ]; nav = [ {"Introduction" = "index.md";} {"Usage" = "usage.md";} @@ -100,29 +80,6 @@ "pymdownx.superfences" "admonition" ]; - extra.analytics = { - provider = "umami"; - site_id = "d8354dfa-2ad2-4089-90d2-899b981aef22"; - src = "https://analytics.tf/umami"; - domains = "nixible.projects.tf"; - feedback = { - title = "Was this page helpful?"; - ratings = [ - { - icon = "material/thumb-up-outline"; - name = "This page is helpful"; - data = "good"; - note = "Thanks for your feedback!"; - } - { - icon = "material/thumb-down-outline"; - name = "This page could be improved"; - data = "bad"; - note = "Thanks for your feedback! Please leave feedback by creating an issue :)"; - } - ]; - }; - }; }; }; ci = { @@ -227,7 +184,7 @@ treefmt-nix.url = "github:numtide/treefmt-nix"; nix-gitlab-ci.url = "gitlab:technofab/nix-gitlab-ci?dir=lib"; nixtest.url = "gitlab:technofab/nixtest?dir=lib"; - nix-mkdocs.url = "gitlab:technofab/nixmkdocs/v1.0.0?dir=lib"; + nix-mkdocs.url = "gitlab:technofab/nixmkdocs?dir=lib"; mkdocs-material-umami.url = "gitlab:technofab/mkdocs-material-umami"; };