docs: move option-search into own package

This commit is contained in:
Johannes Kirschbauer
2025-10-08 15:42:18 +02:00
parent 6b5dca5842
commit c031abcd9e
8 changed files with 18 additions and 18 deletions

View File

@@ -120,7 +120,7 @@ in
) (self.darwinConfigurations or { }) ) (self.darwinConfigurations or { })
// lib.mapAttrs' (n: lib.nameValuePair "package-${n}") ( // lib.mapAttrs' (n: lib.nameValuePair "package-${n}") (
if system == "aarch64-darwin" then if system == "aarch64-darwin" then
lib.filterAttrs (n: _: n != "docs" && n != "deploy-docs" && n != "docs-options") packagesToBuild lib.filterAttrs (n: _: n != "docs" && n != "deploy-docs" && n != "option-search") packagesToBuild
else else
packagesToBuild packagesToBuild
) )

2
docs/.gitignore vendored
View File

@@ -1,6 +1,6 @@
/site/reference /site/reference
/site/services/official /site/services/official
/site/static /site/static
/site/options /site/option-search
/site/openapi.json /site/openapi.json
!/site/static/extra.css !/site/static/extra.css

View File

@@ -180,7 +180,7 @@ nav:
- services/official/zerotier.md - services/official/zerotier.md
- services/community.md - services/community.md
- Search Clan Options: "/options" - Search Clan Options: "/option-search"
docs_dir: site docs_dir: site
site_dir: out site_dir: out

View File

@@ -5,7 +5,7 @@
clan-lib-openapi, clan-lib-openapi,
roboto, roboto,
fira-code, fira-code,
docs-options, option-search,
... ...
}: }:
let let
@@ -51,9 +51,9 @@ pkgs.stdenv.mkDerivation {
chmod -R +w ./site chmod -R +w ./site
echo "Generated API documentation in './site/reference/' " echo "Generated API documentation in './site/reference/' "
rm -rf ./site/options rm -rf ./site/option-search
cp -r ${docs-options} ./site/options cp -r ${option-search} ./site/option-search
chmod -R +w ./site/options chmod -R +w ./site/option-search
# Link to fonts # Link to fonts
ln -snf ${roboto}/share/fonts/truetype/Roboto-Regular.ttf ./site/static/ ln -snf ${roboto}/share/fonts/truetype/Roboto-Regular.ttf ./site/static/

View File

@@ -1,8 +1,5 @@
{ inputs, self, ... }: { inputs, self, ... }:
{ {
imports = [
./options/flake-module.nix
];
perSystem = perSystem =
{ {
config, config,
@@ -96,7 +93,7 @@
docs = pkgs.python3.pkgs.callPackage ./default.nix { docs = pkgs.python3.pkgs.callPackage ./default.nix {
inherit (self'.packages) inherit (self'.packages)
clan-cli-docs clan-cli-docs
docs-options option-search
inventory-api-docs inventory-api-docs
clan-lib-openapi clan-lib-openapi
; ;

View File

@@ -70,6 +70,8 @@ hide:
.clamp-toggle:checked ~ .clamp-more::after { content: "Read less"; } .clamp-toggle:checked ~ .clamp-more::after { content: "Read less"; }
</style> </style>
trivial change
<div class="clamp-wrap" style="--lines: 3;"> <div class="clamp-wrap" style="--lines: 3;">
<input type="checkbox" id="clan-readmore" class="clamp-toggle" /> <input type="checkbox" id="clan-readmore" class="clamp-toggle" />
<div class="clamp-content"> <div class="clamp-content">

View File

@@ -2,12 +2,13 @@
{ {
imports = [ imports = [
./clan-cli/flake-module.nix
./clan-vm-manager/flake-module.nix
./installer/flake-module.nix
./icon-update/flake-module.nix
./clan-core-flake/flake-module.nix
./clan-app/flake-module.nix ./clan-app/flake-module.nix
./clan-cli/flake-module.nix
./clan-core-flake/flake-module.nix
./clan-vm-manager/flake-module.nix
./icon-update/flake-module.nix
./installer/flake-module.nix
./option-search/flake-module.nix
./testing/flake-module.nix ./testing/flake-module.nix
]; ];

View File

@@ -118,7 +118,7 @@
_file = "docs flake-module"; _file = "docs flake-module";
imports = [ imports = [
{ _module.args = { inherit clanLib; }; } { _module.args = { inherit clanLib; }; }
(import ../../../lib/modules/inventoryClass/roles-interface.nix { (import ../../lib/modules/inventoryClass/roles-interface.nix {
nestedSettingsOption = mkOption { nestedSettingsOption = mkOption {
type = types.raw; type = types.raw;
description = '' description = ''
@@ -201,7 +201,7 @@
# }; # };
packages = { packages = {
docs-options = option-search =
if privateInputs ? nuschtos then if privateInputs ? nuschtos then
privateInputs.nuschtos.packages.${pkgs.stdenv.hostPlatform.system}.mkMultiSearch { privateInputs.nuschtos.packages.${pkgs.stdenv.hostPlatform.system}.mkMultiSearch {
inherit baseHref; inherit baseHref;