summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Peveler <matt.peveler@gmail.com>2020-06-02 05:22:47 +0300
committerGitHub <noreply@github.com>2020-06-01 22:22:47 -0400
commita915b93cd679cfe4ec254149f983162ec00f61bb (patch)
treeb8ac898a2d27389549fecbf989874cdf54f2e844
parenta46dcd0f95ac916fdaa7d852270656c3868b6556 (diff)
downloadasciidoc-py3-a915b93cd679cfe4ec254149f983162ec00f61bb.tar.gz
update links for DocBook repository (#122)
The project moved to GitHub from Sourceforge a number of years ago. This updates references to the project to point at this new home and CDN. However, the links in the docbook-xsl/*.xsl files remain pointing at sourceforge as they are reliant on target distros to update their respective catalog.xml to include these new links. Given the huge amount of existing software that will continue to use the SF links, it's unlikely these will break anytime soon at least. Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
-rw-r--r--.gitignore2
-rw-r--r--build_website.sh6
-rw-r--r--dblatex/dblatex-readme.txt2
-rw-r--r--doc/a2x.1.txt2
-rw-r--r--doc/asciidoc.txt2
-rw-r--r--doc/epub-notes.txt2
-rw-r--r--doc/faq.txt4
-rw-r--r--doc/publishing-ebooks-with-asciidoc.txt2
-rw-r--r--docbook-xsl/asciidoc-docbook-xsl.txt4
-rw-r--r--docbook-xsl/htmlhelp.xsl16
10 files changed, 22 insertions, 20 deletions
diff --git a/.gitignore b/.gitignore
index f3b54eb..c822f79 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,6 +20,8 @@ doc/*.svg
doc/*.png
doc/*.1
doc/*.html
+doc/*.xml
+!doc/article-docinfo.xml
# ignore the configure/make products
/autom4te.cache/
diff --git a/build_website.sh b/build_website.sh
index 6dff375..2ee1775 100644
--- a/build_website.sh
+++ b/build_website.sh
@@ -101,11 +101,11 @@ xsltproc --nonet ../docbook-xsl/manpage.xsl asciidoc.1.xml
rm asciidoc.1.xml
${ASCIIDOC} -b xhtml11 -n -a toc -a toclevels=2 -o asciidoc.css-embedded.html asciidoc.txt
-#${A2X} -f epub -d book --epubcheck --icons asciidoc.txt
-${A2X} -fchunked -dbook --icons -D ./ asciidoc.txt
+# ${A2X} -f epub -d book --epubcheck --icons asciidoc.txt
+${A2X} -f chunked -dbook --icons -D ./ asciidoc.txt
mv asciidoc.chunked chunked
-#${A2X} -f epub -d book --epubcheck --icons book.txt
+# ${A2X} -f epub -d book --epubcheck --icons book.txt
${ASCIIDOC} -n -b docbook article.txt
xsltproc --nonet --stringparam admon.textlabel 0 ../docbook-xsl/fo.xsl article.xml > article.fo
diff --git a/dblatex/dblatex-readme.txt b/dblatex/dblatex-readme.txt
index 39bb437..026ef2b 100644
--- a/dblatex/dblatex-readme.txt
+++ b/dblatex/dblatex-readme.txt
@@ -24,7 +24,7 @@ Observed in dblatex 0.2.8.
correctly: it is rendered in a monospaced font and no inline
elements are processed. By default the normal font should be used
and almost all DocBook inline elements should be processed
- (http://www.docbook.org/tdg/en/html/literallayout.html). I almost
+ (https://tdg.docbook.org/tdg/4.5/literallayout.html). I almost
fixed this by overriding the default dblatex literallayout template
(in `./dblatex/asciidoc-dblatex.xsl`) and using the LaTeX 'alltt'
package, but there are remaining problems:
diff --git a/doc/a2x.1.txt b/doc/a2x.1.txt
index 19ee91b..136c572 100644
--- a/doc/a2x.1.txt
+++ b/doc/a2x.1.txt
@@ -282,7 +282,7 @@ REQUISITES
- *xsltproc*: (all formats except text):
http://xmlsoft.org/XSLT/
- *DocBook XSL Stylesheets* (all formats except text):
- http://docbook.sourceforge.net/projects/xsl/
+ https://github.com/docbook/xslt10-stylesheets
- *dblatex* (pdf, dvi, ps, tex formats):
http://dblatex.sourceforge.net/
- *FOP* (pdf format -- alternative PDF file generator):
diff --git a/doc/asciidoc.txt b/doc/asciidoc.txt
index f201ce6..209c4e9 100644
--- a/doc/asciidoc.txt
+++ b/doc/asciidoc.txt
@@ -328,7 +328,7 @@ Toolchain components summary
AsciiDoc::
Converts AsciiDoc (`.txt`) files to DocBook XML (`.xml`) files.
-[[X13]]http://docbook.sourceforge.net/projects/xsl/[DocBook XSL Stylesheets]::
+[[X13]]https://github.com/docbook/xslt10-stylesheets[DocBook XSLT Stylesheets]::
These are a set of XSL stylesheets containing rules for converting
DocBook XML documents to HTML, XSL-FO, manpage and HTML Help files.
The stylesheets are used in conjunction with an XML parser such as
diff --git a/doc/epub-notes.txt b/doc/epub-notes.txt
index 0b942ba..cf108e5 100644
--- a/doc/epub-notes.txt
+++ b/doc/epub-notes.txt
@@ -23,7 +23,7 @@ https://sourceforge.net/tracker/?func=detail&aid=3043393&group_id=21935&atid=373
epub outputs include every section in the table of contents regardless of the
toc.section.depth XSL Stylesheets parameter
-(http://docbook.sourceforge.net/release/xsl/current/doc/html/toc.section.depth.html).
+(https://cdn.docbook.org/release/xsl/snapshot/doc/fo/toc.section.depth.html).
This behavior is specific to epub (xhtml and fo outputs honor
toc.section.depth).
diff --git a/doc/faq.txt b/doc/faq.txt
index e618044..5a72a28 100644
--- a/doc/faq.txt
+++ b/doc/faq.txt
@@ -175,7 +175,7 @@ checks using 'xmllint'.
DocBook has no provision for specifying table of contents levels but
you can set the TOC level further down the toolchain by passing the
DocBook XSL Stylesheets
-http://docbook.sourceforge.net/release/xsl/current/doc/html/toc.section.depth.html[toc.section.depth]
+https://cdn.docbook.org/release/xsl/snapshot/doc/html/toc.section.depth.html[toc.section.depth]
parameter to 'dblatex' (using the `--param` option) or 'xsltproc'
(using the `--stringparam` option). For example to show only chapter
titles in the TOC of a 'book' document set 'toc.section.depth' to '0'.
@@ -1392,7 +1392,7 @@ templates when the DocBook XML is converted to FO XML.
The DocBook XSL attribute that controls what character is added after
a block title is
-http://docbook.sourceforge.net/release/xsl/1.78.1/doc/html/runinhead.default.title.end.punct.html[
+https://cdn.docbook.org/release/xsl/snapshot/doc/html/runinhead.default.title.end.punct.html[
runinhead.default.title.end.punct]. You can override it and eliminate
the default period value by adding the following line to the
`./docbook-xsl/common.xsl` file that ships with AsciiDoc:
diff --git a/doc/publishing-ebooks-with-asciidoc.txt b/doc/publishing-ebooks-with-asciidoc.txt
index 1b17ec6..896b54f 100644
--- a/doc/publishing-ebooks-with-asciidoc.txt
+++ b/doc/publishing-ebooks-with-asciidoc.txt
@@ -113,7 +113,7 @@ wrapper] uses the following programs (most will be available
prepackaged for your Linux distribution):
- http://xmlsoft.org/XSLT/[xsltproc]
-- http://docbook.sourceforge.net/projects/xsl/[DocBook XSL
+- https://github.com/docbook/xslt10-stylesheets[DocBook XSL
Stylesheets]
- http://dblatex.sourceforge.net/[dblatex] (PDF file generator)
- http://xmlgraphics.apache.org/fop/[FOP] (alternative PDF file
diff --git a/docbook-xsl/asciidoc-docbook-xsl.txt b/docbook-xsl/asciidoc-docbook-xsl.txt
index 4f8a83a..295a7d4 100644
--- a/docbook-xsl/asciidoc-docbook-xsl.txt
+++ b/docbook-xsl/asciidoc-docbook-xsl.txt
@@ -21,8 +21,8 @@ To upgrade to the latest docbook-xsl stylesheets without having to
wait for the Debian `docbook-xsl` package:
- Download the latest docbook-xsl tarball from
- http://sourceforge.net/projects/docbook/. Bleeding edge snapshots
- can be found at http://docbook.sourceforge.net/snapshots/
+ https://github.com/docbook/xslt10-stylesheets. Bleeding edge snapshots
+ can be found at https://github.com/docbook/xslt10-stylesheets/releases.
- Unzip the tarball to `/usr/share/xml/docbook/stylesheet/`:
diff --git a/docbook-xsl/htmlhelp.xsl b/docbook-xsl/htmlhelp.xsl
index 7646abd..ef38fa4 100644
--- a/docbook-xsl/htmlhelp.xsl
+++ b/docbook-xsl/htmlhelp.xsl
@@ -15,14 +15,14 @@
<xsl:param name="htmlhelp.hhp" select="'asciidoc.hhp'"/>
<xsl:param name="suppress.navigation" select="1"/>
-<!-- Line break -->
-<xsl:template match="processing-instruction('asciidoc-br')">
- <br/>
-</xsl:template>
+<!-- Line break -->
+<xsl:template match="processing-instruction('asciidoc-br')">
+ <br/>
+</xsl:template>
-<!-- Horizontal ruler -->
-<xsl:template match="processing-instruction('asciidoc-hr')">
- <hr/>
-</xsl:template>
+<!-- Horizontal ruler -->
+<xsl:template match="processing-instruction('asciidoc-hr')">
+ <hr/>
+</xsl:template>
</xsl:stylesheet>