diff --git a/pavement.py b/pavement.py deleted file mode 100755 index 846f4f6..0000000 --- a/pavement.py +++ /dev/null @@ -1,106 +0,0 @@ -import paver -from paver.easy import * -import paver.setuputils - -paver.setuputils.install_distutils_tasks() -from os import environ, getcwd -import os.path -import sys -from socket import gethostname -import pkg_resources -from runestone import get_master_url - -sys.path.append(getcwd()) -sys.path.append("../modules") - -updateProgressTables = True -try: - from runestone.server.chapternames import populateChapterInfob -except ImportError: - updateProgressTables = False - - -######## CHANGE THIS ########## -project_name = "cpp4python" -############################### - -master_url = None -doctrees = "./build/{}/doctrees".format(project_name) -dynamic_pages = True - -if master_url is None: - master_url = get_master_url() - -master_app = "runestone" -serving_dir = "./build/" + project_name -dest = "./published" - -options( - sphinx=Bunch( - docroot=".", - ), - build=Bunch( - builddir="./build/" + project_name, - sourcedir="./_sources/", - outdir="./build/" + project_name, - confdir=".", - project_name=project_name, - doctrees=doctrees, - template_args={ - "course_id": project_name, - "course_title": "C++\\ for\\ Python\\ Programmers", - "login_required": "false", - "appname": master_app, - "loglevel": 10, - "course_url": master_url, - "use_services": "true", - "python3": "true", - "dynamic_pages": dynamic_pages, - "dburl": "postgresql://bmiller@localhost/runestone", - "basecourse": "thinkcspy", - "downloads_enabled": "false", - "default_ac_lang": "python", - "enable_chatcodes": "false", - "allow_pairs": "false", - }, - ), -) - -if project_name == "": - print("Please edit pavement.py and give your project a name") - exit() - -version = pkg_resources.require("runestone")[0].version -options.build.template_args["runestone_version"] = version - -if ( - "DBHOST" in environ - and "DBPASS" in environ - and "DBUSER" in environ - and "DBNAME" in environ -): - options.build.template_args[ - "dburl" - ] = "postgresql://{DBUSER}:{DBPASS}@{DBHOST}/{DBNAME}".format(**environ) - -from runestone import build - -# build is called implicitly by the paver driver. - -template_args = { - "course_id": project_name, - "course_title": "C++\\ for\\ Python\\ Programmers", - "login_required": "false", - "appname": master_app, - "loglevel": 10, - "course_url": master_url, - "use_services": "true", - "python3": "true", - "dynamic_pages": dynamic_pages, - "dburl": "postgresql://bmiller@localhost/runestone", - "basecourse": "thinkcspy", - "downloads_enabled": "false", - "default_ac_lang": "python", - "enable_chatcodes": "false", - "allow_pairs": "false", -} \ No newline at end of file diff --git a/project.ptx b/project.ptx index d96d920..33abb24 100644 --- a/project.ptx +++ b/project.ptx @@ -21,7 +21,7 @@ epub pretext/cpp4python.ptx - pretext/publication-pub.xml + pretext/publication-rs-for-all.xml published/epub @@ -39,7 +39,7 @@ html source/cpp4python.ptx - publication/publication.ptx + pretext/publication-rs-for-all.xml output/subset