5
0
mirror of git://git.proxmox.com/git/pve-docs.git synced 2025-02-10 13:57:29 +03:00

generate default output file mappings automatically

This commit is contained in:
Dietmar Maurer 2016-10-14 07:18:04 +02:00
parent cb32a49b5b
commit 194d2f2961
15 changed files with 37 additions and 50 deletions

View File

@ -24,9 +24,9 @@ ifndef::manvolnum[]
Datacenter Configuration
========================
include::attributes.txt[]
:pve-toplevel:
endif::manvolnum[]
ifdef::wiki[]
:pve-toplevel:
:title: Manual: datacenter.cfg
endif::wiki[]

View File

@ -22,10 +22,8 @@ ifndef::manvolnum[]
High Availability
=================
include::attributes.txt[]
endif::manvolnum[]
ifdef::wiki[]
:pve-toplevel:
endif::wiki[]
endif::manvolnum[]
Our modern society depends heavily on information provided by
computers over the network. Mobile devices amplified that dependency,

View File

@ -24,9 +24,9 @@ ifndef::manvolnum[]
Proxmox Container Toolkit
=========================
include::attributes.txt[]
:pve-toplevel:
endif::manvolnum[]
ifdef::wiki[]
:pve-toplevel:
:title: Linux Container
endif::wiki[]

View File

@ -22,10 +22,8 @@ ifndef::manvolnum[]
Proxmox Cluster File System (pmxcfs)
====================================
include::attributes.txt[]
endif::manvolnum[]
ifdef::wiki[]
:pve-toplevel:
endif::wiki[]
endif::manvolnum[]
The Proxmox Cluster file system (``pmxcfs'') is a database-driven file
system for storing configuration files, replicated in real time to all

View File

@ -2,9 +2,9 @@
Bibliography
============
include::attributes.txt[]
ifdef::wiki[]
ifndef::manvolnum[]
:pve-toplevel:
endif::wiki[]
endif::manvolnum[]
[bibliography]
.Books about {pve}

View File

@ -1,8 +1,10 @@
Frequently Asked Questions
==========================
include::attributes.txt[]
ifdef::wiki[]
ifndef::manvolnum[]
:pve-toplevel:
endif::manvolnum[]
ifdef::wiki[]
:title: FAQ
endif::wiki[]

View File

@ -24,9 +24,9 @@ ifndef::manvolnum[]
{pve} Firewall
==============
include::attributes.txt[]
:pve-toplevel:
endif::manvolnum[]
ifdef::wiki[]
:pve-toplevel:
:title: Firewall
endif::wiki[]

View File

@ -1,8 +1,10 @@
Installing Proxmox VE
=====================
include::attributes.txt[]
ifdef::wiki[]
ifndef::manvolnum[]
:pve-toplevel:
endif::manvolnum[]
ifdef::wiki[]
:title: Installation
endif::wiki[]

View File

@ -22,10 +22,8 @@ ifndef::manvolnum[]
Cluster Manager
===============
include::attributes.txt[]
endif::manvolnum[]
ifdef::wiki[]
:pve-toplevel:
endif::wiki[]
endif::manvolnum[]
The {PVE} cluster manager `pvecm` is a tool to create a group of
physical servers. Such a group is called a *cluster*. We use the

View File

@ -23,9 +23,9 @@ ifndef::manvolnum[]
{pve} Storage
=============
include::attributes.txt[]
:pve-toplevel:
endif::manvolnum[]
ifdef::wiki[]
:pve-toplevel:
:title: Storage
endif::wiki[]

View File

@ -24,10 +24,8 @@ ifndef::manvolnum[]
User Management
===============
include::attributes.txt[]
endif::manvolnum[]
ifdef::wiki[]
:pve-toplevel:
endif::wiki[]
endif::manvolnum[]
// Copied from pve wiki: Revision as of 16:10, 27 October 2015

View File

@ -23,10 +23,8 @@ ifndef::manvolnum[]
Qemu/KVM Virtual Machines
=========================
include::attributes.txt[]
endif::manvolnum[]
ifdef::wiki[]
:pve-toplevel:
endif::wiki[]
endif::manvolnum[]
// deprecates
// http://pve.proxmox.com/wiki/Container_and_Full_Virtualization

View File

@ -14,27 +14,7 @@ my $environments = {
pvelogo => 0, # ignore
};
my $fileinfo = {
outfile => {
default => {
"pve-admin-guide.adoc" => "pve-admin-guide.html",
"datacenter.cfg.adoc" => "datacenter.cfg.5.html",
"ha-manager.adoc" => "chapter-ha-manager.html",
"pct.adoc" => "chapter-pct.html",
"pve-bibliography.adoc" => "chapter-pve-bibliography.html",
"pve-firewall.adoc" => "chapter-pve-firewall.html",
"pve-installation.adoc" => "chapter-pve-installation.html",
"pvecm.adoc" => "chapter-pvecm.html",
"pvesm.adoc" => "chapter-pvesm.html",
"pveum.adoc" => "chapter-pveum.html",
"qm.adoc" => "chapter-qm.html",
"sysadmin.adoc" => "chapter-sysadmin.html",
"vzdump.adoc" => "chapter-vzdump.html",
"pmxcfs.adoc" => "chapter-pmxcfs.html",
"pve-faq.adoc" => "chapter-pve-faq.html",
},
},
};
my $fileinfo = {};
my $start_env = [];
foreach my $e (keys %$environments) {
@ -291,9 +271,24 @@ foreach my $e (@$start_env) {
} elsif ($e eq 'manvolnum') {
my $realfn = $fn;
$realfn =~ s/\.adoc$//;
die "toplevel file '$fn' is marhes as manual page!" if !$mansection;
die "toplevel file '$fn' is not marked as manual page!" if !$mansection;
$realfn .= ".$mansection";
$fileinfo->{outfile}->{$e}->{$fn} = $realfn;
} elsif ($e eq 'default') {
my $realfn = $fn;
$realfn =~ s/\.adoc$//;
if (defined($mansection) && ($mansection == 5)) {
$realfn .= ".$mansection";
$realfn = "$realfn.html";
} else {
if (($fn ne 'pve-admin-guide.adoc') &&
$fileinfo->{doctype}->{$e}->{$fn} == 0) {
$realfn = "chapter-$realfn.html";
} else {
$realfn = "$realfn.html";
}
}
$fileinfo->{outfile}->{$e}->{$fn} = $realfn;
}
}
}

View File

@ -2,9 +2,9 @@
Host System Administration
==========================
include::attributes.txt[]
ifdef::wiki[]
ifndef::manvolnum[]
:pve-toplevel:
endif::wiki[]
endif::manvolnum[]
{pve} is based on the famous https://www.debian.org/[Debian] Linux
distribution. That means that you have access to the whole world of

View File

@ -24,10 +24,8 @@ ifndef::manvolnum[]
Backup and Restore
==================
include::attributes.txt[]
endif::manvolnum[]
ifdef::wiki[]
:pve-toplevel:
endif::wiki[]
endif::manvolnum[]
Backups are a requirements for any sensible IT deployment, and {pve}
provides a fully integrated solution, using the capabilities of each