Commit Graph

59782 Commits

Author SHA1 Message Date
pennae
b59b0230ae nixos-render-docs: add example blocks
this is currently only supported by the docbook exporter, and even the
docbook exporter doesn't do much with them. we mirror the conversion
pandoc did for consistency with the previous manual chapter conversion,
which is to add just an anchor with the given id. future exporters that
go directly to html might want to do more.
2023-02-10 06:40:02 +01:00
pennae
bb6526e0de nixos-render-docs: add generic attributed-block parsing
this is a subset of pandoc's fenced divs. currently we only use this for
admonitions (which get a new name to differentiate them from other kinds
of blocks), but more users will appear soon.
2023-02-10 06:40:02 +01:00
pennae
36b0f53f85 nixos-render-docs: promote compact-list attrs to core rule
rules are a better place for this. since _post_parse is now empty (and
presumably will never grow) we'll remove that as well.
2023-02-10 06:40:02 +01:00
pennae
6cd368870b nixos-render-docs: allow dots in heading ids
this is used by release notes (and we don't want to break links to
those), and is also technically allowed anyway. we will *not* extend the
regex to allow more characters just yet due to a mozilla recommendation
against it (cf https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id)
2023-02-10 06:40:02 +01:00
pennae
fd9f6c7501 nixos-render-docs: promote heading id extraction to a core rule
this should've been a core rule from the beginning. not being a core
rule made it always run after smartquotes and replacements, which
could've wrecked the id.
2023-02-10 06:40:02 +01:00
pennae
4b06b82130 nixos-render-docs: add the .keycap class
this lets us parse the `[F12]{.keycap}` syntax we recently introduced to
the nixos manual markdown sources. the docbook renderer emits the keycap
element for this class, the manpage renderer will reject it because it's
not entirely clear what to do with it: while html has <kbd> mandoc has
nothing of the sort, and with no current occurences in options doc we
don't have to settle on a (potentially bad) way to render these.
2023-02-10 06:40:01 +01:00
pennae
67086639e0 nixos-render-docs: add support for full attributed spans
this is pretty much what pandoc calls bracketed spans. since we only
want to support ids and classes it doesn't seem fair to copy the name,
so we'll call them "attributed span" for now. renderers are expected to
know about *all* classes they could encounter and act appropriately, and
since there are currently no classes with any defined behavior the most
appropriate thing to do for now is to reject all classes.
2023-02-10 06:40:01 +01:00
Nick Cao
8515e2d44f
Merge pull request #215602 from figsoda/codevis
codevis: init at 0.5.1
2023-02-10 12:37:16 +08:00
Uri Baghin
a03c9add95
Merge pull request #215622 from r-ryantm/auto-update/opentelemetry-collector
opentelemetry-collector: 0.70.0 -> 0.71.0
2023-02-10 15:05:21 +11:00
Mario Rodas
7317c03fb1
Merge pull request #215594 from r-ryantm/auto-update/chezmoi
chezmoi: 2.29.4 -> 2.30.0
2023-02-09 22:06:50 -05:00
R. Ryantm
d360df1caa opentelemetry-collector: 0.70.0 -> 0.71.0 2023-02-10 03:03:06 +00:00
Nick Cao
1fce3a7561
Merge pull request #215524 from r-ryantm/auto-update/v2ray
v2ray: 5.2.1 -> 5.3.0
2023-02-10 09:18:17 +08:00
figsoda
44ffdc99f3 codevis: init at 0.5.1 2023-02-09 20:10:35 -05:00
Nick Cao
ccf30f06a8
Merge pull request #215490 from fabaff/msgspec-bump
python310Packages.msgspec: 0.12.0 -> 0.13.0
2023-02-10 09:09:58 +08:00
Nick Cao
f589cd9a32
Merge pull request #215422 from NickCao/stratis
stratisd: 3.5.0 -> 3.5.1
2023-02-10 09:08:04 +08:00
R. Ryantm
8e7775d708 chezmoi: 2.29.4 -> 2.30.0 2023-02-09 23:31:16 +00:00
Wout Mertens
3c6e6c6433
Merge pull request #214337 from hauleth/ft/update-netdata-go.d.plugin-to-0.50.0
netdata-go.d.plugin: from 0.32.3 to 0.50.0
2023-02-09 23:11:47 +01:00
figsoda
15038f976f
Merge pull request #215573 from phile314/cloudinit-rm-maintainer-phile314
cloud-init: remove phile314 as maintainer
2023-02-09 17:01:00 -05:00
Philipp Hausmann
8f972f694f cloud-init: remove phile314 as maintainer 2023-02-09 22:16:44 +01:00
Thomas Gerbet
ce9286c6b6
Merge pull request #215540 from dotlambda/libpgf-7.21.7
libpgf: 7.21.2 -> 7.21.7
2023-02-09 22:06:04 +01:00
R. Ryantm
c257eba8e2 mawk: 1.3.4-20200120 -> 1.3.4-20230203 2023-02-09 12:56:50 -06:00
Aaron Bieber
e2a7510f3d rex: install shell completions 2023-02-09 19:12:21 +01:00
R. Ryantm
a8f2090bc8 epubcheck: 4.2.6 -> 5.0.0 2023-02-09 19:07:44 +01:00
figsoda
bcf5eb3363
Merge pull request #215532 from r-ryantm/auto-update/nb
nb: 7.3.0 -> 7.4.1
2023-02-09 12:52:56 -05:00
Robert Schütz
ac17c2b4b3 pgf_graphics: 6.14.12 -> 7.21.7 2023-02-09 09:17:26 -08:00
R. Ryantm
c4e96134db nb: 7.3.0 -> 7.4.1 2023-02-09 16:17:04 +00:00
R. Ryantm
9693b491de v2ray: 5.2.1 -> 5.3.0 2023-02-09 15:54:21 +00:00
Fabian Affolter
d80fdedd72 ffuf: add changelog to meta 2023-02-09 15:42:54 +01:00
Sandro
bc7b556312
Merge pull request #207988 from MatthewCroughan/mc/repro-get
repro-get: init at 0.2.1
2023-02-09 14:49:25 +01:00
Weijia Wang
f8afa3318c
Merge pull request #215470 from r-ryantm/auto-update/drill
drill: 0.8.1 -> 0.8.2
2023-02-09 14:27:30 +01:00
Weijia Wang
b526fbbb62
Merge pull request #215449 from r-ryantm/auto-update/htop
htop: 3.2.1 -> 3.2.2
2023-02-09 14:25:42 +01:00
Weijia Wang
2a122412ac
Merge pull request #215466 from r-ryantm/auto-update/xrootd
xrootd: 5.5.1 -> 5.5.2
2023-02-09 14:24:37 +01:00
Weijia Wang
2231b67f2c
Merge pull request #215477 from r-ryantm/auto-update/mdbook-katex
mdbook-katex: 0.3.4 -> 0.3.7
2023-02-09 14:17:31 +01:00
Weijia Wang
43a25f3e7d
Merge pull request #215471 from r-ryantm/auto-update/tinyfecvpn
tinyfecvpn: 20210116.0 -> 20230206.0
2023-02-09 14:11:56 +01:00
Weijia Wang
7e287bf0de
Merge pull request #215478 from r-ryantm/auto-update/broot
broot: 1.20.0 -> 1.20.1
2023-02-09 14:08:13 +01:00
Nick Cao
f6634dd372
Merge pull request #215483 from r-ryantm/auto-update/reuse
reuse: 1.1.0 -> 1.1.1
2023-02-09 20:32:55 +08:00
Fabian Affolter
bdf3a9e1cf gallia: relax msgspec constraint 2023-02-09 12:55:51 +01:00
Fabian Affolter
474be6bb29 gallia: add changelog to meta 2023-02-09 12:53:46 +01:00
R. Ryantm
c9ae110cf4 reuse: 1.1.0 -> 1.1.1 2023-02-09 09:55:56 +00:00
R. Ryantm
b3983468c3 broot: 1.20.0 -> 1.20.1 2023-02-09 09:46:14 +00:00
R. Ryantm
6da6a1899b mdbook-katex: 0.3.4 -> 0.3.7 2023-02-09 09:31:29 +00:00
R. Ryantm
679e64a561 tinyfecvpn: 20210116.0 -> 20230206.0 2023-02-09 09:05:12 +00:00
R. Ryantm
997b955af1 drill: 0.8.1 -> 0.8.2 2023-02-09 09:04:26 +00:00
Weijia Wang
deba294d72
Merge pull request #215446 from r-ryantm/auto-update/afterburn
afterburn: 5.3.0 -> 5.4.0
2023-02-09 09:18:43 +01:00
Weijia Wang
697c78634c
Merge pull request #215456 from wegank/afterburn-linux
afterburn: relax platforms
2023-02-09 09:13:37 +01:00
R. Ryantm
246a192a2d xrootd: 5.5.1 -> 5.5.2 2023-02-09 08:10:35 +00:00
Nick Cao
6fa2bfdf4d
Merge pull request #215110 from gador/pgadmin-use-pstgresqltesthook
pgadmin4-desktopmode: init at 6.19, pgadmin4: simplify tests
2023-02-09 16:05:44 +08:00
Weijia Wang
e004f773e7 afterburn: relax platforms 2023-02-09 08:41:01 +01:00
Florian Brandes
a380674d85
pgadmin4: add option to enable desktop mode
By default, pgadmin4 uses SERVER_MODE = True. This requires
access to system directories (e.g. /var/lib/pgadmin). There is
no easy way to change this mode during runtime. One has to change
or add config files withing pgadmin's directory structure to change it
or add a system-wide config file under `/etc/pgadmin`[1].

