-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpavement.py
More file actions
56 lines (49 loc) · 1.91 KB
/
pavement.py
File metadata and controls
56 lines (49 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import paver
from paver.easy import *
import paver.setuputils
paver.setuputils.install_distutils_tasks()
import os, sys
from runestone.server import get_dburl
from sphinxcontrib import paverutils
import pkg_resources
sys.path.append(os.getcwd())
home_dir = os.getcwd()
#master_url = 'http://127.0.0.1:8000'
master_url = 'https://daveparillo.github.io/cisc187-reader/'
master_app = 'cisc187-reader'
serving_dir = "./docs"
dest = "../../static"
options(
sphinx = Bunch(docroot=".",),
build = Bunch(
builddir=serving_dir,
sourcedir="_sources",
outdir=serving_dir,
confdir=".",
project_name = "cisc187-reader",
template_args={'course_id': 'cisc187-reader',
'login_required':'false',
'appname':master_app,
'loglevel': 0,
'course_url':master_url,
'use_services': 'false',
'downloads_enabled': 'false',
'enable_chatcodes': 'false',
'allow_pairs': 'false',
'dynamic_pages': False,
'minimal_outside_links': True,
'python3': 'true',
'dburl': '',
'default_ac_lang': 'cpp',
'basecourse': 'cisc187-reader',
'jobe_server': 'https://delicate-frost-8843.fly.dev',
'proxy_uri_runs': '/jobe/index.php/restapi/runs/',
'proxy_uri_files': '/jobe/index.php/restapi/files/'
}
)
)
version = pkg_resources.require("runestone")[0].version
options.build.template_args['runestone_version'] = version
# If DBUSER etc. are in the environment override dburl
options.build.template_args['dburl'] = get_dburl(outer=locals())
from runestone import build # build is called implicitly by the paver driver.