From 8daa83a594a2e98f39d764422bfbdbc62c9efd44 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 19:20:00 +0200 Subject: Adding upstream version 2:4.20.0+dfsg. Signed-off-by: Daniel Baumann --- docs-xml/xslt/docbook2pearson.xsl | 1042 +++++++++++++++++++++++++++++++ docs-xml/xslt/expand-sambadoc.xsl | 177 ++++++ docs-xml/xslt/expand-smbconfdoc.xsl | 191 ++++++ docs-xml/xslt/generate-attributions.xsl | 84 +++ docs-xml/xslt/generate-dependencies.xsl | 36 ++ docs-xml/xslt/html-chunk.xsl | 12 + docs-xml/xslt/html-common.xsl | 85 +++ docs-xml/xslt/html.xsl | 7 + docs-xml/xslt/html/samba.css | 80 +++ docs-xml/xslt/latex.overrides.xml | 9 + docs-xml/xslt/latex.xsl | 64 ++ docs-xml/xslt/latex/samba.sty | 25 + docs-xml/xslt/latex/samba.xsl | 146 +++++ docs-xml/xslt/latex/sambadoc.cls | 324 ++++++++++ docs-xml/xslt/man.xsl | 89 +++ docs-xml/xslt/manpage-summary.xsl | 42 ++ docs-xml/xslt/sambadoc2pearson.xsl | 82 +++ docs-xml/xslt/smb.conf-html.xsl | 103 +++ docs-xml/xslt/strip-references.xsl | 8 + docs-xml/xslt/yodl.xsl | 321 ++++++++++ 20 files changed, 2927 insertions(+) create mode 100644 docs-xml/xslt/docbook2pearson.xsl create mode 100644 docs-xml/xslt/expand-sambadoc.xsl create mode 100644 docs-xml/xslt/expand-smbconfdoc.xsl create mode 100644 docs-xml/xslt/generate-attributions.xsl create mode 100644 docs-xml/xslt/generate-dependencies.xsl create mode 100644 docs-xml/xslt/html-chunk.xsl create mode 100644 docs-xml/xslt/html-common.xsl create mode 100644 docs-xml/xslt/html.xsl create mode 100644 docs-xml/xslt/html/samba.css create mode 100644 docs-xml/xslt/latex.overrides.xml create mode 100644 docs-xml/xslt/latex.xsl create mode 100644 docs-xml/xslt/latex/samba.sty create mode 100644 docs-xml/xslt/latex/samba.xsl create mode 100644 docs-xml/xslt/latex/sambadoc.cls create mode 100644 docs-xml/xslt/man.xsl create mode 100644 docs-xml/xslt/manpage-summary.xsl create mode 100644 docs-xml/xslt/sambadoc2pearson.xsl create mode 100644 docs-xml/xslt/smb.conf-html.xsl create mode 100644 docs-xml/xslt/strip-references.xsl create mode 100644 docs-xml/xslt/yodl.xsl (limited to 'docs-xml/xslt') diff --git a/docs-xml/xslt/docbook2pearson.xsl b/docs-xml/xslt/docbook2pearson.xsl new file mode 100644 index 0000000..196941a --- /dev/null +++ b/docs-xml/xslt/docbook2pearson.xsl @@ -0,0 +1,1042 @@ + + + + + + + + + + + + No template matches + + . + + + + + + + + + + + + + + + + + + + + href="pearson.css" + type="text/css" + + + + Transformed with pearson.xsl by Jochen Hein + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + XXX insert index here + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:apply-templates/> + + + + + + + + + + Removing from p: + + + + + + + + + + + + +

+ + + + +

+
+
+ + + + + + + + + Followed by : + + + + Done Followed by : + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+
+ + + mailto: + + + + + + + + + + + + + + + + () + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + +
+
+ + + + + + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + + + + + + + +
+
+ + +
    + +
  • +
    +
+
+ + + +
    + + + + + + +
