Skip to content

Commit e697104

Browse files
committed
Remove sphinx static dir
This is already handled by the rtd-sphinx-extension. We don't override the template from rtd (readthedocs#1946)
1 parent 5386e84 commit e697104

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

readthedocs/doc_builder/backends/sphinx.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from readthedocs.projects.models import Feature
2828

2929
from ..base import BaseBuilder, restoring_chdir
30-
from ..constants import PDF_RE, SPHINX_STATIC_DIR, SPHINX_TEMPLATE_DIR
30+
from ..constants import PDF_RE, SPHINX_TEMPLATE_DIR
3131
from ..environments import BuildCommand, DockerBuildCommand
3232
from ..exceptions import BuildEnvironmentError
3333
from ..signals import finalize_sphinx_context_data
@@ -114,7 +114,6 @@ def get_config_params(self):
114114
'project': self.project,
115115
'version': self.version,
116116
'settings': settings,
117-
'static_path': SPHINX_STATIC_DIR,
118117
'template_path': SPHINX_TEMPLATE_DIR,
119118
'conf_py_path': conf_py_path,
120119
'api_host': getattr(

readthedocs/doc_builder/constants.py

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
'templates',
2525
'mkdocs',
2626
)
27-
SPHINX_STATIC_DIR = os.path.join(SPHINX_TEMPLATE_DIR, '_static')
2827

2928
PDF_RE = re.compile('Output written on (.*?)')
3029

readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ if not 'html_static_path' in globals():
3737
html_static_path = []
3838
if os.path.exists('_static'):
3939
html_static_path.append('_static')
40-
html_static_path.append('{{ static_path }}')
4140

4241
# Add RTD Theme only if they aren't overriding it already
4342
using_rtd_theme = (

0 commit comments

Comments
 (0)