]> git.proxmox.com Git - pve-docs.git/commitdiff
skip content in pve-admin-guide.adoc for wiki/man environment
authorDietmar Maurer <dietmar@proxmox.com>
Sat, 8 Oct 2016 14:40:43 +0000 (16:40 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 8 Oct 2016 14:40:43 +0000 (16:40 +0200)
so that scan_adoc_file do not find wrong blockid definitions.

pve-admin-guide.adoc
scan-adoc-refs

index 63a9d3cdbf6fc3c6a7b2082a8444f766347d7610..7118dd1d8ab700fcd08fb4101ca6032a107f774f 100644 (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[]
index 613f282c6b72aa0abdc8c3efd0a3c9032a53d35c..0dd4543c9ad730cb0ec51104568d8726bc22adbc 100755 (executable)
@@ -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;