+
+ + +
  • +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + ( + + ) + + + + + + + + + + + + + + + + + + + + + -> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +
    + +

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Citation of nonexistent id: + + + [??? + + ] + + + [] + + + + + + +
    + + +
    +
    + + + + Obsolete tag "graphic" found. + + + + + + + + + + + + + + + + + + + + + + + + + % + + + + + + + + + + + + + + + + + + + + + title tag is empty! + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + + + + + + + + + + + + + + + + + + +

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Error: no ID for constraint linkend: + + . + + + + + + Warning: multiple "IDs" for constraint linkend: + + + . + + + + + + + + + + + + + + + + + + + + + XRef to nonexistent id: + + + [??? + + ] + + + Uh, multiple linkends + + + + + + + + Kapitel + + + Abschnitt + + + Abbildung + + + + Listing + + + + Tabelle + + + Anhang + + + + + Can't handle xref to + + : + + + (??? $refelem) + + + + + + + + + + + + + "" + + + + + ()0 + + + + + + + + + + + + + + + + + + + + + ISBN + + + + + + + + + + + + +
    []
    +

    , + + , + + + + + + , + + + .

    + +
    +
    +
    + + +
    + + + +
    +
    + + + + + + + + + + + + + + + + + + + + , + + + + + + , + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + + + + + + + + + + + + + + sect + + + + + + + + table + + + + + + + + figure + + + + + + + + + + + + + + + + + +
    diff --git a/docs-xml/xslt/expand-sambadoc.xsl b/docs-xml/xslt/expand-sambadoc.xsl new file mode 100644 index 0000000..65b22fc --- /dev/null +++ b/docs-xml/xslt/expand-sambadoc.xsl @@ -0,0 +1,177 @@ + + + + + + + + + + + + + + + + + + + + + + + none + + + + + + + = + + + + + + + + + + + + + + + + smb.conf.5.html# + + + + + + + + + Related command: + + + + + + + + + + + + + + + + = + + + + + + + + + + # + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + html + + + images/.png + + + + + + + + 100 + + + + 1 + + + + + + images/.png + + + + + + + + 50 + + + + 1 + + + + latex + + + images/ + + + + + + + diff --git a/docs-xml/xslt/expand-smbconfdoc.xsl b/docs-xml/xslt/expand-smbconfdoc.xsl new file mode 100644 index 0000000..4e788ff --- /dev/null +++ b/docs-xml/xslt/expand-smbconfdoc.xsl @@ -0,0 +1,191 @@ + + + + + + + + + + + + + Related command + + + + + + + + + # + + + + + + + + + + + + + + + + + + + ( + + ) + + + + + + + + + + + + + + + + + + + + Example: + + + + + = + + + + + + + + + + + + + + Default: + + + + + = + + + + + + + + + + + + + + + No default + + + + + + + + + + + + + + + + + + preferred + + + + + + + + + + + + + + + + + + + + + + + + This parameter is a synonym for + + + + + + + . + + + + + + + + + + + + preferred + + + + + + + + + + + + + + + + + + + diff --git a/docs-xml/xslt/generate-attributions.xsl b/docs-xml/xslt/generate-attributions.xsl new file mode 100644 index 0000000..427a740 --- /dev/null +++ b/docs-xml/xslt/generate-attributions.xsl @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + Attribution + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + mailto: + + + + + + + + ( + + ) + + + + + + + + + + diff --git a/docs-xml/xslt/generate-dependencies.xsl b/docs-xml/xslt/generate-dependencies.xsl new file mode 100644 index 0000000..2fe3dd0 --- /dev/null +++ b/docs-xml/xslt/generate-dependencies.xsl @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + -images- = + + + + + + + diff --git a/docs-xml/xslt/html-chunk.xsl b/docs-xml/xslt/html-chunk.xsl new file mode 100644 index 0000000..9598398 --- /dev/null +++ b/docs-xml/xslt/html-chunk.xsl @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/docs-xml/xslt/html-common.xsl b/docs-xml/xslt/html-common.xsl new file mode 100644 index 0000000..86d31a5 --- /dev/null +++ b/docs-xml/xslt/html-common.xsl @@ -0,0 +1,85 @@ + + + + + + + + +text/css + + + + + + + + ..html + + + + + + + + + + + + + + + + + + + + + + + + + + Endterm points to nonexistent ID: + + + ??? + + + + + + + + + + + + + + + + Link element has no content and no Endterm. And linkend's pointer has no title. + Nothing to show in the link to + + + + + + + + + + + + + + + + + + + diff --git a/docs-xml/xslt/html.xsl b/docs-xml/xslt/html.xsl new file mode 100644 index 0000000..b597b29 --- /dev/null +++ b/docs-xml/xslt/html.xsl @@ -0,0 +1,7 @@ + + + + + + + diff --git a/docs-xml/xslt/html/samba.css b/docs-xml/xslt/html/samba.css new file mode 100644 index 0000000..3d926e8 --- /dev/null +++ b/docs-xml/xslt/html/samba.css @@ -0,0 +1,80 @@ +BODY { + font-family: helvetica, arial, lucida sans, sans-serif; + background-color: white; +} + +H1, H2, H3 { + color: blue; + font-size: 120%; + padding: 2px; + margin-top: 0px; +} + +H1 { + background-color: #EEEEFF; + color: blue; +} + +H2 { + background-color: #DDDDFF; + color: blue; +} + +H3 { + background-color: #CCCCFF; + color: blue; +} + +H4 { + color: blue; +} + +TR.qandadiv TD { + padding-top: 1em; +} + +DIV.navhead { + font-size: 80%; +} + +A:link { + color: #36F; +} + +A:visited { + color: #96C; +} + +A:active { + color: #F63; +} + +TR.question { + color: #33C; + font-weight: bold; +} + +TR.question TD { + padding-top: 1em; +} + +DIV.variablelist { + padding-left: 2em; + color: #33C; +} + +P { + color: black; +} + +DIV.note, DIV.warning, DIV.caution, DIV.tip, DIV.important { + border: dashed 1px; + background-color: #EEEEFF; + width: 40em; +} + +PRE.programlisting, PRE.screen { + border: #630 1px dashed; + color: #630; +} + diff --git a/docs-xml/xslt/latex.overrides.xml b/docs-xml/xslt/latex.overrides.xml new file mode 100644 index 0000000..76943b0 --- /dev/null +++ b/docs-xml/xslt/latex.overrides.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/docs-xml/xslt/latex.xsl b/docs-xml/xslt/latex.xsl new file mode 100644 index 0000000..5bc6deb --- /dev/null +++ b/docs-xml/xslt/latex.xsl @@ -0,0 +1,64 @@ + + + + + + + + + + + + + /appendix toc,title + article/appendix nop + /article toc,title + book toc,title,figure,table,example,equation + /chapter toc,title,lop + part toc,title + /preface toc,title + qandadiv toc + qandaset toc + procedure lop + reference toc,title + /sect1 toc + /sect2 toc + /sect3 toc + /sect4 toc + /sect5 toc + /section toc + set toc,title + + + + + +hyperfigures,hyperindex,citecolor=black,urlcolor=black,filecolor=black,linkcolor=black,menucolor=red,pagecolor=black +1 +1 +1 + +{\bfseries } + + +english + + + + + + \includegraphics[scale= + + + + .50 + + ]{ + + } + + diff --git a/docs-xml/xslt/latex/samba.sty b/docs-xml/xslt/latex/samba.sty new file mode 100644 index 0000000..a576898 --- /dev/null +++ b/docs-xml/xslt/latex/samba.sty @@ -0,0 +1,25 @@ +% LaTeX class with Samba-specific commands +% Copyright (C) 2004 Jelmer Vernooij +% Released under the GNU GPL v3 or later + +\newcommand{\smbconfsection}[1]{\emph{#1}} +\newcommand{\smbconfoption}[1]{\index{#1}\emph{#1}} +% smb.conf syntax highlighting +\RequirePackage{listings} +\RequirePackage{xcolor} + +\lstdefinelanguage{smbconf}{ + morecomment=[l]{\#}, +} + +\lstdefinestyle{smbconfblock} +{ + breaklines=true, + backgroundcolor=\color[gray]{0.93}, + frame=single, + frameround=tttt, + prebreak={\space\linebreaksign}, + basicstyle=\small +} + +\newcommand{\linebreaksign}{\hbox{\ensuremath\hookleftarrow}} diff --git a/docs-xml/xslt/latex/samba.xsl b/docs-xml/xslt/latex/samba.xsl new file mode 100644 index 0000000..9fc27e6 --- /dev/null +++ b/docs-xml/xslt/latex/samba.xsl @@ -0,0 +1,146 @@ + + + + + + + \usepackage{samba} + + + + + + = + + + + + + + # + + + + + + + + + + + \smbconfoption{ + + + + } + + + + = + + + + + + + + + \begin{lstlisting}[language=smbconf,style=smbconfblock] + + \end{lstlisting} + + + + \smbconfsection{ + + + + } + + + + + + + + + + + + + \begin{description} + + + + \end{description} + + + + # + + + + + + + + + \section{} + + + + + + \item[{}]\null{} + \index{} + This parameter is a synonym for \smbconfoption{}. + + + \item[{ + ( + + ) + }]\null{} + \index{} + + + + Default: + \emph{ + + + + = + + + + No default + + + } + + + + + + + Example: + \emph{ + = + + } + + + + + + + + diff --git a/docs-xml/xslt/latex/sambadoc.cls b/docs-xml/xslt/latex/sambadoc.cls new file mode 100644 index 0000000..b7f634f --- /dev/null +++ b/docs-xml/xslt/latex/sambadoc.cls @@ -0,0 +1,324 @@ +% $Id$ +% phstyle.cls -- Macros for formatting Prentice-Hall Books +% -- Compiled by J.K. Shultis, Dec. 1993 +% -- Modified and enhanced for LaTeX2e mdh/rlm 1997/02 +% -- Style Modifications Lori Hughes June 2002 +% -- Modifications for Samba by Jelmer Vernooij 2003-2005 + +\NeedsTeXFormat{LaTeX2e}% +\ProvidesClass{sambadoc}[2005/06/13 Samba Documentation class] +\newif\if@ph +\@phfalse +\DeclareOption{ph}{ \@phtrue } +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}} +\ProcessOptions% + +% Base everything on the default class 'report'. +\LoadClass{report}% +%================================================================================ +% 1. Page layout dimensions +% 3. Define new fonts for headings +% 4. Redefines the way "figure" amd "table" are formatted in a \caption +% 5. Defines a \capt macro which defines (1) \captwidth, (2) \captsize +% and \beforetableskip. +% 6. Defines and modifies FANCYHDS.STY for headers and foots +% 7. Change sectioning headings to bold sans serif fonts +% 8. Turn off leader dots in Table of Contents +%====================================================================== + +%====================== Page Layout +% \oddsidemargin 0.750in \evensidemargin 0.750in \textwidth 5.00in +% \topmargin 0.625in \headheight 0.3in \headsep 0.2in +% \textheight 7.3in %\footheight .2in +% \footskip 0.3in +% \parskip 0ex \marginparwidth 1.00in \marginparsep 0.5in +%\setlength\arraycolsep{1pt} + +\if@ph + \RequirePackage{geometry} + \geometry{ + twoside, + openleft, + papersize={7in,9.25in}, + lmargin=.75in, + rmargin=.75in, + bmargin=.625in, + tmargin=.825in, + width=5.5in, + height=7.325in, + marginparwidth=0.35in, + headheight=0.2in, + textwidth=5in, + headsep=.25in, + footskip=.025in} + %\usepackage[letter,cam,cross,center]{crop} +\fi + +%====================== Define special fonts +\newfont{\BIG}{cminch} %--- One-inch font +\newfont{\sfbHuge}{cmssbx10 scaled\magstep5} %-- 25pt sans serif bold +\newfont{\sfblarge}{cmssbx10 scaled\magstep1} %-- 12pt sans serif bold +\newfont{\sfbeleven}{cmssbx10 scaled\magstephalf} %-- 11pt sans serif bold +\newfont{\sfb}{cmssbx10} %-- 10pt sans serif bold +\newfont{\sfeight}{cmss8} %-- 8pt sans serif +\newfont{\sfnine}{cmss8 at 9pt} %-- 9pt sans serif + +\newfont{\defnem}{cmbxti10} %-- 10pt sans serif bold +\def\spacingset#1{\def\baselinestretch{#1}\small\normalsize} + +%-----------Change section heading font sizes here---- +\newfont{\sfbsection}{cmssbx10 at 13pt} +\newfont{\sfbsubsec}{cmssbx10 at 12pt} +\newfont{\sfbsubsub}{cmssbx10 at 11pt} +\newfont{\sfbpara}{cmssbx10} +%--------------------------------------------------- + + +% +% Theorem hack +% + +\def\@begintheorem#1#2{\trivlist + \item[\hskip \labelsep{\bfseries #1\ #2:}]\itshape} + +%===================== Redefine the \@makecaption command + \long\def\@makecaption#1#2{\vskip 10\p@ +%% \setbox\@tempboxa\hbox{#1: #2}% %% original label definition + \setbox\@tempboxa\hbox{\textbf{ \small #1.} \small #2}% %% bold and . instead of : + \ifdim \wd\@tempboxa >\hsize +%% #1: #2\par %% original definition + \textbf{ \small #1.} \small #2\par %% bold and . instead of : + \else + \hbox to\hsize{\hfil\box\@tempboxa\hfil}% %% original +%% \hbox to\hsize{\box\@tempboxa\hfil}% %% no centering + \fi} + +%===================== New caption macro +\newlength{\captsize} \let\captsize=\footnotesize +\newlength{\captwidth} \setlength{\captwidth}{\textwidth} +\newlength{\beforetableskip} \setlength{\beforetableskip}{.5\baselineskip} +\newcommand{\capt}[1]{\begin{minipage}{\captwidth} + \let\normalsize=\captsize + \caption[#1]{#1} + \end{minipage}\\ \vspace{\beforetableskip}} + + +%---------- Change Figure Label +\newcommand{\thefigurename}{Figure} %-- set default: Figure +\def\fnum@figure{\thefigurename\ \thefigure} + +% This is to get the equation numbers in the form (section.equation), +% and to have the equation counter reset every time the section +% counter is incremented. + +\def\theequation{\thechapter.\arabic{equation}} +\@addtoreset{equation}{chapter} + +\RequirePackage{fancyhdr} + +%------------------- Modify Headers for Prentice-Hall Book Style +%---------- Setup headers and footers +\pagestyle{fancyplain} + +%--- Redefine Headers +\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}} +% +\lhead[\fancyplain{}{\bf\thepage}]{\fancyplain{}{\sfnine\rightmark}} +% +%\rhead[\fancyplain{}{\footnotesize\sf\CHHEAD}]{\fancyplain{}{\bf\thepage}} + \rhead[\fancyplain{}{\sfnine \leftmark}]{\fancyplain{}{\bf\thepage}} +%--- Empty footers on every page (except initial chapter page which has +%--- page number) and optionally a small date stamp +\cfoot[\fancyplain{}{}]{\fancyplain{}{}} +\rfoot[\fancyplain{}{}]{\fancyplain{\hspace{\fill}\\ \bf\thepage}{}} +\lfoot[\fancyplain{\hspace{\fill}\\ \bf\thepage}{}]{\fancyplain{}{}} +%-- replace the two lines above with the two below for a date stamp footer +%\rfoot[\fancyplain{\scriptsize \today}{\scriptsize \today}]{\fancyplain{\bf\thepage}{}} +%\lfoot[\fancyplain{\bf\thepage}{}]{\fancyplain{\scriptsize \today}{\scriptsize \today}} +%--- Change format of section header +% +% rlm added chaptermark 10/11/96 +\def\sectionmark#1{\markright{\ifnum \c@secnumdepth >\z@ + {\sfeight Section}~\thesection.\quad \fi #1}} +\def\sectionsmark#1{\markright{#1}{#1}} +% +\def\chaptermark#1{\markboth{#1 \quad \@chapapp{}~\thechapter}{}} +\def\chaptersmark#1{\markboth{#1}{#1}} + + +%===================== Change Section Heads to Bold Sans Serif +% Create bolds sans serif sectioning headings. Also the headings have +% been reduced in size with less space before and after the heading. +% Modified from macros given in BK10.STY +% +%----------------------------- part --------------------------------- +\def\@part[#1]#2{% + \thispagestyle{empty} + \ifodd\c@page\hbox{}\else\clearpage\fi + \addtocounter{page}{-2} + \thispagestyle{empty} + \ifnum \c@secnumdepth >-2\relax + \refstepcounter{part}% + \addcontentsline{toc}{part}{Part \thepart\hspace{1em}#1}% + \else + \addcontentsline{toc}{part}{Part #1}% + \fi + {\centering + \interlinepenalty \@M + \normalfont + \ifnum \c@secnumdepth >-2\relax + \huge\bfseries \partname\nobreakspace\thepart + \par + \vskip 20\p@ + \fi + \Huge \bfseries #2\par}% + \@endpart} + +%------------------------- appendix ----------------------------------- + +\let\oldappendix\appendix +\def\appendix{\oldappendix\def\addchaptertoloe{}} + +%------------------------- chapter ----------------------------------- +\def\addchaptertoloe{% + \addtocontents{loe}{\protect\addvspace{14pt}}% + \addtocontents{loe}{\noindent {\bfseries Chapter~\thechapter}\protect\par}% + \addtocontents{loe}{\protect\addvspace{10pt}}% +} + +\def\chapter{\clearpage \thispagestyle{plain} \global\@topnum\z@ +\@afterindentfalse \secdef\@chapter\@schapter} +\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne + \refstepcounter{chapter} + \typeout{\@chapapp\space\thechapter.} + \addcontentsline{toc}{chapter}{Chapter~\protect + \numberline{\thechapter}\uppercase{#1}}\else + \addcontentsline{toc}{chapter}{Chapter~\uppercase{#1}}\fi + \chaptermark{#1} + \addchaptertoloe + \addtocontents{lof}{\protect\addvspace{10pt}} +\addtocontents{lot}{\protect\addvspace{10pt}} \if@twocolumn +\@topnewpage[\@makechapterhead{#2}] + \else \@makechapterhead{#2} + \@afterheading \fi} +% +\def\@schapter#1{\if@twocolumn \@topnewpage[\@makeschapterhead{#1}] + \else \@makeschapterhead{#1}\chaptersmark{#1} + \@afterheading\fi\addcontentsline{toc}{chapter}{\uppercase{#1}}} + + + +\def\@makechapterhead#1{\vspace*{-20pt}{\parindent0pt\raggedright +\ifnum\c@secnumdepth>\m@ne\LARGE\sf\@chapapp{}~\thechapter\par +\vskip3pt\hrule\vskip3pt\hrule +\vskip30pt\fi\raggedright\Huge\sfbHuge\uppercase{#1}\par +\nobreak\vskip70pt}}%\chaptermark{#1}} + +\def\@makeschapterhead#1{\vspace*{4pt}{\parindent0pt +\vskip3pt\hrule\vskip3pt\hrule +\vskip36pt\raggedright\Huge\sfbHuge\uppercase{#1}\par +\nobreak\vskip70pt}}%\chaptersmark{#1}} +\widowpenalty=1000 +\clubpenalty=1000 + +%------------------------ section ----------------------------------- +\def\section{\@startsection{section}{1}{\z@}{-3.5ex plus-1ex + minus -.2ex}{1.8ex}{\sfbsection}} + +%--------------------- subsection ----------------------------------- +\def\subsection{\@startsection{subsection}{2}{\z@}{-2.75ex plus -1ex + minus -.2ex}{1.2ex}{\sfbsubsec}} + +%-------------------- subsubsection -------------------------------- +\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-2.75ex + plus -1ex minus -.2ex}{1.2ex}{\sfbsubsub}} + +%----------------------- paragraph ---------------------------------- +\def\paragraph{\@startsection{paragraph}{4}{\z@}{1.25ex plus + 1ex minus .2ex}{-1em}{\sfbpara}} + +%---------------------- subparagraph -------------------------------- +\def\subparagraph{\@startsection{subparagraph}{4}{\parindent}{1.25ex + plus 1ex minus .2ex}{-1em}{\normalsize\sfb}} + + + +%====================== Turn off leader dots in Table of Contents +\renewcommand{\@dotsep}{500} + +\def\tableofcontents{\markboth{}{}\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn + \fi\thispagestyle{plain} \@makeschapterhead{Contents} + \@afterheading + \chaptersmark{Contents} + \sectionsmark{Contents} + \@starttoc{toc}\if@restonecol\twocolumn\fi} + + +\def\thebibliography#1{\chapter*{Bibliography}\list +% \addcontentsline{toc}{chapter}{Bibliography} + {[\arabic{enumi}]}{\settowidth\labelwidth{2em}\leftmargin\labelwidth +% \advance\leftmargin\labelsep + \usecounter{enumi}} + \def\newblock{\hskip .11em plus .33em minus .07em} + \sloppy\clubpenalty4000\widowpenalty4000 + \sfcode`\.=1000\relax} +\let\endthebibliography=\endlist + + +%% BIBLIOGRAPHY +% +%% separate citations with "], [" +\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi +\def\@citea{}\@cite{\@for\@citeb:=#2\do {\@citea\def\@citea{], +[}\@ifundefined {b@\@citeb}{{\bf ?}\@warning {Citation `\@citeb' on +page \thepage \space undefined}}% +{\csname b@\@citeb\endcsname}}}{#1}} + +\def\@cite#1#2{[{#1\if@tempswa, #2\fi}]} + + +%% index + +\def\theindex{\cleardoublepage\@restonecoltrue\if@twocolumn\@restonecolfalse\fi +\columnseprule \z@ +\columnsep 35pt\twocolumn[\@makeschapterhead{Subject Index}] + \chaptersmark{Subject Index}% + \addcontentsline{toc}{chapter}{SUBJECT INDEX} + \thispagestyle{plain}\parindent\z@ + \parskip\z@ plus .3pt\relax\let\item\@idxitem} + + +\renewcommand{\cleardoublepage}{\clearpage\if@twoside \ifodd\c@page\else +\hbox{}\thispagestyle{empty}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi} + +\renewcommand{\numberline}[1]{\sbox\@tempboxa{#1\hspace{2pt}}% + \ifdim\wd\@tempboxa>\@tempdima \else \wd\@tempboxa\@tempdima\fi + \box\@tempboxa} + +% Custom list of examples +\def\listofexamples{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn + \fi\chapter*{List of Examples} + \renewcommand\@pnumwidth{0em} + \@starttoc{loe}\if@restonecol + \twocolumn\fi} + +\def\l@example{\noindent\@dottedtocline{1}{0em}{3.5em}} + +\renewcommand\listfigurename{\uppercase{List Of Figures}} +\renewcommand\listtablename{\uppercase{List Of Tables}} + +\setlength{\emergencystretch}{0cm} + + +\cleardoublepage +\pagenumbering{roman} + +\setcounter{page}{2} +\setcounter{totalnumber}{8} +\setcounter{bottomnumber}{3} +\setcounter{topnumber}{3} +\renewcommand{\textfraction}{0.1} +\renewcommand{\topfraction}{1.0} +\renewcommand{\bottomfraction}{1.0} + +\RequirePackage{samba} diff --git a/docs-xml/xslt/man.xsl b/docs-xml/xslt/man.xsl new file mode 100644 index 0000000..e252b56 --- /dev/null +++ b/docs-xml/xslt/man.xsl @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + : + + + + + + + + + + + + .PP + + + + + + + + + + + .RS + + + .sp + .RE + + + + + .SS " + + " + + + + + + + + + + n + .ie + + \{\ + + + + n + .if + + \{\ + + + + .\} + .el \{\ + + + + .\} + + + diff --git a/docs-xml/xslt/manpage-summary.xsl b/docs-xml/xslt/manpage-summary.xsl new file mode 100644 index 0000000..59bf6dc --- /dev/null +++ b/docs-xml/xslt/manpage-summary.xsl @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + ..html + + () + + + + + + + + + + + + + + + + diff --git a/docs-xml/xslt/sambadoc2pearson.xsl b/docs-xml/xslt/sambadoc2pearson.xsl new file mode 100644 index 0000000..6100889 --- /dev/null +++ b/docs-xml/xslt/sambadoc2pearson.xsl @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + = + + + + + + + + + + +
    + + + + + + + + + + + + +
    +
    + + + # + + + + + Encountered <member> element inside of smbconfblock! + + + + + + + + + + = + + + + + + + + + + + + + + +
    diff --git a/docs-xml/xslt/smb.conf-html.xsl b/docs-xml/xslt/smb.conf-html.xsl new file mode 100644 index 0000000..fe1a1cc --- /dev/null +++ b/docs-xml/xslt/smb.conf-html.xsl @@ -0,0 +1,103 @@ + + + + + + + + + + + + + smb.conf.xsl + stylesheet + text/css + + + + + + + + + + + + + context + Context: + + + Share-specific + + + + Global + + + + Unknown value for context attribute : + + + + + + + type + Type: + + + + + synonyms + Synonyms: + + , + + + + + + + value + + + Default value + + + Example value + + + + : + + + + + + + + description + + + + + + + + + + + + + diff --git a/docs-xml/xslt/strip-references.xsl b/docs-xml/xslt/strip-references.xsl new file mode 100644 index 0000000..56b782a --- /dev/null +++ b/docs-xml/xslt/strip-references.xsl @@ -0,0 +1,8 @@ + + + + + + + diff --git a/docs-xml/xslt/yodl.xsl b/docs-xml/xslt/yodl.xsl new file mode 100644 index 0000000..d33cdd6 --- /dev/null +++ b/docs-xml/xslt/yodl.xsl @@ -0,0 +1,321 @@ + + + + + + + + + manpage( + + )()( + + )(package)() + + + + + + article( + + )( + FIXME + )( + + ) + + + + + report( + + )( + FIXME + )( + + ) + + + + + book( + + )( + FIXME + )( + + ) + + + + + + + chapter( + + ) + + + lchapter( + + )( + + ) + + + + + + + + ( + + ) + + + + + + + + + paragraph( + + ) + + + + + part( + + ) + + + + + nchapter( + + ) + + + + + " + + " + + + + code( + + ) + + + + em( + + ) + + + + bf( + + ) + + + + manpagename( + + )( + + ) + + + + manpagesynopsis() + + + + + + manpagedescription() + + + manpageoptions() + + + manpagefiles() + + + manpageseealso() + + + manpagediagnostics() + + + manpagebugs() + + + manpageauthor() + + + manpagesection( + + ) + + + + + + + startdit() + + dit() + + + + + + enddit() + + + + startit() + + it() + + + + + + endit() + + + + startdit() + + dit( + + + + ) + + + + enddit() + + + + label( + + ) + + + + footnote( + + ) + + + + gettocstring() + + + + + url( + + )( + + ) + + + + lref( + + )( + + ) + + + + printindex() + + + + + + sect( + + + lsect( + + )( + + + + ) + + + + + + + subsect( + + + lsubsect( + + )( + + + + ) + + + + + + + subsubsect( + + + lsubsubsect( + + )( + + + + ) + + + + + + + subsubsubsect( + + + lsubsubsubsect( + + )( + + + + ) + + + + + + -- cgit v1.2.3