From 3be9a355ff2ab1f11dbf07542ae9ed2c013854cc Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Thu, 24 Apr 2008 23:40:51 +0400 Subject: [PATCH] Fix documentation build: manpages, links in the HTML documents. Fixed manpages generation to properly create handle smb.conf parameters' titles Changed HTML generator to include links for every smb.conf parameter. Now we have correct linking between different HTML documents. Signed-off-by: Alexander Bokovoy (This used to be commit 056935ff1f5fefc3ca42f7006182fc80c94d91ab) --- docs-xml/Makefile | 6 +-- docs-xml/configure.ac | 2 +- docs-xml/smbdotconf/generate-file-list.sh | 4 +- docs-xml/xslt/expand-sambadoc.xsl | 13 ++++--- docs-xml/xslt/expand-smbconfdoc.xsl | 63 ++++++++++++++++++++----------- docs-xml/xslt/html-common.xsl | 2 +- docs-xml/xslt/man.xsl | 2 + 7 files changed, 57 insertions(+), 35 deletions(-) diff --git a/docs-xml/Makefile b/docs-xml/Makefile index 1e4121053d8..0f401d6c456 100644 --- a/docs-xml/Makefile +++ b/docs-xml/Makefile @@ -59,7 +59,7 @@ clean: rm -f $(patsubst %.svg,%.png,$(foreach DOC,$(MAIN_DOCS),$($(DOC)-images-latex-dia))) \ $(patsubst %.svg,%.pdf,$(foreach DOC,$(MAIN_DOCS),$($(DOC)-images-latex-svg))) \ $(patsubst %.svg,%.eps,$(foreach DOC,$(MAIN_DOCS),$($(DOC)-images-latex-svg))) - rm -f *.xml *.d *.tpt *.tex *.loc *.toc *.lof *.glo *.idx *.aux + rm -f *-attributions.xml *.d *.tpt *.tex *.loc *.toc *.lof *.glo *.idx *.aux rm -f *-images-html* rm -f *-images-latex-* latexfigures rm -f xslt/figures/*pdf @@ -92,11 +92,11 @@ validate: $(addsuffix -validate,$(MAIN_DOCS)) $(DOCBOOKDIR)/%.xml: %/index.xml xslt/expand-sambadoc.xsl @echo "Converting Samba-specific tags for $*..." @mkdir -p $(@D) - $(XSLTPROC) --stringparam latex.imagebasedir "$*/" --stringparam noreference 1 --xinclude --output $@ xslt/expand-sambadoc.xsl $< + $(XSLTPROC) --stringparam latex.imagebasedir "$*/" --stringparam noreference 0 --xinclude --output $@ xslt/expand-sambadoc.xsl $< $(DOCBOOKDIR)/manpages-3/%.xml: $(MANPAGEDIR3)/%.xml xslt/expand-sambadoc.xsl @mkdir -p $(@D) - $(XSLTPROC) --xinclude --stringparam noreference 1 --output $@ xslt/expand-sambadoc.xsl $< + $(XSLTPROC) --xinclude --stringparam noreference 0 --output $@ xslt/expand-sambadoc.xsl $< $(DOCBOOKDIR)/manpages-3/index.xml: $(MANPAGES3) xslt/manpage-summary.xsl @mkdir -p $(@D) diff --git a/docs-xml/configure.ac b/docs-xml/configure.ac index 97c2b2201fe..c0d66867424 100644 --- a/docs-xml/configure.ac +++ b/docs-xml/configure.ac @@ -94,4 +94,4 @@ fi AC_SUBST(TARGETS) -AC_OUTPUT( Makefile.settings) +AC_OUTPUT( Makefile.settings build/catalog.xml) diff --git a/docs-xml/smbdotconf/generate-file-list.sh b/docs-xml/smbdotconf/generate-file-list.sh index 262830de4ba..68b2abe72fc 100755 --- a/docs-xml/smbdotconf/generate-file-list.sh +++ b/docs-xml/smbdotconf/generate-file-list.sh @@ -8,12 +8,12 @@ fi OLD=`pwd` cd $DIR -echo "" +echo "
" for I in `find . -mindepth 2 -type f -name '*.xml' | sort -t/ -k3 | xargs` do echo "" done -echo "" +echo "
" cd $OLD diff --git a/docs-xml/xslt/expand-sambadoc.xsl b/docs-xml/xslt/expand-sambadoc.xsl index 5b539df54a5..2b881490f4f 100644 --- a/docs-xml/xslt/expand-sambadoc.xsl +++ b/docs-xml/xslt/expand-sambadoc.xsl @@ -7,6 +7,7 @@ --> @@ -21,7 +22,7 @@ - + @@ -45,10 +46,12 @@ + - + + smb.conf.5.html# @@ -58,7 +61,7 @@ Related command: - + @@ -100,9 +103,9 @@ - + - + diff --git a/docs-xml/xslt/expand-smbconfdoc.xsl b/docs-xml/xslt/expand-smbconfdoc.xsl index 5472d61a9af..3e3dbe19fbb 100644 --- a/docs-xml/xslt/expand-smbconfdoc.xsl +++ b/docs-xml/xslt/expand-smbconfdoc.xsl @@ -53,11 +53,11 @@ - - - - + + + + @@ -120,8 +120,7 @@ - - + preferred @@ -133,7 +132,7 @@ - + @@ -141,28 +140,46 @@ - - This parameter is a synonym for . + + + + + This parameter is a synonym for + + + + + + + . + + + + - - - - - preferred - - - + + + + preferred + + + + + + + + + + + + + - - - - - - + diff --git a/docs-xml/xslt/html-common.xsl b/docs-xml/xslt/html-common.xsl index b584214cd71..d2609d5c5b9 100644 --- a/docs-xml/xslt/html-common.xsl +++ b/docs-xml/xslt/html-common.xsl @@ -10,7 +10,7 @@ - + text/css diff --git a/docs-xml/xslt/man.xsl b/docs-xml/xslt/man.xsl index 99b2112cb3a..e259004330c 100644 --- a/docs-xml/xslt/man.xsl +++ b/docs-xml/xslt/man.xsl @@ -1,6 +1,7 @@ @@ -8,6 +9,7 @@ +