Skip to content

Commit

Permalink
Merge branch 'rtd2'
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Nov 14, 2021
2 parents 3235a40 + bd8e5e8 commit 92080a4
Show file tree
Hide file tree
Showing 83 changed files with 407 additions and 37 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
build/
docs/source/_autosummary/
docs/build/
docs/sphinx/_autosummary/
docs/sphinx/_build/
docs/sphinx/_generated/
docs/sphinx-build/
htmlcov/
Expand All @@ -35,3 +33,4 @@ pip-wheel-metadata/
wsgidav.yaml
wsgidav_2x.yaml
wsgidav_custom.yaml

8 changes: 6 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ build:

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/sphinx/conf.py
configuration: docs/source/conf.py

# If using Sphinx, optionally build your docs in additional formats such as PDF
# formats:
Expand All @@ -23,4 +23,8 @@ sphinx:
# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/sphinx/requirements.txt
- requirements: docs/source/requirements.txt
- method: pip
path: .
# extra_requirements:
# - docs
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
The new option `dir_browser.davmount_links` controls link display (default: false).
- #185 Fix FileLikeQueue for Python 3
- #222 Discrepancy between "getetag" property and ETag header
- TODO: Support LibreOffice in dir_browser


## 3.1.2 / Unreleased

Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ verify_ssl = true
name = "pypi"

[dev-packages]
black = "==21.9b0"
black = "==21.10b0"
Cheroot = "*" # "~=8.5"
cx_Freeze = {version = "*", os_name = "== 'nt'"}
flake8 = "*" # "~=3.8"
Expand Down
178 changes: 175 additions & 3 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
35 changes: 35 additions & 0 deletions docs/make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@ECHO OFF

pushd %~dp0

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build

if "%1" == "" goto help

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.https://www.sphinx-doc.org/
exit /b 1
)

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%

:end
popd
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions docs/sphinx/conf.py → docs/source/conf copy.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
# The full version, including alpha/beta/rc tags.
#release = '1.0'
import pkg_resources

try:
release = pkg_resources.get_distribution('wsgidav').version
except pkg_resources.DistributionNotFound:
Expand All @@ -118,6 +119,7 @@
for fn in os.listdir(package_root):
print("-", fn)
sys.exit(1)

del pkg_resources

version = '.'.join(release.split('.')[:2])
Expand Down

0 comments on commit 92080a4

Please sign in to comment.