Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 0cbacb5

Browse files
author
Brad Miller
committed
update conf/pavement for test projects
1 parent 5cf103c commit 0cbacb5

33 files changed

Lines changed: 98 additions & 50 deletions

File tree

runestone/activecode/test/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#sys.path.insert(0, os.path.abspath('../modules'))
2020

2121
from runestone import runestone_static_dirs, runestone_extensions
22+
import pkg_resources
2223

2324
# -- General configuration -----------------------------------------------------
2425

@@ -32,7 +33,8 @@
3233
#,'runestone.video','runestone.reveal','runestone.poll','runestone.tabbedStuff','runestone.disqus','runestone.codelens','runestone.activecode', 'runestone.assess', 'runestone.animation','runestone.meta', 'runestone.parsons', 'runestone.blockly', 'runestone.livecode']
3334

3435
# Add any paths that contain templates here, relative to this directory.
35-
templates_path = ['_templates']
36+
templates_path = [pkg_resources.resource_filename('runestone', 'common/project_template/_templates')]
37+
3638

3739
# The suffix of source filenames.
3840
source_suffix = '.rst'
@@ -155,7 +157,8 @@
155157
#html_style = "style.css"
156158

157159
# Add any paths that contain custom themes here, relative to this directory.
158-
html_theme_path = ["_templates/plugin_layouts"]
160+
html_theme_path = [pkg_resources.resource_filename('runestone', 'common/project_template/_templates/plugin_layouts')]
161+
159162

160163
# The name for this set of Sphinx documents. If None, it defaults to
161164
# "<project> v<release> documentation".

runestone/activecode/test/pavement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
'course_url':master_url,
3232
'use_services': 'false',
3333
'python3': 'true',
34-
'dburl': '',
34+
'dburl': '', 'downloads_enabled': 'true', 'enable_chatcodes': 'false', 'allow_pairs': 'false',
3535
'basecourse': 'activecodetest',
3636
'jobe_server': 'http://jobe2.cosc.canterbury.ac.nz',
3737
'proxy_uri_runs': '/jobe/index.php/restapi/runs/',

runestone/assess/test/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#sys.path.insert(0, os.path.abspath('../modules'))
2020

2121
from runestone import runestone_static_dirs, runestone_extensions
22+
import pkg_resources
2223

2324
# -- General configuration -----------------------------------------------------
2425

@@ -32,7 +33,8 @@
3233
#,'runestone.video','runestone.reveal','runestone.poll','runestone.tabbedStuff','runestone.disqus','runestone.codelens','runestone.activecode', 'runestone.assess', 'runestone.animation','runestone.meta', 'runestone.parsons', 'runestone.blockly', 'runestone.livecode']
3334

3435
# Add any paths that contain templates here, relative to this directory.
35-
templates_path = ['_templates']
36+
templates_path = [pkg_resources.resource_filename('runestone', 'common/project_template/_templates')]
37+
3638

3739
# The suffix of source filenames.
3840
source_suffix = '.rst'
@@ -156,7 +158,8 @@
156158
#html_style = "style.css"
157159

158160
# Add any paths that contain custom themes here, relative to this directory.
159-
html_theme_path = ["_templates/plugin_layouts"]
161+
html_theme_path = [pkg_resources.resource_filename('runestone', 'common/project_template/_templates/plugin_layouts')]
162+
160163

161164
# The name for this set of Sphinx documents. If None, it defaults to
162165
# "<project> v<release> documentation".

runestone/assess/test/pavement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
'course_url':master_url,
3232
'use_services': 'false',
3333
'python3': 'false',
34-
'dburl': '',
34+
'dburl': '', 'downloads_enabled': 'true', 'enable_chatcodes': 'false', 'allow_pairs': 'false',
3535
'basecourse': 'mctest-book'
3636
}
3737
)

runestone/clickableArea/test/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#sys.path.insert(0, os.path.abspath('../modules'))
2020

2121
from runestone import runestone_static_dirs, runestone_extensions
22+
import pkg_resources
2223

2324
# -- General configuration -----------------------------------------------------
2425

@@ -32,7 +33,8 @@
3233
#,'runestone.video','runestone.reveal','runestone.poll','runestone.tabbedStuff','runestone.disqus','runestone.codelens','runestone.activecode', 'runestone.assess', 'runestone.animation','runestone.meta', 'runestone.parsons', 'runestone.blockly', 'runestone.livecode']
3334

