summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2023-01-10 12:34:37 +0100
committerpennae <github@quasiparticle.net>2023-01-10 12:34:37 +0100
commit53fc887582fba4fd4938ce1b647d6152ea374ed1 (patch)
tree6042178980e8252bd81963d9ede8db0d21821e6d
parentb15f4d0f9735f3dbce30b7d8c490627f5d9394e5 (diff)
nixos/manual: move "edit the MD file" comments to generated XML
-rwxr-xr-xnixos/doc/manual/md-to-db.sh3
-rw-r--r--nixos/modules/i18n/input-method/default.nix1
-rw-r--r--nixos/modules/i18n/input-method/default.xml2
-rw-r--r--nixos/modules/programs/digitalbitbox/default.nix1
-rw-r--r--nixos/modules/programs/digitalbitbox/default.xml2
-rw-r--r--nixos/modules/programs/plotinus.nix1
-rw-r--r--nixos/modules/programs/plotinus.xml2
-rw-r--r--nixos/modules/programs/zsh/oh-my-zsh.nix1
-rw-r--r--nixos/modules/programs/zsh/oh-my-zsh.xml2
-rw-r--r--nixos/modules/security/acme/default.nix1
-rw-r--r--nixos/modules/security/acme/default.xml2
-rw-r--r--nixos/modules/services/backup/borgbackup.nix1
-rw-r--r--nixos/modules/services/backup/borgbackup.xml2
-rw-r--r--nixos/modules/services/databases/foundationdb.nix1
-rw-r--r--nixos/modules/services/databases/foundationdb.xml2
-rw-r--r--nixos/modules/services/databases/postgresql.nix1
-rw-r--r--nixos/modules/services/databases/postgresql.xml2
-rw-r--r--nixos/modules/services/desktops/flatpak.nix1
-rw-r--r--nixos/modules/services/desktops/flatpak.xml2
-rw-r--r--nixos/modules/services/development/blackfire.nix1
-rw-r--r--nixos/modules/services/development/blackfire.xml2
-rw-r--r--nixos/modules/services/editors/emacs.nix1
-rw-r--r--nixos/modules/services/editors/emacs.xml2
-rw-r--r--nixos/modules/services/hardware/trezord.nix1
-rw-r--r--nixos/modules/services/hardware/trezord.xml2
-rw-r--r--nixos/modules/services/mail/mailman.nix1
-rw-r--r--nixos/modules/services/mail/mailman.xml2
-rw-r--r--nixos/modules/services/matrix/mjolnir.nix1
-rw-r--r--nixos/modules/services/matrix/mjolnir.xml2
-rw-r--r--nixos/modules/services/matrix/synapse.nix1
-rw-r--r--nixos/modules/services/matrix/synapse.xml2
-rw-r--r--nixos/modules/services/misc/gitlab.nix1
-rw-r--r--nixos/modules/services/misc/gitlab.xml2
-rw-r--r--nixos/modules/services/misc/sourcehut/default.nix1
-rw-r--r--nixos/modules/services/misc/sourcehut/default.xml2
-rw-r--r--nixos/modules/services/misc/taskserver/default.nix1
-rw-r--r--nixos/modules/services/misc/taskserver/default.xml2
-rw-r--r--nixos/modules/services/misc/weechat.nix1
-rw-r--r--nixos/modules/services/misc/weechat.xml2
-rw-r--r--nixos/modules/services/monitoring/parsedmarc.nix1
-rw-r--r--nixos/modules/services/monitoring/parsedmarc.xml2
-rw-r--r--nixos/modules/services/monitoring/prometheus/exporters.nix1
-rw-r--r--nixos/modules/services/monitoring/prometheus/exporters.xml2
-rw-r--r--nixos/modules/services/network-filesystems/litestream/default.nix1
-rw-r--r--nixos/modules/services/network-filesystems/litestream/default.xml2
-rw-r--r--nixos/modules/services/networking/firefox-syncserver.nix1
-rw-r--r--nixos/modules/services/networking/firefox-syncserver.xml2
-rw-r--r--nixos/modules/services/networking/mosquitto.nix1
-rw-r--r--nixos/modules/services/networking/mosquitto.xml2
-rw-r--r--nixos/modules/services/networking/pleroma.nix1
-rw-r--r--nixos/modules/services/networking/pleroma.xml2
-rw-r--r--nixos/modules/services/networking/prosody.nix1
-rw-r--r--nixos/modules/services/networking/prosody.xml2
-rw-r--r--nixos/modules/services/networking/yggdrasil.nix1
-rw-r--r--nixos/modules/services/networking/yggdrasil.xml2
-rw-r--r--nixos/modules/services/search/meilisearch.nix1
-rw-r--r--nixos/modules/services/search/meilisearch.xml2
-rw-r--r--nixos/modules/services/web-apps/akkoma.nix1
-rw-r--r--nixos/modules/services/web-apps/akkoma.xml2
-rw-r--r--nixos/modules/services/web-apps/discourse.nix1
-rw-r--r--nixos/modules/services/web-apps/discourse.xml2
-rw-r--r--nixos/modules/services/web-apps/grocy.nix1
-rw-r--r--nixos/modules/services/web-apps/grocy.xml2
-rw-r--r--nixos/modules/services/web-apps/jitsi-meet.nix1
-rw-r--r--nixos/modules/services/web-apps/jitsi-meet.xml2
-rw-r--r--nixos/modules/services/web-apps/keycloak.nix1
-rw-r--r--nixos/modules/services/web-apps/keycloak.xml2
-rw-r--r--nixos/modules/services/web-apps/lemmy.nix1
-rw-r--r--nixos/modules/services/web-apps/lemmy.xml2
-rw-r--r--nixos/modules/services/web-apps/matomo.nix1
-rw-r--r--nixos/modules/services/web-apps/matomo.xml2
-rw-r--r--nixos/modules/services/web-apps/nextcloud.nix1
-rw-r--r--nixos/modules/services/web-apps/nextcloud.xml2
-rw-r--r--nixos/modules/services/web-apps/pict-rs.nix1
-rw-r--r--nixos/modules/services/web-apps/pict-rs.xml2
-rw-r--r--nixos/modules/services/web-apps/plausible.nix1
-rw-r--r--nixos/modules/services/web-apps/plausible.xml2
-rw-r--r--nixos/modules/services/web-servers/garage.nix1
-rw-r--r--nixos/modules/services/web-servers/garage.xml2
-rw-r--r--nixos/modules/services/x11/desktop-managers/gnome.nix1
-rw-r--r--nixos/modules/services/x11/desktop-managers/gnome.xml2
-rw-r--r--nixos/modules/services/x11/desktop-managers/pantheon.nix1
-rw-r--r--nixos/modules/services/x11/desktop-managers/pantheon.xml2
-rw-r--r--nixos/modules/system/boot/loader/external/external.nix1
-rw-r--r--nixos/modules/system/boot/loader/external/external.xml2
85 files changed, 87 insertions, 42 deletions
diff --git a/nixos/doc/manual/md-to-db.sh b/nixos/doc/manual/md-to-db.sh
index abf9417c50a2..a7421bed532e 100755
--- a/nixos/doc/manual/md-to-db.sh
+++ b/nixos/doc/manual/md-to-db.sh
@@ -62,6 +62,9 @@ for mf in ${MD_FILES[*]}; do
[ -f "${mf%.md}.nix" ] || continue
pandoc --top-level-division=chapter "$mf" "${pandoc_flags[@]}" -o "${mf%.md}.xml"
+ sed -i -e '1 i <!-- Do not edit this file directly, edit its companion .md instead\
+ and regenerate this file using nixos/doc/manual/md-to-db.sh -->' \
+ "${mf%.md}.xml"
done
popd
diff --git a/nixos/modules/i18n/input-method/default.nix b/nixos/modules/i18n/input-method/default.nix
index 452b0d7b264e..07fb86bcc25e 100644
--- a/nixos/modules/i18n/input-method/default.nix
+++ b/nixos/modules/i18n/input-method/default.nix
@@ -66,7 +66,6 @@ in
meta = {
maintainers = with lib.maintainers; [ ericsagnes ];
- # Don't edit the docbook xml directly, edit the md and generate it using md-to-db.sh
doc = ./default.xml;
};
diff --git a/nixos/modules/i18n/input-method/default.xml b/nixos/modules/i18n/input-method/default.xml
index b3706086befd..7b7907cd32a6 100644
--- a/nixos/modules/i18n/input-method/default.xml
+++ b/nixos/modules/i18n/input-method/default.xml
@@ -1,3 +1,5 @@
+<!-- Do not edit this file directly, edit its companion .md instead
+ and regenerate this file using nixos/doc/manual/md-to-db.sh -->
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="module-services-input-methods">
<title>Input Methods</title>
<para>
diff --git a/nixos/modules/programs/digitalbitbox/default.nix b/nixos/modules/programs/digitalbitbox/default.nix
index fb18c52187b6..054110fe5df2 100644
--- a/nixos/modules/programs/digitalbitbox/default.nix
+++ b/nixos/modules/programs/digitalbitbox/default.nix
@@ -33,7 +33,6 @@ in
};
meta = {
- # Don't edit the docbook xml directly, edit the md and generate it using md-to-db.sh
doc = ./default.xml;
maintainers = with lib.maintainers; [ vidbina ];
};
diff --git a/nixos/modules/programs/digitalbitbox/default.xml b/nixos/modules/programs/digitalbitbox/default.xml
index d5e1110bafb2..ee892523223c 100644
--- a/nixos/modules/programs/digitalbitbox/default.xml
+++ b/nixos/modules/programs/digitalbitbox/default.xml
@@ -1,3 +1,5 @@
+<!-- Do not edit this file directly, edit its companion .md instead
+ and regenerate this file using nixos/doc/manual/md-to-db.sh -->
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="module-programs-digitalbitbox">
<title>Digital Bitbox</title>
<para>
diff --git a/nixos/modules/programs/plotinus.nix b/nixos/modules/programs/plotinus.nix
index cc73df2f791f..a011bb862aea 100644
--- a/nixos/modules/programs/plotinus.nix
+++ b/nixos/modules/programs/plotinus.nix
@@ -8,7 +8,6 @@ in
{
meta = {
maintainers = pkgs.plotinus.meta.maintainers;
- # Don't edit the docbook xml directly, edit the md and generate it using md-to-db.sh
doc = ./plotinus.xml;
};
diff --git a/nixos/modules/programs/plotinus.xml b/nixos/modules/programs/plotinus.xml
index eb8c65f94bc9..2d4db0285148 100644
--- a/nixos/modules/programs/plotinus.xml
+++ b/nixos/modules/programs/plotinus.xml
@@ -1,3 +1,5 @@
+<!-- Do not edit this file directly, edit its companion .md instead
+ and regenerate this file using nixos/doc/manual/md-to-db.sh -->
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="module-program-plotinus">
<title>Plotinus</title>
<para>
diff --git a/nixos/modules/programs/zsh/oh-my-zsh.nix b/nixos/modules/programs/zsh/oh-my-zsh.nix
index a2d6eb14bdfd..41ea31b0f122 100644
--- a/nixos/modules/programs/zsh/oh-my-zsh.nix
+++ b/nixos/modules/programs/zsh/oh-my-zsh.nix
@@ -142,6 +142,5 @@ in
};
- # Don't edit the docbook xml directly, edit the md and generate it using md-to-db.sh
meta.doc = ./oh-my-zsh.xml;
}
diff --git a/nixos/modules/programs/zsh/oh-my-zsh.xml b/nixos/modules/programs/zsh/oh-my-zsh.xml
index be868326c25b..2a2bba96b859 100644
--- a/nixos/modules/programs/zsh/oh-my-zsh.xml
+++ b/nixos/modules/programs/zsh/oh-my-zsh.xml
@@ -1,3 +1,5 @@
+<!-- Do not edit this file directly, edit its companion .md instead
+ and regenerate this file using nixos/doc/manual/md-to-db.sh -->
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="module-programs-zsh-ohmyzsh">
<title>Oh my ZSH</title>
<para>
diff --git a/nixos/modules/security/acme/default.nix b/nixos/modules/security/acme/default.nix
index baa7a516ce34..06db420632e5 100644
--- a/nixos/modules/security/acme/default.nix
+++ b/nixos/modules/security/acme/default.nix
@@ -916,7 +916,6 @@ in {
meta = {
maintainers = lib.teams.acme.members;
- # Don't edit the docbook xml directly, edit the md and generate it using md-to-db.sh
doc = ./default.xml;
};
}
diff --git a/nixos/modules/security/acme/default.xml b/nixos/modules/security/acme/default.xml
index 766421c62373..e80ce3b6a494 100644
--- a/nixos/modules/security/acme/default.xml
+++ b/nixos/modules/security/acme/default.xml
@@ -1,3 +1,5 @@
+<!-- Do not edit this file directly, edit its companion .md instead
+ and regenerate this file using nixos/doc/manual/md-to-db.sh -->
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="module-security-acme">
<title>SSL/TLS Certificates with ACME</title>
<para>
diff --git a/nixos/modules/services/backup/borgbackup.nix b/nixos/modules/services/backup/borgbackup.nix
index 5489aac0111f..c5fc09dcea02 100644
--- a/nixos/modules/services/backup/borgbackup.nix
+++ b/nixos/modules/services/backup/borgbackup.nix
@@ -226,7 +226,6 @@ let
in {
meta.maintainers = with maintainers; [ dotlambda ];
- # Don't edit the docbook xml directly, edit the md and generate it using md-to-db.sh
meta.doc = ./borgbackup.xml;
###### interface
diff --git a/nixos/modules/services/backup/borgbackup.xml b/nixos/modules/services/backup/borgbackup.xml
index 1b864d6cdd56..2b9e0baa6d09 100644
--- a/nixos/modules/services/backup/borgbackup.xml
+++ b/nixos/modules/services/backup/borgbackup.xml
@@ -1,3 +1,5 @@
+<!-- Do not edit this file directly, edit its companion .md instead
+ and regenerate this file using nixos/doc/manual/md-to-db.sh -->
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="module-borgbase">
<title>BorgBackup</title>
<para>
diff --git a/nixos/modules/services/databases/foundationdb.nix b/nixos/modules/services/databases/foundationdb.nix
index 3d72d8ec6d27..16d539b661eb 100644
--- a/nixos/modules/services/databases/foundationdb.nix
+++ b/nixos/modules/services/databases/foundationdb.nix
@@ -424,7 +424,6 @@ in
};
};
- # Don't edit the docbook xml directly, edit the md and generate it using md-to-db.sh
meta.doc = ./foundationdb.xml;
meta.maintainers = with lib.maintainers; [ thoughtpolice ];
}
diff --git a/nixos/modules/services/databases/foundationdb.xml b/nixos/modules/services/databases/foundationdb.xml
index e4a012604215..611535a9eb8a 100644
--- a/nixos/modules/services/databases/foundationdb.xml
+++ b/nixos/modules/services/databases/foundationdb.xml
@@ -1,3 +1,5 @@
+<!-- Do not edit this file directly, edit its companion .md instead
+ and regenerate this file using nixos/doc/manual/md-to-db.sh -->
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="module-services-foundationdb">
<title>FoundationDB</title>
<para>
diff --git a/nixos/modules/services/databases/postgresql.nix b/nixos/modules/services/databases/postgresql.nix
index 40a1acb39a3d..6665e7a088fc 100644
--- a/nixos/modules/services/databases/postgresql.nix
+++ b/nixos/modules/services/databases/postgresql.nix
@@ -585,7 +585,6 @@ in
};
- # Don't edit the docbook xml directly, edit the md and generate it using md-to-db.sh
meta.doc = ./postgresql.xml;
meta.maintainers = with lib.maintainers; [ thoughtpolice danbst ];
}
diff --git a/nixos/modules/services/databases/postgresql.xml b/nixos/modules/services/databases/postgresql.xml
index 6aa2a3812ffa..2f62d5d80b19 100644
--- a/nixos/modules/services/databases/postgresql.xml
+++ b/nixos/modules/services/databases/postgresql.xml
@@ -1,3 +1,5 @@
+<!-- Do not edit this file directly, edit its companion .md instead
+ and regenerate this file using nixos/doc/manual/md-to-db.sh -->
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="module-postgresql">
<title>PostgreSQL</title>
<para>
diff --git a/nixos/modules/services/desktops/flatpak.nix b/nixos/modules/services/desktops/flatpak.nix
index b08d7db226da..3b14ad75ab30 100644
--- a/nixos/modules/services/desktops/flatpak.nix
+++ b/nixos/modules/services/desktops/flatpak.nix
@@ -7,7 +7,6 @@ let
cfg = config.services.flatpak;
in {
meta = {