This isn't always easy to achive or may not be possible at all. For
those usecases this implements a switch in the pgadmin4 derivation and
adds a new top-level package `pgadmin4-desktopmode`. This builds in
DESKTOP MODE and allows the usage of pgadmin4 without the nixOS module
and without access to system-wide directories.

pgadmin4 module saves the configuration to /etc/pgadmin/config_system.py
pgadmin4-desktopmode tries to read that as well. This normally fails with
a PermissionError, as the config file is owned by the user of the pgadmin module.

With the check-system-config-dir.patch this will just throw a warning
but will continue and not read the file.

If we run pgadmin4-desktopmode as root
(something one really shouldn't do), it can read the config file and fail,
because of the wrong config for desktopmode.

[1]https://www.pgadmin.org/docs/pgadmin4/latest/config_py.html

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-02-09 08:19:05 +01:00
Florian Brandes
e4488f5efe pgadmin4: move package tests back into the package
We test pgadmin in nixosTests, because it needs a running postgresql instance.
This is now unnecessary since we can do so in the package itself.

This reduces the complexity of pgadmin and removes the need for the extra
nixosTests.

Also setting SERVER_MODE in `pkg/pip/setup_pip.py` does not have any effect
on the final package, so we remove it.
In NixOS, we use the module, which expects SERVER_MODE to be true (which it defaults to).
In non-NixOS installations, we will need the directory /var/lib/pgadmin and /var/log/pgadmin

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2023-02-09 08:06:52 +01:00