From afb935972f2f91302fe1097593307e4e71a703a2 Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Tue, 23 Apr 2019 18:37:20 -0500 Subject: [PATCH] Remove unused volume from docker We used to inject a specific template for mkdocs projects, we don't do this anymore. --- readthedocs/doc_builder/constants.py | 8 -------- readthedocs/doc_builder/environments.py | 5 ----- 2 files changed, 13 deletions(-) diff --git a/readthedocs/doc_builder/constants.py b/readthedocs/doc_builder/constants.py index 4f6deeb6174..b245629a5a1 100644 --- a/readthedocs/doc_builder/constants.py +++ b/readthedocs/doc_builder/constants.py @@ -3,7 +3,6 @@ """Doc build constants.""" import logging -import os import re from django.conf import settings @@ -11,13 +10,6 @@ log = logging.getLogger(__name__) -MKDOCS_TEMPLATE_DIR = os.path.join( - settings.SITE_ROOT, - 'readthedocs', - 'templates', - 'mkdocs', -) - PDF_RE = re.compile('Output written on (.*?)') # Docker diff --git a/readthedocs/doc_builder/environments.py b/readthedocs/doc_builder/environments.py index 8a40d389885..fd82781e0b3 100644 --- a/readthedocs/doc_builder/environments.py +++ b/readthedocs/doc_builder/environments.py @@ -35,7 +35,6 @@ DOCKER_SOCKET, DOCKER_TIMEOUT_EXIT_CODE, DOCKER_VERSION, - MKDOCS_TEMPLATE_DIR, ) from .exceptions import ( BuildEnvironmentCreationFailed, @@ -931,10 +930,6 @@ def get_container_host_config(self): ``client.create_container``. """ binds = { - MKDOCS_TEMPLATE_DIR: { - 'bind': MKDOCS_TEMPLATE_DIR, - 'mode': 'ro', - }, self.project.doc_path: { 'bind': self.project.doc_path, 'mode': 'rw',