3435
# Add any paths that contain templates here, relative to this directory.
35-
templates_path = ['_templates']
36+
templates_path = [pkg_resources.resource_filename('runestone', 'common/project_template/_templates')]
37+
3638

3739
# The suffix of source filenames.
3840
source_suffix = '.rst'
@@ -156,7 +158,8 @@
156158
#html_style = "style.css"
157159

158160
# Add any paths that contain custom themes here, relative to this directory.
159-
html_theme_path = ["_templates/plugin_layouts"]
161+
html_theme_path = [pkg_resources.resource_filename('runestone', 'common/project_template/_templates/plugin_layouts')]
162+
160163

161164
# The name for this set of Sphinx documents. If None, it defaults to
162165
# "<project> v<release> documentation".

runestone/clickableArea/test/pavement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
'course_url':master_url,
3232
'use_services': 'false',
3333
'python3': 'false',
34-
'dburl': '',
34+
'dburl': '', 'downloads_enabled': 'true', 'enable_chatcodes': 'false', 'allow_pairs': 'false',
3535
'basecourse': 'clickable-test'
3636
}
3737
)

runestone/common/test/test_error/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#sys.path.insert(0, os.path.abspath('../modules'))
2020

2121
from runestone import runestone_static_dirs, runestone_extensions
22+
import pkg_resources
2223

2324
# -- General configuration -----------------------------------------------------
2425

@@ -32,7 +33,8 @@
3233
#,'runestone.video','runestone.reveal','runestone.poll','runestone.tabbedStuff','runestone.disqus','runestone.codelens','runestone.activecode', 'runestone.assess', 'runestone.animation','runestone.meta', 'runestone.parsons', 'runestone.blockly', 'runestone.livecode']
3334

3435
# Add any paths that contain templates here, relative to this directory.
35-
templates_path = ['_templates']
36+
templates_path = [pkg_resources.resource_filename('runestone', 'common/project_template/_templates')]
37+
3638

3739
# The suffix of source filenames.
3840
source_suffix = '.rst'
@@ -156,7 +158,8 @@
156158
#html_style = "style.css"
157159

158160
# Add any paths that contain custom themes here, relative to this directory.
159-
html_theme_path = ["_templates/plugin_layouts"]
161+
html_theme_path = [pkg_resources.resource_filename('runestone', 'common/project_template/_templates/plugin_layouts')]
162+
160163

161164
# The name for this set of Sphinx documents. If None, it defaults to
162165
# "<project> v<release> documentation".

runestone/common/test/test_error/pavement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
'course_url':master_url,
3232
'use_services': 'false',
3333
'python3': 'false',
34-
'dburl': '',
34+
'dburl': '', 'downloads_enabled': 'true', 'enable_chatcodes': 'false', 'allow_pairs': 'false',
3535
'basecourse': 'test_add_js'
3636
}
3737
)

runestone/common/test/test_working/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#sys.path.insert(0, os.path.abspath('../modules'))
2020

2121
from runestone import runestone_static_dirs, runestone_extensions
22+
import pkg_resources
2223

2324
# -- General configuration -----------------------------------------------------
2425

@@ -32,7 +33,8 @@
3233
#,'runestone.video','runestone.reveal','runestone.poll','runestone.tabbedStuff','runestone.disqus','runestone.codelens','runestone.activecode', 'runestone.assess', 'runestone.animation','runestone.meta', 'runestone.parsons', 'runestone.blockly', 'runestone.livecode']
3334

3435
# Add any paths that contain templates here, relative to this directory.
35-
templates_path = ['_templates']
36+
templates_path = [pkg_resources.resource_filename('runestone', 'common/project_template/_templates')]
37+
3638

3739
# The suffix of source filenames.
3840
source_suffix = '.rst'
@@ -156,7 +158,8 @@
156158
#html_style = "style.css"
157159

158160
# Add any paths that contain custom themes here, relative to this directory.
159-
html_theme_path = ["_templates/plugin_layouts"]
161+
html_theme_path = [pkg_resources.resource_filename('runestone', 'common/project_template/_templates/plugin_layouts')]
162+
160163

161164
# The name for this set of Sphinx documents. If None, it defaults to
162165
# "<project> v<release> documentation".

runestone/common/test/test_working/pavement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
'course_url':master_url,
3232
'use_services': 'false',
3333
'python3': 'false',
34-
'dburl': '',
34+
'dburl': '', 'downloads_enabled': 'true', 'enable_chatcodes': 'false', 'allow_pairs': 'false',
3535
'basecourse': 'test_add_js'
3636
}
3737
)

0 commit comments

Comments
 (0)