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

Commit a6e1a7f

Browse files
committed
Clean: Use the _static/ folder from Runestone Components, instead of copying it to each book.
1 parent 2879ade commit a6e1a7f

236 files changed

Lines changed: 22 additions & 5656 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

runestone/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ def runestone_static_dirs():
3131
module_static_image = ['%s/images' % os.path.join(basedir,x) for x in module_paths if os.path.exists('%s/images' % os.path.join(basedir,x))]
3232
module_static_bootstrap = ['%s/bootstrap' % os.path.join(basedir,x) for x in module_paths if os.path.exists('%s/bootstrap' % os.path.join(basedir,x))]
3333

34-
return module_static_js + module_static_css + module_static_image + module_static_bootstrap
34+
return (
35+
module_static_js + module_static_css + module_static_image +
36+
module_static_bootstrap +
37+
[os.path.join(basedir, 'common/project_template/_static')]
38+
)
3539

3640

3741
def runestone_extensions():

runestone/__main__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def init():
8080
conf_dict['downloads_enabled'] = click.prompt("Enable inline Activecode downloads by default (single activecode downloads may be enabled with the :enabledownload: flag)", default="false")
8181

8282
shutil.copytree(os.path.join(template_base_dir,'_sources'),'_sources')
83-
shutil.copytree(os.path.join(template_base_dir,'_static'),'_static')
8483
os.makedirs(conf_dict['build_dir'])
8584
paver_final = paver_stuff.decode('utf-8') % conf_dict
8685
config_final = config_stuff.decode('utf-8') % conf_dict

runestone/activecode/test/_static/.gitignore

Whitespace-only changes.
-90.5 KB
Binary file not shown.
-17.5 KB
Binary file not shown.
-23.4 KB
Binary file not shown.
-4.39 KB
Binary file not shown.
-15.8 KB
Binary file not shown.
-15.5 KB
Binary file not shown.
-15.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)