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
|
||||
|
||||
inherit (pkgs.lib) mkOption mkIf;
|
||||
inherit (pkgs.lib) mkOption mkIf types;
|
||||
|
||||
cfg = config.services.nixosManual;
|
||||
|
||||
manual =
|
||||
# We could speed up the evaluation of the manual expression by
|
||||
# providing it the options of the current configuration.
|
||||
import ../../../doc/manual {inherit pkgs options;};
|
||||
manual = import ../../../doc/manual {
|
||||
inherit (cfg) revision;
|
||||
inherit pkgs options;
|
||||
};
|
||||
|
||||
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…
Reference in New Issue
Block a user