Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
mv src/doc/common/*.py to src/sage/docs/conf
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Jul 16, 2019
1 parent f2f53b0 commit 863d433
Show file tree
Hide file tree
Showing 33 changed files with 31 additions and 87 deletions.
4 changes: 1 addition & 3 deletions src/doc/ca/intro/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u"Introducció de Sage"
Expand Down
4 changes: 1 addition & 3 deletions src/doc/de/a_tour_of_sage/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u"Ein Rundgang durch Sage"
Expand Down
4 changes: 1 addition & 3 deletions src/doc/de/thematische_anleitungen/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u"Thematische Anleitungen"
Expand Down
4 changes: 1 addition & 3 deletions src/doc/de/tutorial/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u"Sage Tutorial"
Expand Down
4 changes: 1 addition & 3 deletions src/doc/en/a_tour_of_sage/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u'A Tour of Sage'
Expand Down
4 changes: 1 addition & 3 deletions src/doc/en/constructions/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u"Sage Constructions"
Expand Down
4 changes: 1 addition & 3 deletions src/doc/en/developer/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u"Sage Developer's Guide"
Expand Down
4 changes: 1 addition & 3 deletions src/doc/en/faq/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
import os
import sys

from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u"Sage FAQ"
Expand Down
4 changes: 1 addition & 3 deletions src/doc/en/installation/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u"Sage Installation Guide"
Expand Down
4 changes: 1 addition & 3 deletions src/doc/en/prep/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *


# General information about the project.
Expand Down
3 changes: 1 addition & 2 deletions src/doc/en/reference/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@

import sys, os
from sage.env import SAGE_DOC_SRC, SAGE_DOC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

ref_src = os.path.join(SAGE_DOC_SRC, 'en', 'reference')
ref_out = os.path.join(SAGE_DOC, 'html', 'en', 'reference')
Expand Down
3 changes: 1 addition & 2 deletions src/doc/en/reference/conf_sub.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@

import sys, os
from sage.env import SAGE_DOC_SRC, SAGE_DOC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

from six.moves import range

Expand Down
4 changes: 1 addition & 3 deletions src/doc/en/thematic_tutorials/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@

import os
import sys
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u"Thematic Tutorials"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
name = 'bordeaux_2008'
Expand Down
4 changes: 1 addition & 3 deletions src/doc/en/thematic_tutorials/numerical_sage/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u'Numerical Computing with Sage'
Expand Down
4 changes: 1 addition & 3 deletions src/doc/en/tutorial/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u"Sage Tutorial"
Expand Down
4 changes: 1 addition & 3 deletions src/doc/en/website/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u'Sage Documentation'
Expand Down
4 changes: 1 addition & 3 deletions src/doc/es/a_tour_of_sage/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@

import sys
import os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u'Un Tour Por Sage'
Expand Down
4 changes: 1 addition & 3 deletions src/doc/es/tutorial/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@

import sys
import os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u"Sage Tutorial"
Expand Down
4 changes: 1 addition & 3 deletions src/doc/fr/a_tour_of_sage/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u'Sage en quelques mots'
Expand Down
4 changes: 1 addition & 3 deletions src/doc/fr/tutorial/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u"Tutoriel Sage"
Expand Down
4 changes: 1 addition & 3 deletions src/doc/hu/a_tour_of_sage/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
# out serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u'A Sage bemutatása'
Expand Down
4 changes: 1 addition & 3 deletions src/doc/it/a_tour_of_sage/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u'Esplora Sage'
Expand Down
4 changes: 1 addition & 3 deletions src/doc/ja/a_tour_of_sage/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u"Sage ガイドツアー"
Expand Down
4 changes: 1 addition & 3 deletions src/doc/ja/tutorial/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u"Sage チュートリアル"
Expand Down
4 changes: 1 addition & 3 deletions src/doc/pt/a_tour_of_sage/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u'Uma Turnê pelo Sage'
Expand Down
4 changes: 1 addition & 3 deletions src/doc/pt/tutorial/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u"Tutorial Sage"
Expand Down
4 changes: 1 addition & 3 deletions src/doc/ru/tutorial/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u"Sage Tutorial in Russian"
Expand Down
4 changes: 1 addition & 3 deletions src/doc/tr/a_tour_of_sage/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# serve to show the default.

import sys, os
from sage.env import SAGE_DOC_SRC
sys.path.append(SAGE_DOC_SRC)
from common.conf import *
from sage.docs.conf.conf import *

# General information about the project.
project = u'Sage Turu'
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions src/sage/misc/sphinxify.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def sphinxify(docstring, format='html'):
os.makedirs(confdir)
with open(os.path.join(confdir, 'conf.py'), 'w') as filed:
filed.write(r"""
from sage.docs.conf.conf import *
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.mathjax', 'sphinx.ext.todo', 'sphinx.ext.extlinks']
templates_path = ['templates']
Expand Down
3 changes: 1 addition & 2 deletions src/sage_setup/docbuild/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1174,9 +1174,8 @@ def __init__(self, path):
# This file is automatically generated by {}, do not edit!
import sys, os
sys.path.append(os.environ['SAGE_DOC_SRC'])
sys.path.append({!r})
from common.conf import *
from sage.docs.conf.conf import *
project = u'Documentation for {}'
release = 'unknown'
name = {!r}
Expand Down

0 comments on commit 863d433

Please sign in to comment.