Skip to content

Commit 407a2d7

Browse files
juliusknorrChristophWurst
authored andcommitted
Move to python3
Signed-off-by: Julius Härtl <[email protected]>
1 parent 9310a32 commit 407a2d7

File tree

11 files changed

+76
-45
lines changed

11 files changed

+76
-45
lines changed

.drone.yml

-18
This file was deleted.

.github/workflows/sphinxbuild.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Pull Request Docs Check"
2+
on:
3+
- pull_request
4+
- push
5+
6+
jobs:
7+
user_manual:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- uses: ammaraskar/sphinx-action@master
12+
with:
13+
docs-folder: "user_manual/"
14+
pre-build-command: pip install -r requirements.txt
15+
build-command: make html
16+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
17+
developer_manual:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v1
21+
- uses: ammaraskar/sphinx-action@master
22+
with:
23+
docs-folder: "developer_manual/"
24+
pre-build-command: pip install -r requirements.txt
25+
build-command: make html
26+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
27+
admin_manual:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v1
31+
- uses: ammaraskar/sphinx-action@master
32+
with:
33+
docs-folder: "admin_manual/"
34+
pre-build-command: pip install -r requirements.txt
35+
build-command: make html
36+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

Pipfile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
8+
[packages]
9+
rst2pdf = "*"
10+
sphinx-rtd-theme = "*"
11+
Sphinx = "*"
12+
Pillow = "*"
13+
14+
[requires]
15+
python_version = "3.8"

admin_manual/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33

44
# You can set these variables from the command line.
5-
SPHINXOPTS =
5+
SPHINXOPTS +=
66
SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = _build

admin_manual/conf.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
# Add any Sphinx extension module names here, as strings. They can be extensions
3131
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
32-
extensions += ['sphinxcontrib.phpdomain', 'sphinx.ext.todo', 'rst2pdf.pdfbuilder', 'sphinx.ext.intersphinx']
32+
extensions += ['sphinx.ext.todo', 'rst2pdf.pdfbuilder', 'sphinx.ext.intersphinx']
3333

3434
# Add any paths that contain templates here, relative to this directory.
3535
templates_path = ['../_shared_assets/templates']
@@ -175,8 +175,7 @@
175175

176176
# -- Options for LaTeX output --------------------------------------------------
177177

178-
latex_elements = {'preamble': '\usepackage{morefloats}', 'figure_align': 'H',
179-
}
178+
latex_elements = {'preamble': '\\usepackage{morefloats}', 'figure_align': 'H',}
180179

181180
# latex_elements = {
182181
# The paper size ('letterpaper' or 'a4paper').

admin_manual/installation/example_centos.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Apache
2222

2323
yum install -y httpd
2424

25-
See :ref:`apache-web-server-configuration` for details.
25+
See :ref:`apache_configuration_label` for details.
2626

2727
Make sure the apache web service is enabled and started::
2828

@@ -63,7 +63,7 @@ Command to install the yum-utils package (for the yum-config-manager command):
6363

6464
dnf install yum-utils
6565

66-
You want a single version which means replacing base packages from the distribution. Packages have the same name than the base repository, ie php-*. Some common dependencies are available in remi-safe repository, which is enabled by default.
66+
You want a single version which means replacing base packages from the distribution. Packages have the same name than the base repository, ie php-\*. Some common dependencies are available in remi-safe repository, which is enabled by default.
6767

6868
You have to enable the module stream for 7.4:
6969

@@ -117,7 +117,7 @@ Improve MariaDB security.::
117117

118118
After you have done this, make sure you create a database with a username and password so that
119119
Nextcloud will have access to it. For further details on database setup and configuration,
120-
see the :doc:`../configuration_database/linux_database_configuration` documentation.
120+
see the :doc:`../configuration_database/linux_database_configuration` documentation.
121121

122122

123123
Redis

developer_manual/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33

44
# You can set these variables from the command line.
5-
SPHINXOPTS =
5+
SPHINXOPTS +=
66
SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = _build

