Add an option to change the policy of source file links inside the manual.
The default policy use local files instead of remote ones. svn path=/nixos/trunk/; revision=17258
This commit is contained in:
parent
f563438264
commit
0e3981213f
@ -7,14 +7,14 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
|
|
||||||
inherit (pkgs.lib) mkOption mkIf;
|
inherit (pkgs.lib) mkOption mkIf types;
|
||||||
|
|
||||||
cfg = config.services.nixosManual;
|
cfg = config.services.nixosManual;
|
||||||
|
|
||||||
manual =
|
manual = import ../../../doc/manual {
|
||||||
# We could speed up the evaluation of the manual expression by
|
inherit (cfg) revision;
|
||||||
# providing it the options of the current configuration.
|
inherit pkgs options;
|
||||||
import ../../../doc/manual {inherit pkgs options;};
|
};
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
@ -51,6 +51,16 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.nixosManual.revision = mkOption {
|
||||||
|
default = "local";
|
||||||
|
type = types.uniq types.string;
|
||||||
|
description = ''
|
||||||
|
Revision of the targeted source file. This value can either be
|
||||||
|
<literate>"local"</literate>, <literate>"HEAD"</literate> or any
|
||||||
|
revision number embedded in a string.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user