From 318997a795e940d625ed9ac0941ebf662ab8bc40 Mon Sep 17 00:00:00 2001 From: phaer Date: Tue, 11 Jun 2024 12:27:16 +0200 Subject: [PATCH] remove mdbook site, move content to docs/ --- {website => docs}/src/SUMMARY.md | 0 {website => docs}/src/contact.md | 0 .../development-roundups/2022-april-june.md | 0 .../2022-july-september.md | 0 {website => docs}/src/examples.md | 0 {website => docs}/src/funding.md | 0 {website => docs}/src/gettingstarted.md | 0 {website => docs}/src/intro.md | 0 {website => docs}/src/modules.md | 0 {website => docs}/src/overrides.md | 0 .../src/v1-api/consuming/inspect-options.md | 0 .../src/v1-api/consuming/override.md | 0 .../integrating/integrate-lang2nix-impure.md | 0 .../integrating/integrate-lang2nix-pure.md | 0 .../src/v1-api/packaging/monorepo.md | 0 .../v1-api/packaging/nodejs-init-project.md | 0 .../v1-api/packaging/nodejs-multiple-repos.md | 0 .../src/v1-api/packaging/nodejs-workspaces.md | 0 {website => docs}/src/v1-api/problems.md | 0 {website => docs}/src/v1-api/summary.md | 0 {website => docs}/src/v1-api/users.md | 0 {website => docs}/src/warning.md | 0 website/README.md | 10 ------ website/book.toml | 23 -------------- website/no-edit-options.js | 7 ----- website/style.css | 31 ------------------- 26 files changed, 71 deletions(-) rename {website => docs}/src/SUMMARY.md (100%) rename {website => docs}/src/contact.md (100%) rename {website => docs}/src/development-roundups/2022-april-june.md (100%) rename {website => docs}/src/development-roundups/2022-july-september.md (100%) rename {website => docs}/src/examples.md (100%) rename {website => docs}/src/funding.md (100%) rename {website => docs}/src/gettingstarted.md (100%) rename {website => docs}/src/intro.md (100%) rename {website => docs}/src/modules.md (100%) rename {website => docs}/src/overrides.md (100%) rename {website => docs}/src/v1-api/consuming/inspect-options.md (100%) rename {website => docs}/src/v1-api/consuming/override.md (100%) rename {website => docs}/src/v1-api/integrating/integrate-lang2nix-impure.md (100%) rename {website => docs}/src/v1-api/integrating/integrate-lang2nix-pure.md (100%) rename {website => docs}/src/v1-api/packaging/monorepo.md (100%) rename {website => docs}/src/v1-api/packaging/nodejs-init-project.md (100%) rename {website => docs}/src/v1-api/packaging/nodejs-multiple-repos.md (100%) rename {website => docs}/src/v1-api/packaging/nodejs-workspaces.md (100%) rename {website => docs}/src/v1-api/problems.md (100%) rename {website => docs}/src/v1-api/summary.md (100%) rename {website => docs}/src/v1-api/users.md (100%) rename {website => docs}/src/warning.md (100%) delete mode 100644 website/README.md delete mode 100644 website/book.toml delete mode 100644 website/no-edit-options.js delete mode 100644 website/style.css diff --git a/website/src/SUMMARY.md b/docs/src/SUMMARY.md similarity index 100% rename from website/src/SUMMARY.md rename to docs/src/SUMMARY.md diff --git a/website/src/contact.md b/docs/src/contact.md similarity index 100% rename from website/src/contact.md rename to docs/src/contact.md diff --git a/website/src/development-roundups/2022-april-june.md b/docs/src/development-roundups/2022-april-june.md similarity index 100% rename from website/src/development-roundups/2022-april-june.md rename to docs/src/development-roundups/2022-april-june.md diff --git a/website/src/development-roundups/2022-july-september.md b/docs/src/development-roundups/2022-july-september.md similarity index 100% rename from website/src/development-roundups/2022-july-september.md rename to docs/src/development-roundups/2022-july-september.md diff --git a/website/src/examples.md b/docs/src/examples.md similarity index 100% rename from website/src/examples.md rename to docs/src/examples.md diff --git a/website/src/funding.md b/docs/src/funding.md similarity index 100% rename from website/src/funding.md rename to docs/src/funding.md diff --git a/website/src/gettingstarted.md b/docs/src/gettingstarted.md similarity index 100% rename from website/src/gettingstarted.md rename to docs/src/gettingstarted.md diff --git a/website/src/intro.md b/docs/src/intro.md similarity index 100% rename from website/src/intro.md rename to docs/src/intro.md diff --git a/website/src/modules.md b/docs/src/modules.md similarity index 100% rename from website/src/modules.md rename to docs/src/modules.md diff --git a/website/src/overrides.md b/docs/src/overrides.md similarity index 100% rename from website/src/overrides.md rename to docs/src/overrides.md diff --git a/website/src/v1-api/consuming/inspect-options.md b/docs/src/v1-api/consuming/inspect-options.md similarity index 100% rename from website/src/v1-api/consuming/inspect-options.md rename to docs/src/v1-api/consuming/inspect-options.md diff --git a/website/src/v1-api/consuming/override.md b/docs/src/v1-api/consuming/override.md similarity index 100% rename from website/src/v1-api/consuming/override.md rename to docs/src/v1-api/consuming/override.md diff --git a/website/src/v1-api/integrating/integrate-lang2nix-impure.md b/docs/src/v1-api/integrating/integrate-lang2nix-impure.md similarity index 100% rename from website/src/v1-api/integrating/integrate-lang2nix-impure.md rename to docs/src/v1-api/integrating/integrate-lang2nix-impure.md diff --git a/website/src/v1-api/integrating/integrate-lang2nix-pure.md b/docs/src/v1-api/integrating/integrate-lang2nix-pure.md similarity index 100% rename from website/src/v1-api/integrating/integrate-lang2nix-pure.md rename to docs/src/v1-api/integrating/integrate-lang2nix-pure.md diff --git a/website/src/v1-api/packaging/monorepo.md b/docs/src/v1-api/packaging/monorepo.md similarity index 100% rename from website/src/v1-api/packaging/monorepo.md rename to docs/src/v1-api/packaging/monorepo.md diff --git a/website/src/v1-api/packaging/nodejs-init-project.md b/docs/src/v1-api/packaging/nodejs-init-project.md similarity index 100% rename from website/src/v1-api/packaging/nodejs-init-project.md rename to docs/src/v1-api/packaging/nodejs-init-project.md diff --git a/website/src/v1-api/packaging/nodejs-multiple-repos.md b/docs/src/v1-api/packaging/nodejs-multiple-repos.md similarity index 100% rename from website/src/v1-api/packaging/nodejs-multiple-repos.md rename to docs/src/v1-api/packaging/nodejs-multiple-repos.md diff --git a/website/src/v1-api/packaging/nodejs-workspaces.md b/docs/src/v1-api/packaging/nodejs-workspaces.md similarity index 100% rename from website/src/v1-api/packaging/nodejs-workspaces.md rename to docs/src/v1-api/packaging/nodejs-workspaces.md diff --git a/website/src/v1-api/problems.md b/docs/src/v1-api/problems.md similarity index 100% rename from website/src/v1-api/problems.md rename to docs/src/v1-api/problems.md diff --git a/website/src/v1-api/summary.md b/docs/src/v1-api/summary.md similarity index 100% rename from website/src/v1-api/summary.md rename to docs/src/v1-api/summary.md diff --git a/website/src/v1-api/users.md b/docs/src/v1-api/users.md similarity index 100% rename from website/src/v1-api/users.md rename to docs/src/v1-api/users.md diff --git a/website/src/warning.md b/docs/src/warning.md similarity index 100% rename from website/src/warning.md rename to docs/src/warning.md diff --git a/website/README.md b/website/README.md deleted file mode 100644 index 9cf713c2..00000000 --- a/website/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# Website - -This directory contains markdown pages under ./src which are rendered to an html website using the tool mdbook. - -The website can be built via: -```shellSession -$ nix build .#website -``` - -In addition to what's already in ./src, this derivation generates and inserts reference documentation pages. One for each dream2nix module in /modules/dream2nix. diff --git a/website/book.toml b/website/book.toml deleted file mode 100644 index 225aae0b..00000000 --- a/website/book.toml +++ /dev/null @@ -1,23 +0,0 @@ -[book] -authors = ["David Hauer", "Various contributors"] -language = "en" -multilingual = false -src = "src" -title = "dream2nix" - -[output.html] -git-repository-url = "https://github.com/nix-community/dream2nix" -edit-url-template = "https://github.com/nix-community/dream2nix/edit/main/modules/dream2nix/{path}" -no-section-label = true -additional-css = [ "style.css" ] -additional-js = [ "no-edit-options.js" ] - -[output.html.print] -enable = false # big single page; don't need that - -[output.linkcheck] -follow-web-links = false # no Internet during the build - -[preprocessor.toc] -command = "mdbook-toc" -renderer = ["html"] diff --git a/website/no-edit-options.js b/website/no-edit-options.js deleted file mode 100644 index e63e56ad..00000000 --- a/website/no-edit-options.js +++ /dev/null @@ -1,7 +0,0 @@ - -if (window.location.pathname.match(/options/)) { - var buttons = document.querySelector("#menu-bar > div.right-buttons") - if (buttons != null) { - buttons.style.display = "none" - } -} diff --git a/website/style.css b/website/style.css deleted file mode 100644 index d3857ff0..00000000 --- a/website/style.css +++ /dev/null @@ -1,31 +0,0 @@ -h1.menu-title::before { - content: ""; - display: inline-block; - background-image: url(./favicon.png); - background-repeat: no-repeat; - background-size: contain; - width: 1.8ex; - height: 1.8ex; - margin-right: 0.9ex; - vertical-align: middle; -} -.light { - --links: #058; - --sidebar-active: #0af; -} -.sidebar .sidebar-scrollbox { - /* We don't use numbers, so we can take a consistent amount of space */ - padding: var(--page-padding) !important; -} -.hljs { - background-color: #f6f7f6; -} -@media (prefers-color-scheme: dark) { - .hljs { - background-color: #1d1f21; - } -} -/* prevents chapters without links to be grey */ -.chapter li { - color: #000; -}