Commit Graph

182 Commits

Author SHA1 Message Date
Nick Cao
a74f695255
Merge pull request #210864 from peng1999/nix-info-patch
nix-info: fix error when no channel installed
2023-01-31 18:10:55 +08:00
Peng Guanwen
ffe9031129
Use buitins.currentSystem 2023-01-31 17:56:23 +08:00
pennae
5b6dcece88
Merge pull request #212684 from pennae/nixos-render-docs
nixos-render-docs: init, use for some manual rendering to docbook
2023-01-30 19:26:07 +01:00
figsoda
44187e2a04 nix-init: init at 0.1.0 2023-01-28 15:22:29 -05:00
pennae
8b8670db10 nixos-render-docs: add manual chapter rendering support
this is not yet able to produce manual-combined.xml, but the intention
is to add that support before too long. for now we'll concentrate on
getting the basics working: concatenating a list of chapters into a
manual-combined fragment, which will be rendered via docbook.
2023-01-27 20:07:34 +01:00
pennae
4e2e950ab1 nixos-render-docs: compact lists support
previously we did not detect whether lists were supposed to be compact
or not. this will make a difference for manual chapters, so let's stop
not doing that.
2023-01-27 20:07:34 +01:00
pennae
8e3b2a4eaa nixos-render-docs: add heading id support
as with inline spans we support only ids being set for heading, not
arbitrary attributes or classes.
2023-01-27 20:07:34 +01:00
pennae
82d5698e22 nixos-render-docs: add headings and ordered lists
headings are not supported in options docs (since it's unclear what that
would be in the final manual, and the docbook stylesheets already have
trouble rendering all docbook constructs correctly). ordered lists
should be supported, but obviously nothing uses them yet.
2023-01-27 20:07:34 +01:00
pennae
00a1b41c3b nixos-render-docs: add html comment plugins
options do not use comments, but a number of manual chapters do. since
we don't want to enable html just so we can then inspect the html and
figure out whether it's a comment we'll instead add a plugin that
detects comments natively.
2023-01-27 20:07:34 +01:00
pennae
6829c6c335 nixos-render-docs: add inline anchor plugin
supports the […]{#id} inline anchor syntax. other features of bracketed
spans are intentionally not supported.
2023-01-27 20:07:34 +01:00
pennae
41a5c3a93d nixos-render-docs: prepare for plugins
we will soon add plugins to this tool to support nixos markdown features
that aren't readily supported with markdown-it plugins. since we will
have to test these plugin we'll need access to the parser, and since
we'll also want to add functions that require postprocessing of a parsed
token stream we also add the necessary hooks now.
2023-01-27 20:07:34 +01:00
pennae
c2e638391e nixos-render-docs: use only one container plugin instance
with some fiddling and custom validation logic we can avoid needing
multiple instances of this plugin. originally this wasn't done because
it does need a type stack to emit correct docbook, but since we can
easily do that now we may as well.
2023-01-27 20:07:34 +01:00
pennae
7605068000 nixos-render-docs: add tip and caution admonitions 2023-01-27 20:07:34 +01:00
pennae
e8c5618b67 nixos-render-docs: add some better CLI infrastructure
using environment variables isn't great once multiple input or output
formats get involved (which will happen soon). now is a good time to set
a pattern for future converters.
2023-01-27 20:07:34 +01:00
pennae
e0596e0940 nixos-render-docs: generalize option converter
while we won't have other converters (with other output formats) for a
while yet it still seems like a good idea to generalize *now* so we have
a pattern to follow.
2023-01-27 20:07:34 +01:00
pennae
ccb586299d nixos-render-docs: move options conversion to options module 2023-01-27 20:07:34 +01:00
pennae
aa3fd2865b nixos-render-docs: move some options helpers to new module 2023-01-27 20:07:33 +01:00
pennae
c63a550e7b nixos-render-docs: don't use env for renderer state
since we keep the renderer around for a long time we don't need to stick
renderer state into env, we can use the renderer instance itself instead.
2023-01-27 20:07:33 +01:00
pennae
1016b727a8 nixos-render-docs: add Renderer base class 2023-01-27 20:07:33 +01:00
pennae
5e37d9f29e nixos-render-docs: improve type annotations in docbook 2023-01-27 20:07:33 +01:00
pennae
a4ec68a777 nixos-render-docs: move docbook renderer to docbook module 2023-01-27 20:07:33 +01:00
pennae
986e48ca22 nixos-render-docs: move escaping functions to new modules
these modules will be extended with more functionality. md will
ultimately contain MD-related code such as parsers and converter base
classes. docbook will contain renderers.
2023-01-27 20:07:33 +01:00
pennae
be6a25368f nixos-render-docs: init from optionsToDocbook.py
this new package shall eventually contain the rendering code necessary
to produce the entirety of the nixos (not nixpkgs) manual, in all of its
various output formats.
2023-01-27 20:07:33 +01:00
Jonas Heinrich
da778757da
Merge pull request #211958 from figsoda/nixpkgs-hammering
nixpkgs-hammering: init at unstable-2022-11-15
2023-01-22 07:08:15 +01:00
figsoda
63ff217996 nixpkgs-hammering: init at unstable-2022-11-15 2023-01-21 11:26:21 -05:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
Peng Guanwen
8bda2c3acc nix-info: fix error when no channel installed
The nix-info script fails when user only use flake.
This patch use the new nix CLI when old fails.
2023-01-15 09:28:20 +00:00
Silvan Mosberger
b3792b44c5 lib: correctly render docs for nested identifiers
Applies https://github.com/nix-community/nixdoc/pull/27 and fixes up the
location information rendering, allowing lib functions to be nested in
further scopes

Needed for later commits
2022-12-23 21:10:16 +01:00
maralorn
f2135573fb nix-output-monitor: 2.0.0.4 -> 2.0.0.5
https://github.com/maralorn/nix-output-monitor/releases/tag/v2.0.0.5
2022-11-28 00:33:37 +01:00
maralorn
eec3739249 nix-output-monitor: 2.0.0.3 -> 2.0.0.4
https://github.com/maralorn/nix-output-monitor/releases/tag/v2.0.0.4
2022-11-21 06:21:55 +01:00
Mario Rodas
77230193fc
Merge pull request #196347 from aaronjheng/nix-store-gcs-proxy
nix-store-gcs-proxy: use buildGoModule
2022-10-28 07:13:55 -05:00
piegames
67cd3c6b65 npins: 0.1.0 → 0.2.0 2022-10-27 23:26:11 +02:00
maralorn
22250fdc68 nix-output-monitor: 2.0.0.2 -> 2.0.0.3 2022-10-25 20:58:39 +02:00
Luna Nova
a824a8ec3e
nix-output-monitor: set meta.mainProgram
Fixes `error: unable to execute '/nix/store/arrb5j23znf00p1i0kvd9bmb7ddamlxx-nix-output-monitor-2.0.0.2/bin/nix-output-monitor': No such file or directory` with nix run
2022-10-21 17:48:24 -07:00
maralorn
0c244fd4cb nix-output-monitor: 2.0.0.1 -> 2.0.0.2 2022-10-19 01:40:48 +02:00
maralorn
7db45269d6 nix-output-monitor: 2.0.0.0 -> 2.0.0.1 2022-10-18 03:42:02 +02:00
Aaron Jheng
6154d63d4c
nix-store-gcs-proxy: use buildGoModule 2022-10-17 03:30:31 +00:00
maralorn
c76bbaa0f5 nix-output-monitor: 1.1.3.0 -> 2.0.0.0 2022-10-15 15:28:37 +02:00
Jamie Quigley
d6ed6a2b8b
alejandra: 2.0.0 -> 3.0.0
Also add self as maintainer
2022-08-16 14:31:58 +01:00
lassulus
f8ec6c6c85 nixos-generators: 1.6.0 -> 1.7.0 2022-08-11 14:20:44 +02:00
kilianar
5eb9bf5565 alejandra: 1.5.0 -> 2.0.0 2022-07-14 17:46:49 +10:00
Mario Rodas
7ca32cf434
Merge pull request #178834 from kamadorueda/alejandra-update
alejandra: 1.4.0 -> 1.5.0
2022-06-24 19:37:13 -05:00
kilianar
6eb44e6fce nar-serve: 0.4.0 -> 0.6.1 2022-06-24 10:50:56 +02:00
Kevin Amado
ba29e6d5b4
alejandra: 1.4.0 -> 1.5.0 2022-06-24 00:05:43 -06:00
Kevin Amado
6ec6afde81
nixel: init at 4.1.0 2022-06-23 15:54:39 -06:00
kilianar
970cd2643d statix: 0.5.4 -> 0.5.6 2022-06-19 21:32:01 +10:00
kilianar
2387396258 nixpkgs-fmt: 1.2.0 -> 1.3.0
- [Commits](https://github.com/nix-community/nixpkgs-fmt/compare/v1.2.0...v1.3.0)
2022-06-18 06:14:46 +02:00
lassulus
b79667a20d nixos-generators: 1.5.0 -> 1.6.0 2022-05-24 20:45:37 +02:00
Kevin Amado
27bfb7cfb9
alejandra: 1.2.0 -> 1.4.0 2022-05-19 09:39:10 -06:00
piegames
744ca87ed0 npins: Init at 0.1.0 2022-05-17 18:24:54 +02:00