Skip to content

Commit

Permalink
Change Sphinx theme used for Zope documentation (#1221)
Browse files Browse the repository at this point in the history
* - update all compatible dependencies without Sphinx theme change

* - more non-Sphinx-related dependency updates

* - switch to "furo" Sphinx theme as suggested by Steve Piercy

* - Sphinx <8 requires docutils <0.21

* - downgrade zope.interface due to zopefoundation/zope.interface#315

* - ignore additional build artifacts created by the furo Sphinx theme

* - Sphinx 8 requires Python 3.10, adding pins for Python 3.9

* - correct zope.interface version pin spelling
  • Loading branch information
dataflake authored Aug 8, 2024
1 parent 558a8f7 commit a1d559f
Show file tree
Hide file tree
Showing 15 changed files with 69 additions and 74 deletions.
2 changes: 2 additions & 0 deletions .meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ additional-ignores = [
"docs/_build/html/_sources/zopebook/includes/*",
"docs/_build/html/_static/*",
"docs/_build/html/_static/css/*",
"docs/_build/html/_static/scripts/*",
"docs/_build/html/_static/styles/*",
]
ignore-bad-ideas = [
"src/Products/Five/tests/locales/de/LC_MESSAGES/fivetest.mo",
Expand Down
22 changes: 11 additions & 11 deletions constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ MultiMapping==5.0
Paste==3.10.1
PasteDeploy==3.1.0
Persistence==5.0
RestrictedPython==7.1; python_version == '3.10'
RestrictedPython==7.1; python_version == '3.11'
RestrictedPython==7.1; python_version == '3.12'
RestrictedPython==7.1; python_version == '3.8'
RestrictedPython==7.1; python_version == '3.9'
RestrictedPython==7.2; python_version == '3.10'
RestrictedPython==7.2; python_version == '3.11'
RestrictedPython==7.2; python_version == '3.12'
RestrictedPython==7.2; python_version == '3.8'
RestrictedPython==7.2; python_version == '3.9'
RestrictedPython==7.2a1.dev0; python_version > '3.12'
WSGIProxy2==0.5.1
WebOb==1.8.7
Expand All @@ -24,8 +24,8 @@ ZConfig==4.1
ZODB==6.0
Zope2==4.0
beautifulsoup4==4.12.3
cffi==1.17.0rc1
multipart==0.2.4
cffi==1.17.0
multipart==0.2.5
persistent==6.0
pycparser==2.22
python-gettext==5.0
Expand All @@ -35,7 +35,7 @@ six==1.16.0
soupsieve==2.5
transaction==4.0
waitress==3.0.0
z3c.pt==4.3
z3c.pt==4.4
zExceptions==5.0
zc.lockfile==3.0.post1
zc.recipe.egg==2.0.7
Expand All @@ -49,14 +49,14 @@ zope.cachedescriptors==5.0
zope.component==6.0
zope.configuration==5.0.1
zope.container==6.0
zope.contentprovider==5.0
zope.contentprovider==6.0
zope.contenttype==5.1
zope.datetime==5.0.0
zope.deferredimport==5.0
zope.deprecation==5.0
zope.dottedname==6.0
zope.event==5.0
zope.exceptions==5.0.1
zope.exceptions==5.1
zope.filerepresentation==6.0
zope.globalrequest==2.0
zope.hookable==6.0
Expand All @@ -67,7 +67,7 @@ zope.lifecycleevent==5.0
zope.location==5.0
zope.pagetemplate==5.1
zope.processlifetime==3.0
zope.proxy==5.2
zope.proxy==5.3
zope.ptresource==5.0
zope.publisher==7.0
zope.schema==7.0.1
Expand Down
3 changes: 0 additions & 3 deletions docs/INSTALL.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ This document describes installing Zope with
`zc.buildout <https://pypi.org/project/zc.buildout/>`_
(the **recommended** method) or via ``pip``.

.. contents::
:local:


Prerequisites
-------------
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
# You can specify multiple suffix as a list of string:
#
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
source_suffix = {'.rst': 'restructuredtext'}

# The master toctree document.
master_doc = 'index'
Expand All @@ -82,7 +82,7 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'
html_theme = 'furo'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
1 change: 0 additions & 1 deletion docs/maintenance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Maintainer information
This is internal documentation, mostly for Zope maintainers who manage
software releases and the documentation

.. contents::

Release process
---------------
Expand Down
3 changes: 0 additions & 3 deletions docs/migrations/zope4/code.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ Migrating Zope product code
The following list shows a few common migration issues independent of the
Python version used.

.. contents::
:local:


Changed import paths
--------------------
Expand Down
3 changes: 0 additions & 3 deletions docs/migrations/zope4/zodb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ into a Zope 4 environment. The migration example steps have been tested on a
on a copy of your ZODB so you retain a working copy for Zope 2 if you need
to go back.

.. contents::
:local:


Pre-migration steps on Zope 2
-----------------------------
Expand Down
4 changes: 0 additions & 4 deletions docs/news.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ supported and for how long.
:ref:`zope4migration` documentation


.. contents::
:local:


What's new in Zope 5
--------------------

Expand Down
3 changes: 0 additions & 3 deletions docs/operation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ Whichever method you used to install Zope and create a server instance (see
slightly. You can immediately skip down to `Running Zope
(plone.recipe.zope2instance install)`.

.. contents::
:local:


Creating a Zope instance
------------------------
Expand Down
3 changes: 1 addition & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Sphinx
sphinx_rtd_theme>1
docutils<0.19
furo
ZConfig
tempstorage
22 changes: 11 additions & 11 deletions requirements-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ MultiMapping==5.0
Paste==3.10.1
PasteDeploy==3.1.0
Persistence==5.0
RestrictedPython==7.1; python_version == '3.10'
RestrictedPython==7.1; python_version == '3.11'
RestrictedPython==7.1; python_version == '3.12'
RestrictedPython==7.1; python_version == '3.8'
RestrictedPython==7.1; python_version == '3.9'
RestrictedPython==7.2; python_version == '3.10'
RestrictedPython==7.2; python_version == '3.11'
RestrictedPython==7.2; python_version == '3.12'
RestrictedPython==7.2; python_version == '3.8'
RestrictedPython==7.2; python_version == '3.9'
RestrictedPython==7.2a1.dev0; python_version > '3.12'
WSGIProxy2==0.5.1
WebOb==1.8.7
Expand All @@ -25,8 +25,8 @@ ZConfig==4.1
ZODB==6.0
Zope2==4.0
beautifulsoup4==4.12.3
cffi==1.17.0rc1
multipart==0.2.4
cffi==1.17.0
multipart==0.2.5
persistent==6.0
pycparser==2.22
python-gettext==5.0
Expand All @@ -36,7 +36,7 @@ six==1.16.0
soupsieve==2.5
transaction==4.0
waitress==3.0.0
z3c.pt==4.3
z3c.pt==4.4
zExceptions==5.0
zc.lockfile==3.0.post1
zc.recipe.egg==2.0.7
Expand All @@ -50,14 +50,14 @@ zope.cachedescriptors==5.0
zope.component==6.0
zope.configuration==5.0.1
zope.container==6.0
zope.contentprovider==5.0
zope.contentprovider==6.0
zope.contenttype==5.1
zope.datetime==5.0.0
zope.deferredimport==5.0
zope.deprecation==5.0
zope.dottedname==6.0
zope.event==5.0
zope.exceptions==5.0.1
zope.exceptions==5.1
zope.filerepresentation==6.0
zope.globalrequest==2.0
zope.hookable==6.0
Expand All @@ -68,7 +68,7 @@ zope.lifecycleevent==5.0
zope.location==5.0
zope.pagetemplate==5.1
zope.processlifetime==3.0
zope.proxy==5.2
zope.proxy==5.3
zope.ptresource==5.0
zope.publisher==7.0
zope.schema==7.0.1
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ ignore =
docs/_build/html/_sources/zopebook/includes/*
docs/_build/html/_static/*
docs/_build/html/_static/css/*
docs/_build/html/_static/scripts/*
docs/_build/html/_static/styles/*
ignore-bad-ideas =
src/Products/Five/tests/locales/de/LC_MESSAGES/fivetest.mo
src/Products/Five/tests/locales/en/LC_MESSAGES/fivetest.mo
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def _read_file(filename):
extras_require={
'docs': [
'Sphinx',
'sphinx_rtd_theme',
'furo',
'tempstorage',
],
'wsgi': [
Expand Down
22 changes: 11 additions & 11 deletions versions-prod.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ WebOb = 1.8.7
ZConfig = 4.1
ZODB = 6.0
beautifulsoup4 = 4.12.3
cffi = 1.17.0rc1
multipart = 0.2.4
cffi = 1.17.0
multipart = 0.2.5
persistent = 6.0
pycparser = 2.22
python-gettext = 5.0
Expand All @@ -34,7 +34,7 @@ roman = 4.2
soupsieve = 2.5
transaction = 4.0
waitress = 3.0.0
z3c.pt = 4.3
z3c.pt = 4.4
zExceptions = 5.0
zc.lockfile = 3.0.post1
zc.recipe.egg = 2.0.7
Expand All @@ -48,14 +48,14 @@ zope.cachedescriptors = 5.0
zope.component = 6.0
zope.configuration = 5.0.1
zope.container = 6.0
zope.contentprovider = 5.0
zope.contentprovider = 6.0
zope.contenttype = 5.1
zope.datetime = 5.0.0
zope.deferredimport = 5.0
zope.deprecation = 5.0
zope.dottedname = 6.0
zope.event = 5.0
zope.exceptions = 5.0.1
zope.exceptions = 5.1
zope.filerepresentation = 6.0
zope.globalrequest = 2.0
zope.hookable = 6.0
Expand All @@ -66,7 +66,7 @@ zope.lifecycleevent = 5.0
zope.location = 5.0
zope.pagetemplate = 5.1
zope.processlifetime = 3.0
zope.proxy = 5.2
zope.proxy = 5.3
zope.ptresource = 5.0
zope.publisher = 7.0
zope.schema = 7.0.1
Expand All @@ -86,20 +86,20 @@ zope.viewlet = 5.0
# Chameleon >= 4.5 requires Python 3.9
Chameleon = 4.4.4
# Use newest final release
RestrictedPython = 7.1
RestrictedPython = 7.2

[versions:python39]
# Use newest final release
RestrictedPython = 7.1
RestrictedPython = 7.2

[versions:python310]
# Use newest final release
RestrictedPython = 7.1
RestrictedPython = 7.2

[versions:python311]
# Use newest final release
RestrictedPython = 7.1
RestrictedPython = 7.2

[versions:python312]
# Use newest final release
RestrictedPython = 7.1
RestrictedPython = 7.2
47 changes: 28 additions & 19 deletions versions.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,44 +13,53 @@ Products.BTreeFolder2 = 5.1
Products.ZCatalog = 7.1
Pygments = 2.18.0
Record = 4.1
Sphinx = 7.3.7
alabaster = 0.7.16
certifi = 2024.2.2
Sphinx = 8.0.2
alabaster = 1.0.0
certifi = 2024.7.4
charset-normalizer = 3.3.2
collective.recipe.template = 2.2
colorama = 0.4.6
# sphinx-rtd-theme 2.0.0 requires docutils <21
docutils = 0.20.1
docutils = 0.21.2
five.localsitemanager = 4.0
furo = 2024.8.6
idna = 3.7
imagesize = 1.4.1
importlib-metadata = 7.1.0
importlib-metadata = 8.2.0
# Required by zope.testbrowser on Python 3.13 because WebOb still uses cgi.
legacy-cgi = 2.6
legacy-cgi = 2.6.1
mr.developer = 2.0.2
packaging = 24.0
packaging = 24.1
plone.recipe.command = 1.1
requests = 2.31.0
requests = 2.32.3
snowballstemmer = 2.2.0
sphinx-rtd-theme = 2.0.0
sphinxcontrib-applehelp = 1.0.8
sphinxcontrib-devhelp = 1.0.6
sphinxcontrib-htmlhelp = 2.0.5
sphinxcontrib-jquery = 4.1
sphinx-basic-ng = 1.0.0b2
sphinxcontrib-applehelp = 2.0.0
sphinxcontrib-devhelp = 2.0.0
sphinxcontrib-htmlhelp = 2.1.0
sphinxcontrib-jsmath = 1.0.1
sphinxcontrib-qthelp = 1.0.7
sphinxcontrib-serializinghtml = 1.1.10
sphinxcontrib-qthelp = 2.0.0
sphinxcontrib-serializinghtml = 2.0.0
tempstorage = 6.0
tomli = 2.0.1
urllib3 = 2.2.1
urllib3 = 2.2.2
z3c.checkversions = 2.1
zc.recipe.testrunner = 3.0
zipp = 3.18.2
zope.testrunner = 6.4
zipp = 3.19.2
zope.testrunner = 6.5

[versions:python39]
# Sphinx <8 requires alabaster <1
alabaster = 0.7.14
# Sphinx <8 requires docutils <0.21
docutils = 0.20.1
# Sphinx >=8 requires Python 3.10
Sphinx = 7.4.7

[versions:python38]
# alabaster >= 0.7.14 requires Python 3.9
alabaster = 0.7.13
# Sphinx <8 requires docutils <0.21
docutils = 0.20.1
# Required dependency on Python 3.8 only
importlib-resources = 6.4.0
# Sphinx >= 7.2 requires Python 3.9+
Expand Down

0 comments on commit a1d559f

Please sign in to comment.