Move to python3

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-01-18 12:17:20 +01:00
committed by Christoph Wurst
parent 9310a32995
commit 407a2d70c4
11 changed files with 76 additions and 45 deletions

View File

@@ -1,18 +0,0 @@
kind: pipeline
name: documentation
steps:
- name: documentation
image: nextcloudci/documentation:documentation-9
commands:
- npm install svgexport@0.3.2 -g
- pip2 install -r requirements.txt
- make all
trigger:
branch:
- master
- stable*
event:
- pull_request
- push

36
.github/workflows/sphinxbuild.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: "Pull Request Docs Check"
on:
- pull_request
- push
jobs:
user_manual:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "user_manual/"
pre-build-command: pip install -r requirements.txt
build-command: make html
repo-token: "${{ secrets.GITHUB_TOKEN }}"
developer_manual:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "developer_manual/"
pre-build-command: pip install -r requirements.txt
build-command: make html
repo-token: "${{ secrets.GITHUB_TOKEN }}"
admin_manual:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "admin_manual/"
pre-build-command: pip install -r requirements.txt
build-command: make html
repo-token: "${{ secrets.GITHUB_TOKEN }}"

15
Pipfile Normal file
View File

@@ -0,0 +1,15 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
rst2pdf = "*"
sphinx-rtd-theme = "*"
Sphinx = "*"
Pillow = "*"
[requires]
python_version = "3.8"

View File

@@ -2,7 +2,7 @@
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXOPTS +=
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build

View File

@@ -29,7 +29,7 @@ from conf import *
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions += ['sphinxcontrib.phpdomain', 'sphinx.ext.todo', 'rst2pdf.pdfbuilder', 'sphinx.ext.intersphinx']
extensions += ['sphinx.ext.todo', 'rst2pdf.pdfbuilder', 'sphinx.ext.intersphinx']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['../_shared_assets/templates']
@@ -175,8 +175,7 @@ htmlhelp_basename = 'NextcloudServerAdminManual'
# -- Options for LaTeX output --------------------------------------------------
latex_elements = {'preamble': '\usepackage{morefloats}', 'figure_align': 'H',
}
latex_elements = {'preamble': '\\usepackage{morefloats}', 'figure_align': 'H',}
# latex_elements = {
# The paper size ('letterpaper' or 'a4paper').

View File

@@ -22,7 +22,7 @@ Apache
yum install -y httpd
See :ref:`apache-web-server-configuration` for details.
See :ref:`apache_configuration_label` for details.
Make sure the apache web service is enabled and started::
@@ -63,7 +63,7 @@ Command to install the yum-utils package (for the yum-config-manager command):
dnf install yum-utils
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.
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.
You have to enable the module stream for 7.4:
@@ -117,7 +117,7 @@ Improve MariaDB security.::
After you have done this, make sure you create a database with a username and password so that
Nextcloud will have access to it. For further details on database setup and configuration,
see the :doc:`../configuration_database/linux_database_configuration` documentation.
see the :doc:`../configuration_database/linux_database_configuration` documentation.
Redis

View File

@@ -2,7 +2,7 @@
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXOPTS +=
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build

View File

@@ -29,7 +29,7 @@ from conf import *
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions += ['sphinxcontrib.phpdomain', 'sphinx.ext.todo', 'rst2pdf.pdfbuilder', 'sphinx.ext.intersphinx']
extensions += ['sphinx.ext.todo', 'rst2pdf.pdfbuilder', 'sphinx.ext.intersphinx']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['../_shared_assets/templates']

View File

@@ -1,5 +1,4 @@
sphinx
sphinxcontrib-phpdomain
rst2pdf
pillow
sphinx_rtd_theme
sphinx-rtd-theme

View File

@@ -2,7 +2,7 @@
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXOPTS +=
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build

View File

@@ -9,7 +9,7 @@ WebDAV. Before we get into configuring WebDAV, let's take a quick look at the
recommended way of connecting client devices to your Nextcloud servers.
.. note:: In the following examples, you should replace **example.com/nextcloud** with the
URL of your Nextcloud server (omit the directory part if the installation is
URL of your Nextcloud server (omit the directory part if the installation is
in the root of your domain), and "USERNAME" with the username of the connecting user.
See the webdav url (bottom left, settings) on your Nextcloud.
@@ -17,12 +17,12 @@ recommended way of connecting client devices to your Nextcloud servers.
Nextcloud Desktop and mobile clients
------------------------------------
The recommended way to synchronize a desktop PC with a Nextcloud server is by
using `Nextcloud/ownCloud sync clients <https://nextcloud.com/install/#install-clients>`_. You can configure the
client to save files in any local directory and you can choose which
The recommended way to synchronize a desktop PC with a Nextcloud server is by
using `Nextcloud/ownCloud sync clients <https://nextcloud.com/install/#install-clients>`_. You can configure the
client to save files in any local directory and you can choose which
directories on the Nextcloud server to sync with. The client displays the
current connection status and logs all activity, so you always know which
remote files have been downloaded to your PC and you can verify that files
current connection status and logs all activity, so you always know which
remote files have been downloaded to your PC and you can verify that files
created and updated on your local PC are properly synchronized with the server.
The recommended way to synchronize Nextcloud server with Android and
@@ -151,7 +151,7 @@ automatically every time you log in to your Linux computer.
https://example.com/nextcloud/remote.php/dav/files/USERNAME/ /home/<linux_username>/nextcloud
davfs user,rw,auto 0 0
8. Then test that it mounts and authenticates by running the following
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
files offline, use the Desktop Client to sync all files on your
Nextcloud to one or more directories of your local hard drive.
.. note:: Prior to mapping your drive, you must permit the use of Basic
Authentication in the Windows Registry: launch „regedit“ and navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters.
Create or edit the DWORD value „BasicAuthLevel“ (Windows Vista, 7 and 8) or
„UseBasicAuth“ (Windows XP and Windows Server 2003) and set its value data
to 1 for SSL connections. Value 0 means that Basic Authentication is disabled,
a value of 2 allows both SSL and non-SSL connections (not recommended).
Then exit Registry Editor, and restart the computer.
.. note:: Prior to mapping your drive, you must permit the use of Basic
Authentication in the Windows Registry: launch „regedit“ and navigate to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters.
Create or edit the DWORD value „BasicAuthLevel“ (Windows Vista, 7 and 8) or
„UseBasicAuth“ (Windows XP and Windows Server 2003) and set its value data
to 1 for SSL connections. Value 0 means that Basic Authentication is disabled,
a value of 2 allows both SSL and non-SSL connections (not recommended).
Then exit Registry Editor, and restart the computer.
Mapping drives with the command line
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^