Skip to content

Commit

Permalink
Adds dark mode toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Klustre committed Feb 9, 2022
1 parent 3a3835e commit 3225ceb
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 47 deletions.
92 changes: 48 additions & 44 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,44 +1,48 @@
# -*- coding: utf-8 -*-

import sys
import os
import sphinx_rtd_theme
#from better import better_theme_path

# -- General configuration ------------------------------------------------

def setup(app):
try:
app.add_stylesheet('extra.css')

except:
app.add_css_file('extra.css')

templates_path = ['_templates']

source_suffix = '.rst'

master_doc = 'index'

# General information about the project.
project = u'Adobe Animate Scripting Guide'
copyright = u'1992–2020 Adobe Systems Incorporated'
author = u'Adobe Systems Incorporated'

version = u'1.0.0'
release = u'1.0.0'

pygments_style = 'sphinx'

highlight_language = "c++"

# -- Options for HTML output ----------------------------------------------

html_theme = "sphinx_rtd_theme"

html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

html_static_path = ['_static']

# Output file base name for HTML help builder.
htmlhelp_basename = 'animate-scripting-guide'
# -*- coding: utf-8 -*-

import sys
import os
import sphinx_rtd_theme
#from better import better_theme_path

# -- General configuration ------------------------------------------------

def setup(app):
try:
app.add_stylesheet('extra.css')

except:
app.add_css_file('extra.css')

templates_path = ['_templates']

source_suffix = '.rst'

master_doc = 'index'

extensions = ['sphinx_rtd_dark_mode']

default_dark_mode = False

# General information about the project.
project = u'Adobe Animate Scripting Guide'
copyright = u'1992–2020 Adobe Systems Incorporated'
author = u'Adobe Systems Incorporated'

version = u'1.0.0'
release = u'1.0.0'

pygments_style = 'sphinx'

highlight_language = "c++"

# -- Options for HTML output ----------------------------------------------

html_theme = "sphinx_rtd_theme"

html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

html_static_path = ['_static']

# Output file base name for HTML help builder.
htmlhelp_basename = 'animate-scripting-guide'
7 changes: 4 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sphinx
sphinx_rtd_theme
docutils<0.18
sphinx==4.4
sphinx_rtd_theme
sphinx_rtd_dark_mode
docutils<0.18

0 comments on commit 3225ceb

Please sign in to comment.