The project name, for use below.
True if this project uses Runestone services.
The root directory for runestone serve
.
The destination directory for runestone deploy
.
dest = "./published"
options(
sphinx=Bunch(docroot="."),
build=Bunch(
builddir=serving_dir,
sourcedir="_sources",
outdir=serving_dir,
confdir=".",
template_args={
"login_required": "true",
"loglevel": 10,
"course_title": project_name,
"python3": "false",
"dburl": "postgresql://user:password@localhost/runestone",
"default_ac_lang": "python",
"jobe_server": "http://jobe2.cosc.canterbury.ac.nz",
"proxy_uri_runs": "/jobe/index.php/restapi/runs/",
"proxy_uri_files": "/jobe/index.php/restapi/files/",
"downloads_enabled": "false",
"enable_chatcodes": "false",
"allow_pairs": "false",
"dynamic_pages": True,
"use_services": use_services,
"basecourse": project_name,
If use_services
is ‘true’, then the following values are ignored, since they’re provided by the server.
if we are on runestone-deploy then use the proxy server not canterbury
if gethostname() == "runestone-deploy":
del options.build.template_args["jobe_server"]
del options.build.template_args["proxy_uri_runs"]
del options.build.template_args["proxy_uri_files"]
version = pkg_resources.require("runestone")[0].version
options.build.template_args["runestone_version"] = version
If DBURL is in the environment override dburl