Skip to content

Commit aa7acd9

Browse files
committed
Merge branch '3.3.x'
2 parents c66df73 + 49ceb10 commit aa7acd9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+47
-86
lines changed

Diff for: .github/workflows/tests.yml

+36-3
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ on:
1111
- '[34].[0-9]+.x'
1212

1313
jobs:
14-
build:
14+
build-dev-docs:
15+
name: 'Build development docs'
1516
runs-on: ubuntu-latest
1617
steps:
17-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1819
- name: Set up Python
19-
uses: actions/setup-python@v2
20+
uses: actions/setup-python@v4
2021
with:
2122
python-version: '3.x'
2223
- name: Install dependencies
@@ -31,3 +32,35 @@ jobs:
3132
run: |
3233
cd development
3334
make html
35+
36+
build-user-docs-pdf:
37+
name: 'Build user docs PDF'
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v4
41+
- name: Install fop
42+
run: |
43+
sudo apt-get install -y fop
44+
- name: Build pdf documentation
45+
working-directory: ${{ github.workspace }}/documentation
46+
run: |
47+
./create_pdf.sh
48+
- name: Archive PDF output
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: Documentation PDF
52+
path: ${{ github.workspace }}/documentation/*.pdf
53+
54+
build-user-docs-website:
55+
name: 'Build user docs for website'
56+
runs-on: ubuntu-latest
57+
steps:
58+
- uses: actions/checkout@v4
59+
- name: Install xsltproc
60+
run: |
61+
sudo apt-get install -y xsltproc
62+
- name: Build documentation for website
63+
working-directory: ${{ github.workspace }}/documentation
64+
run: |
65+
mkdir build_website
66+
./create_docs.sh build_website

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Thumbs.db
22
.DS_Store
3+
.idea/
34
/development/_build
45
/documentation/build

Diff for: documentation/content/cs/chapters/admin_guide.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.docbook.org/xml/4.4/docbookx.dtd">
32
<chapter id="admin_guide">
43
<?dbhtml dir="adminguide" filename="index.html" ?>
54
<chapterinfo>

Diff for: documentation/content/cs/chapters/glossary.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.docbook.org/xml/4.4/docbookx.dtd">
32
<chapter id="glossary">
43
<?dbhtml dir="glossary" filename="index.html" ?>
54
<chapterinfo>

Diff for: documentation/content/cs/chapters/moderator_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="moderator_guide">
53
<?dbhtml dir="moderatorguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/cs/chapters/quick_start_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="quick_start_guide">
53
<?dbhtml dir="quickstart" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/cs/chapters/upgrade_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="upgrade_guide">
53
<?dbhtml dir="upgradeguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/cs/chapters/user_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="user_guide">
53
<?dbhtml dir="userguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/da/chapters/admin_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="admin_guide">
53
<?dbhtml dir="adminguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/da/chapters/glossary.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="glossary">
53
<?dbhtml dir="glossary" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/da/chapters/moderator_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="moderator_guide">
53
<?dbhtml dir="moderatorguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/da/chapters/quick_start_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="quick_start_guide">
53
<?dbhtml dir="quickstart" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/da/chapters/upgrade_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="upgrade_guide">
53
<?dbhtml dir="upgradeguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/da/chapters/user_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="user_guide">
53
<?dbhtml dir="userguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/de/chapters/glossary.xml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.docbook.org/xml/4.4/docbookx.dtd">
32
<chapter id="glossary">
43
<?dbhtml dir="glossary" filename="index.html" ?>
54
<chapterinfo>

Diff for: documentation/content/en/chapters/admin_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"https://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="admin_guide">
53
<?dbhtml dir="adminguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/en/chapters/glossary.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"https://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="glossary">
53
<?dbhtml dir="glossary" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/en/chapters/moderator_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"https://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="moderator_guide">
53
<?dbhtml dir="moderatorguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/en/chapters/quick_start_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"https://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="quick_start_guide">
53
<?dbhtml dir="quickstart" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/en/chapters/server_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"https://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="server_guide">
53
<?dbhtml dir="serverguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/en/chapters/upgrade_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"https://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="upgrade_guide">
53
<?dbhtml dir="upgradeguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/en/chapters/user_guide.xml

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"https://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="user_guide">
53
<?dbhtml dir="userguide" filename="index.html" ?>
64
<chapterinfo>
@@ -421,7 +419,7 @@
421419
<title>Drafts</title>
422420
<para>When creating a post, it can be saved or loaded using the drafts feature. If the board permissions allow drafts to be saved, then <guilabel>Save</guilabel> and <guilabel>Load</guilabel> buttons will appear on the posting page.</para>
423421
<itemizedlist>
424-
<listitem><para><guilabel>Save</guilabel> - Saves a post as a draft. When a draft is saved, only the subject and message of the post are stored. Topic icons, attachments, etc&hellip; will be lost.</para></listitem>
422+
<listitem><para><guilabel>Save</guilabel> - Saves a post as a draft. When a draft is saved, only the subject and message of the post are stored. Topic icons, attachments, etc... will be lost.</para></listitem>
425423
<listitem><para><guilabel>Load</guilabel> - Loads a saved draft. When clicked, a listing of available drafts will appear. Click the title of the desired post to load the draft. Any information in the current post will be lost and replaced with that of the draft.</para></listitem>
426424
</itemizedlist>
427425
<para>Once a draft is used, it is removed. For more information on managing drafts, please see <link linkend="ucp_drafts">UCP Drafts</link>.</para>

Diff for: documentation/content/hu/chapters/admin_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="admin_guide">
53
<?dbhtml dir="adminguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/hu/chapters/glossary.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="glossary">
53
<?dbhtml dir="glossary" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/hu/chapters/moderator_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="moderator_guide">
53
<?dbhtml dir="moderatorguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/hu/chapters/quick_start_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="quick_start_guide">
53
<?dbhtml dir="quickstart" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/hu/chapters/upgrade_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="upgrade_guide">
53
<?dbhtml dir="upgradeguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/hu/chapters/user_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="user_guide">
53
<?dbhtml dir="userguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/nl/chapters/admin_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="admin_guide">
53
<?dbhtml dir="adminguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/nl/chapters/glossary.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="glossary">
53
<?dbhtml dir="glossary" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/nl/chapters/moderator_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="moderator_guide">
53
<?dbhtml dir="moderatorguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/nl/chapters/quick_start_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="quick_start_guide">
53
<?dbhtml dir="quickstart" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/nl/chapters/upgrade_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="upgrade_guide">
53
<?dbhtml dir="upgradeguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/nl/chapters/user_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="user_guide">
53
<?dbhtml dir="userguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/pl/admin_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="admin_guide">
53
<?dbhtml dir="adminguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/pl/glossary.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="glossary">
53
<?dbhtml dir="glossary" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/pl/moderator_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="moderator_guide">
53
<?dbhtml dir="moderatorguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/pl/quick_start_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="quick_start_guide">
53
<?dbhtml dir="quickstart" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/pl/upgrade_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="upgrade_guide">
53
<?dbhtml dir="upgradeguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/content/pl/user_guide.xml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"http://www.docbook.org/xml/4.4/docbookx.dtd">
42
<chapter id="user_guide">
53
<?dbhtml dir="userguide" filename="index.html" ?>
64
<chapterinfo>

Diff for: documentation/create_docs.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#!/bin/bash
22

33
# set this to the correct path
4-
path="/var/www/phpbb.com/htdocs/support/documentation/3.3"
4+
path=${1:-'/var/www/phpbb.com/htdocs/support/documentation/3.3'}
55

66
echo "Removing build directory"
77
rm -rf build
88

99
echo "Creating docs"
1010
xsltproc --xinclude xsl/proteus_php.xsl proteus_doc.xml
11+
exit_code=$? # Capture the exit code
1112

12-
if [ "$?" == "0" ]; then
13+
if [ "$exit_code" == "0" ]; then
1314
echo "Successfully created documentation"
1415
echo "Removing $path"
1516
rm -rf $path
@@ -24,3 +25,6 @@ if [ "$?" == "0" ]; then
2425
else
2526
echo "Failed creating documentation"
2627
fi
28+
29+
# Output exit code
30+
exit $exit_code

Diff for: documentation/create_pdf.sh

100644100755
+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/bash
22

33
echo "Removing previous PDF"
4-
rm proteus_doc.pdf
4+
if [ -f proteus_doc.pdf ]; then
5+
rm proteus_doc.pdf
6+
fi
57

68
echo "Creating new PDF"
79
fop -xml proteus_doc.xml -xsl xsl/proteus_pdf.xsl -pdf proteus_doc.pdf

Diff for: documentation/proteus_doc.xml

-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3-
"https://www.docbook.org/xml/4.4/docbookx.dtd" [
4-
<!ENTITY % xinclude SYSTEM "includes/xinclude.mod" >
5-
%xinclude;
6-
<!ENTITY % local.common.attrib "xml:base CDATA #IMPLIED" >
7-
]>
82
<book>
93
<bookinfo>
104
<title>phpBB 3.3 <emphasis>Proteus</emphasis> Documentation</title>

0 commit comments

Comments
 (0)