]> git.proxmox.com Git - pve-docs.git/commitdiff
move asciidoc related data into asciidoc subdir
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 19 Oct 2016 06:00:33 +0000 (08:00 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 19 Oct 2016 06:00:33 +0000 (08:00 +0200)
Makefile
asciidoc-dblatex-custom.sty [deleted file]
asciidoc/dblatex-custom.sty [new file with mode: 0644]

index d0474aad239e037adf16de6c10a75c1d5969f95c..4da729f9c5832249430278189d3aa233edce8e1b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -97,7 +97,7 @@ pve-admin-guide.pdf: ${PVE_ADMIN_GUIDE_ADOCDEPENDS} docinfo.xml pve-admin-guide-
        inkscape -z -D --export-pdf=proxmox-logo.pdf images/proxmox-logo.svg
        inkscape -z -D --export-pdf=proxmox-ci-header.pdf images/proxmox-ci-header.svg
        grep ">Release ${DOCRELEASE}<" pve-admin-guide-docinfo.xml || (echo "wrong release in  pve-admin-guide-docinfo.xml" && false);
-       a2x -a docinfo -a docinfo1 -f pdf -L --dblatex-opts "-P latex.output.revhistory=0" --dblatex-opts "-P latex.class.options=12pt" --dblatex-opts "-P doc.section.depth=2 -P toc.section.depth=2" --dblatex-opts "-P doc.publisher.show=0 -s asciidoc-dblatex-custom.sty" pve-admin-guide.adoc
+       a2x -a docinfo -a docinfo1 -f pdf -L --dblatex-opts "-P latex.output.revhistory=0" --dblatex-opts "-P latex.class.options=12pt" --dblatex-opts "-P doc.section.depth=2 -P toc.section.depth=2" --dblatex-opts "-P doc.publisher.show=0 -s asciidoc/dblatex-custom.sty" pve-admin-guide.adoc
        rm proxmox-logo.pdf proxmox-ci-header.pdf
 
 pve-admin-guide.epub: ${PVE_ADMIN_GUIDE_ADOCDEPENDS}
diff --git a/asciidoc-dblatex-custom.sty b/asciidoc-dblatex-custom.sty
deleted file mode 100644 (file)
index 608bf73..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-%%
-%% This style is derived from the docbook one.
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{asciidoc-proxmox}[2016/10/30 AsciiDoc DocBook Style]
-
-% this will set letterpaper, because docbook.sty honors page layout
-% made by geometry package
-%\usepackage[letterpaper,total={7.25in,9.25in}, top=1in]{geometry}
-%\usepackage[a4paper]{geometry}
-
-\usepackage[a4paper, left=2cm, right=1cm, top=2.5cm, bottom=2cm ]{geometry}
-
-%% Just use the original package and pass the options.
-\RequirePackageWithOptions{docbook}
-
-% Sidebar is a boxed minipage that can contain verbatim.
-% Changed shadow box to double box.
-\renewenvironment{sidebar}[1][0.95\textwidth]{
-  \hspace{0mm}\newline%
-  \noindent\begin{Sbox}\begin{minipage}{#1}%
-  \setlength\parskip{\medskipamount}%
-}{
-  \end{minipage}\end{Sbox}\doublebox{\TheSbox}%
-}
-
-% For DocBook literallayout elements, see `./dblatex/dblatex-readme.txt`.
-\usepackage{alltt}
-
-\definecolor{proxmoxred}{RGB}{229, 112, 0}
-\definecolor{proxmoxgrey1}{RGB}{229, 229, 229}
-
-\def\drawtitlepage{
-  \AddToShipoutPicture*{
-    \put(\LenToUnit{0cm},\LenToUnit{2.5cm}){
-      {\color{proxmoxgrey1}\rule{\paperwidth}{22cm}}}
-    \put(\LenToUnit{\dimexpr(\paperwidth-11cm)},
-         \LenToUnit{\dimexpr(\paperheight-3.5cm)}){
-      \includegraphics[width=10cm]{proxmox-logo}}
-  }
-}
-
-% custom cover page
-\def\DBKcover{
-  \thispagestyle{empty}
-  \vspace*{4cm}
-  \sffamily
-  \begin{center}
-    {\Huge \scshape \color{proxmoxred}  \DBKtitle \\[0.5cm]}
-    {\Large \scshape \DBKsubtitle \\[1cm]}
-    {\includegraphics[width=132mm]{proxmox-ci-header} \\}
-  \end{center}
-  \vfill
-  \begin{flushright}
-    {\Large \sffamily
-      \DBKdate \\
-      Proxmox Server Solutions Gmbh \\
-      \color{proxmoxred} www.proxmox.com \\
-    }
-  \end{flushright}
-  \vspace*{1cm}
-  \drawtitlepage
-  \pagebreak[4]
-}
diff --git a/asciidoc/dblatex-custom.sty b/asciidoc/dblatex-custom.sty
new file mode 100644 (file)
index 0000000..608bf73
--- /dev/null
@@ -0,0 +1,64 @@
+%%
+%% This style is derived from the docbook one.
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{asciidoc-proxmox}[2016/10/30 AsciiDoc DocBook Style]
+
+% this will set letterpaper, because docbook.sty honors page layout
+% made by geometry package
+%\usepackage[letterpaper,total={7.25in,9.25in}, top=1in]{geometry}
+%\usepackage[a4paper]{geometry}
+
+\usepackage[a4paper, left=2cm, right=1cm, top=2.5cm, bottom=2cm ]{geometry}
+
+%% Just use the original package and pass the options.
+\RequirePackageWithOptions{docbook}
+
+% Sidebar is a boxed minipage that can contain verbatim.
+% Changed shadow box to double box.
+\renewenvironment{sidebar}[1][0.95\textwidth]{
+  \hspace{0mm}\newline%
+  \noindent\begin{Sbox}\begin{minipage}{#1}%
+  \setlength\parskip{\medskipamount}%
+}{
+  \end{minipage}\end{Sbox}\doublebox{\TheSbox}%
+}
+
+% For DocBook literallayout elements, see `./dblatex/dblatex-readme.txt`.
+\usepackage{alltt}
+
+\definecolor{proxmoxred}{RGB}{229, 112, 0}
+\definecolor{proxmoxgrey1}{RGB}{229, 229, 229}
+
+\def\drawtitlepage{
+  \AddToShipoutPicture*{
+    \put(\LenToUnit{0cm},\LenToUnit{2.5cm}){
+      {\color{proxmoxgrey1}\rule{\paperwidth}{22cm}}}
+    \put(\LenToUnit{\dimexpr(\paperwidth-11cm)},
+         \LenToUnit{\dimexpr(\paperheight-3.5cm)}){
+      \includegraphics[width=10cm]{proxmox-logo}}
+  }
+}
+
+% custom cover page
+\def\DBKcover{
+  \thispagestyle{empty}
+  \vspace*{4cm}
+  \sffamily
+  \begin{center}
+    {\Huge \scshape \color{proxmoxred}  \DBKtitle \\[0.5cm]}
+    {\Large \scshape \DBKsubtitle \\[1cm]}
+    {\includegraphics[width=132mm]{proxmox-ci-header} \\}
+  \end{center}
+  \vfill
+  \begin{flushright}
+    {\Large \sffamily
+      \DBKdate \\
+      Proxmox Server Solutions Gmbh \\
+      \color{proxmoxred} www.proxmox.com \\
+    }
+  \end{flushright}
+  \vspace*{1cm}
+  \drawtitlepage
+  \pagebreak[4]
+}