Merge branch '1.13' into 1.14

* 1.13:
  [Docs] Fix readthedocs configuration files
This commit is contained in:
Grzegorz Sadowski 2024-10-08 13:26:21 +02:00
commit f33bd01c67
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364
2 changed files with 19 additions and 9 deletions

View file

@ -3,6 +3,14 @@ import sys, os
from sphinx.highlighting import lexers from sphinx.highlighting import lexers
from pygments.lexers.web import PhpLexer from pygments.lexers.web import PhpLexer
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "https://docs.sylius.com")
# Tell Jinja2 templates the build is running on Read the Docs
if os.environ.get("READTHEDOCS", "") == "True":
if "html_context" not in globals():
html_context = {}
html_context["READTHEDOCS"] = True
extensions = [ extensions = [
'sphinx.ext.autodoc', 'sphinx.ext.autodoc',
'sphinx.ext.doctest', 'sphinx.ext.doctest',
@ -21,8 +29,10 @@ copyright = u'2011-2024, Sylius Sp. z o.o.'
version = '' version = ''
release = '' release = ''
exclude_patterns = ['_includes/*.rst'] exclude_patterns = ['_includes/*.rst']
html_theme = 'sylius_rtd_theme' html_theme = "sylius_rtd_theme"
html_theme_path = ["_themes"] html_theme_path = ["_themes"]
html_context = html_context if 'html_context' in globals() else {}
html_context['style'] = 'css/theme.css'
html_favicon = 'favicon.ico' html_favicon = 'favicon.ico'
htmlhelp_basename = 'Syliusdoc' htmlhelp_basename = 'Syliusdoc'
man_pages = [ man_pages = [

View file

@ -1,8 +1,8 @@
sphinx==1.8.5 sphinx>=7.0.1
alabaster==0.7.13 alabaster>=0.7.13
docutils<0.18 docutils>=0.18.1,<0.21
jinja2==3.0.0 jinja2>=3.0.0,<4.0
pyOpenSSL pyOpenSSL>=21.0.0
requests[security] requests[security]>=2.25.0
sphinx-copybutton sphinx-copybutton>=0.5.0
sphinx-autobuild sphinx-autobuild>=2021.3.14