Skip to content

Commit

Permalink
Merge 7aeca24 into 06dc95b
Browse files Browse the repository at this point in the history
  • Loading branch information
marksweb committed Jun 18, 2021
2 parents 06dc95b + 7aeca24 commit 3aafe9d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 50 deletions.
60 changes: 12 additions & 48 deletions docs/conf.py
Expand Up @@ -37,7 +37,9 @@
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinxcontrib.spelling'
'sphinxcontrib.spelling',
"sphinx_copybutton",
"sphinxext.opengraph",
]
intersphinx_mapping = {
'python': ('https://docs.python.org/3/', None),
Expand All @@ -61,8 +63,8 @@

current_year = datetime.datetime.now().year
# General information about the project.
project = u'django cms'
copyright = u'2009-{}, Divio AG and contributors'.format(current_year)
project = 'django cms'
copyright = '2009-{}, Divio AG and contributors'.format(current_year)

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
Expand Down Expand Up @@ -129,55 +131,17 @@
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

try:
import divio_docs_theme
html_theme = 'divio_docs_theme'
html_theme_path = [divio_docs_theme.get_html_theme_path()]
import furo

html_theme = 'furo'
html_theme_options = {
'show_cloud_banner': True,
'cloud_banner_markup': """
<div class="divio-cloud">
<span class="divio-cloud-caption">The django CMS Association</span>
<p>The django CMS Association is a non-profit organisation that funds and
steers the development of django CMS, and nurtures its world-wide
community of developers and users.</p>
<a class="btn-neutral divio-cloud-btn" target="_blank" href="https://www.django-cms.org/en/about-us/">Join us</a>
</div>
""",
"navigation_with_keys": True,
}
except:
except ImportError:
html_theme = 'default'


show_cloud_banner = True

# The theme to use for HTML and HTML Help pages. Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
# html_theme = 'default'

# 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
# documentation.
#html_theme_options = {}

# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []

# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
#html_title = None

# A shorter title for the navigation bar. Default is the same as html_title.
#html_short_title = None

# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
#html_logo = None

# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
#html_favicon = None

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
Expand Down Expand Up @@ -233,8 +197,8 @@
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [
('index', 'djangocms.tex', u'django cms Documentation',
u'Divio AG and contributors', 'manual'),
('index', 'djangocms.tex', 'django cms Documentation',
'Divio AG and contributors', 'manual'),
]

# The name of an image file (relative to this directory) to place at the top
Expand Down
6 changes: 4 additions & 2 deletions docs/requirements.txt
@@ -1,10 +1,12 @@
MarkupSafe==0.23
Pygments==2.0.2
sphinx
furo
Sphinx>4
sphinx-copybutton
sphinxext-opengraph
sphinxcontrib-spelling
pyenchant==3.0.1
sphinx-autobuild
divio-docs-theme
datetime
coverage
django-cms

0 comments on commit 3aafe9d

Please sign in to comment.