5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-05-28 13:05:37 +03:00

skip content in pve-admin-guide.adoc for wiki/man environment

so that scan_adoc_file do not find wrong blockid definitions.
This commit is contained in:
Dietmar Maurer 2016-10-08 16:40:43 +02:00
parent f9599fd507
commit 58cc423cba
2 changed files with 5 additions and 7 deletions

View File

@ -14,6 +14,9 @@ include::attributes.txt[]
:data-uri:
:icons:
ifndef::wiki[]
ifndef::manvolnum[]
// Push titles down one level.
:leveloffset: 1
@ -273,3 +276,5 @@ include::GFDL.adoc[]
:leveloffset: 0
endif::manvolnum[]
endif::wiki[]

View File

@ -14,12 +14,6 @@ my $environments = {
pvelogo => 0, # ignore
};
my $resolve_skip_files = {
default => {},
wiki => { 'pve-admin-guide.adoc' => 1 },
manvolnum => {},
};
my $fileinfo = {};
my $start_env = [];
@ -176,7 +170,6 @@ sub resolve_link_target {
while ($repeat) {
$repeat = 0;
foreach my $fn (keys %$include_hash) {
next if $resolve_skip_files->{$env}->{$fn};
if ($include_hash->{$fn}->{$filename}) {
$filename = $fn;
$repeat = 1;