From e03902910c70900954572d72997f339a3c1f1154 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 29 Oct 2014 08:07:37 +0100 Subject: [PATCH] Move Sphinx extensions to their own subdir. --- Doc/conf.py | 2 +- Doc/tools/{ => extensions}/c_annotations.py | 0 Doc/tools/{ => extensions}/patchlevel.py | 0 Doc/tools/{ => extensions}/pyspecific.py | 0 Doc/tools/{ => extensions}/suspicious.py | 2 +- 5 files changed, 2 insertions(+), 2 deletions(-) rename Doc/tools/{ => extensions}/c_annotations.py (100%) rename Doc/tools/{ => extensions}/patchlevel.py (100%) rename Doc/tools/{ => extensions}/pyspecific.py (100%) rename Doc/tools/{ => extensions}/suspicious.py (99%) diff --git a/Doc/conf.py b/Doc/conf.py index 0c7b601459..ff073b112a 100644 --- a/Doc/conf.py +++ b/Doc/conf.py @@ -7,7 +7,7 @@ # that aren't pickleable (module imports are okay, they're removed automatically). import sys, os, time -sys.path.append(os.path.abspath('tools')) +sys.path.append(os.path.abspath('tools/extensions')) # General configuration # --------------------- diff --git a/Doc/tools/c_annotations.py b/Doc/tools/extensions/c_annotations.py similarity index 100% rename from Doc/tools/c_annotations.py rename to Doc/tools/extensions/c_annotations.py diff --git a/Doc/tools/patchlevel.py b/Doc/tools/extensions/patchlevel.py similarity index 100% rename from Doc/tools/patchlevel.py rename to Doc/tools/extensions/patchlevel.py diff --git a/Doc/tools/pyspecific.py b/Doc/tools/extensions/pyspecific.py similarity index 100% rename from Doc/tools/pyspecific.py rename to Doc/tools/extensions/pyspecific.py diff --git a/Doc/tools/suspicious.py b/Doc/tools/extensions/suspicious.py similarity index 99% rename from Doc/tools/suspicious.py rename to Doc/tools/extensions/suspicious.py index ee877336f6..d3ed849157 100644 --- a/Doc/tools/suspicious.py +++ b/Doc/tools/extensions/suspicious.py @@ -91,7 +91,7 @@ class CheckSuspiciousMarkupBuilder(Builder): self.log_file_name = os.path.join(self.outdir, 'suspicious.csv') open(self.log_file_name, 'w').close() # load database of previously ignored issues - self.load_rules(os.path.join(os.path.dirname(__file__), + self.load_rules(os.path.join(os.path.dirname(__file__), '..', 'susp-ignored.csv')) def get_outdated_docs(self): -- 2.40.0