developer_manual/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
# Add any Sphinx extension module names here, as strings. They can be extensions
3131
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
32-
extensions += ['sphinxcontrib.phpdomain', 'sphinx.ext.todo', 'rst2pdf.pdfbuilder', 'sphinx.ext.intersphinx']
32+
extensions += ['sphinx.ext.todo', 'rst2pdf.pdfbuilder', 'sphinx.ext.intersphinx']
3333

3434
# Add any paths that contain templates here, relative to this directory.
3535
templates_path = ['../_shared_assets/templates']

requirements.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
sphinx
2-
sphinxcontrib-phpdomain
32
rst2pdf
43
pillow
5-
sphinx_rtd_theme
4+
sphinx-rtd-theme

user_manual/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33

44
# You can set these variables from the command line.
5-
SPHINXOPTS =
5+
SPHINXOPTS +=
66
SPHINXBUILD = sphinx-build
77
PAPER =
88
BUILDDIR = _build

user_manual/files/access_webdav.rst

+15-15
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ WebDAV. Before we get into configuring WebDAV, let's take a quick look at the
99
recommended way of connecting client devices to your Nextcloud servers.
1010

1111
.. note:: In the following examples, you should replace **example.com/nextcloud** with the
12-
URL of your Nextcloud server (omit the directory part if the installation is
12+
URL of your Nextcloud server (omit the directory part if the installation is
1313
in the root of your domain), and "USERNAME" with the username of the connecting user.
1414

1515
See the webdav url (bottom left, settings) on your Nextcloud.
1616

1717
Nextcloud Desktop and mobile clients
1818
------------------------------------
1919

20-
The recommended way to synchronize a desktop PC with a Nextcloud server is by
21-
using `Nextcloud/ownCloud sync clients <https://nextcloud.com/install/#install-clients>`_. You can configure the
22-
client to save files in any local directory and you can choose which
20+
The recommended way to synchronize a desktop PC with a Nextcloud server is by
21+
using `Nextcloud/ownCloud sync clients <https://nextcloud.com/install/#install-clients>`_. You can configure the
22+
client to save files in any local directory and you can choose which
2323
directories on the Nextcloud server to sync with. The client displays the
24-
current connection status and logs all activity, so you always know which
25-
remote files have been downloaded to your PC and you can verify that files
24+
current connection status and logs all activity, so you always know which
25+
remote files have been downloaded to your PC and you can verify that files
2626
created and updated on your local PC are properly synchronized with the server.
2727

2828
The recommended way to synchronize Nextcloud server with Android and
@@ -151,7 +151,7 @@ automatically every time you log in to your Linux computer.
151151

152152
https://example.com/nextcloud/remote.php/dav/files/USERNAME/ /home/<linux_username>/nextcloud
153153
davfs user,rw,auto 0 0
154-
154+
155155

156156
8. Then test that it mounts and authenticates by running the following
157157
command. If you set it up correctly you won't need root permissions::
@@ -228,14 +228,14 @@ Using this feature requires network connectivity. If you want to store your
228228
files offline, use the Desktop Client to sync all files on your
229229
Nextcloud to one or more directories of your local hard drive.
230230

231-
.. note:: Prior to mapping your drive, you must permit the use of Basic
232-
Authentication in the Windows Registry: launch „regedit“ and navigate to
233-
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters.
234-
Create or edit the DWORD value „BasicAuthLevel“ (Windows Vista, 7 and 8) or
235-
„UseBasicAuth“ (Windows XP and Windows Server 2003) and set its value data
236-
to 1 for SSL connections. Value 0 means that Basic Authentication is disabled,
237-
a value of 2 allows both SSL and non-SSL connections (not recommended).
238-
Then exit Registry Editor, and restart the computer.
231+
.. note:: Prior to mapping your drive, you must permit the use of Basic
232+
Authentication in the Windows Registry: launch „regedit“ and navigate to
233+
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters.
234+
Create or edit the DWORD value „BasicAuthLevel“ (Windows Vista, 7 and 8) or
235+
„UseBasicAuth“ (Windows XP and Windows Server 2003) and set its value data
236+
to 1 for SSL connections. Value 0 means that Basic Authentication is disabled,
237+
a value of 2 allows both SSL and non-SSL connections (not recommended).
238+
Then exit Registry Editor, and restart the computer.
239239

240240
Mapping drives with the command line
241241
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)