From 7160e5adbdd5624bbe3ee50bd0581af1a52c7740 Mon Sep 17 00:00:00 2001 From: oxalica Date: Tue, 10 Sep 2024 03:59:31 -0400 Subject: [PATCH] refactor: reorganize docs and aux files --- .github/workflows/doc.yml | 2 +- .gitignore | 2 +- {blahd => contrib}/blahd.example.service | 0 {nix => contrib}/module.nix | 0 {blahd/docs => docs}/index.html | 0 {blahd/docs => docs}/webapi.yaml | 0 flake.nix | 4 ++-- {pages => test-frontend}/index.html | 0 {pages => test-frontend}/main.js | 0 9 files changed, 4 insertions(+), 4 deletions(-) rename {blahd => contrib}/blahd.example.service (100%) rename {nix => contrib}/module.nix (100%) rename {blahd/docs => docs}/index.html (100%) rename {blahd/docs => docs}/webapi.yaml (100%) rename {pages => test-frontend}/index.html (100%) rename {pages => test-frontend}/main.js (100%) diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 1559aad..70873b7 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -36,7 +36,7 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: './blahd/docs' + path: './docs' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 diff --git a/.gitignore b/.gitignore index 79708db..fc46120 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,6 @@ *.key config.toml -/pages/default.json +/test-frontend/default.json result result-* diff --git a/blahd/blahd.example.service b/contrib/blahd.example.service similarity index 100% rename from blahd/blahd.example.service rename to contrib/blahd.example.service diff --git a/nix/module.nix b/contrib/module.nix similarity index 100% rename from nix/module.nix rename to contrib/module.nix diff --git a/blahd/docs/index.html b/docs/index.html similarity index 100% rename from blahd/docs/index.html rename to docs/index.html diff --git a/blahd/docs/webapi.yaml b/docs/webapi.yaml similarity index 100% rename from blahd/docs/webapi.yaml rename to docs/webapi.yaml diff --git a/flake.nix b/flake.nix index a3dd6f3..83ea914 100644 --- a/flake.nix +++ b/flake.nix @@ -56,7 +56,7 @@ rec { postInstall = '' mkdir -p $out/etc/systemd/system - substitute ./blahd/blahd.example.service $out/etc/systemd/system/blahd.service \ + substitute ./contrib/blahd.example.service $out/etc/systemd/system/blahd.service \ --replace-fail '/usr/bin/blahd' "$out/bin/blahd" ''; @@ -77,7 +77,7 @@ rec { nixosModules = rec { default = blahd; - blahd = import ./nix/module.nix { + blahd = import ./contrib/module.nix { inherit self; }; }; diff --git a/pages/index.html b/test-frontend/index.html similarity index 100% rename from pages/index.html rename to test-frontend/index.html diff --git a/pages/main.js b/test-frontend/main.js similarity index 100% rename from pages/main.js rename to test-frontend/main.js