This is for discussion related to moving as much responsibility for eBookConfig to Runestone as possible.
Here is what the _base.html emitted by RS has:
eBookConfig property |
Runestone-hosted context variable / source |
Non-Runestone-hosted value |
🟢 🔵 🟡 useRunestoneServices |
Fixed: true |
false |
🔴 host |
Fixed: '' |
http://127.0.0.1:8000 |
🔴 app |
Derived from host |
Not set |
🟢 course |
course_name |
PTX_Course_Title_Here |
🟢 termStartDate |
term_start_date |
Not set |
🟢 basecourse |
base_course |
PTX_Base_Course |
🟢 isLoggedIn |
is_logged_in (default false) |
false |
🟢 email |
user_email |
'' |
🟢 isInstructor |
is_instructor (default false) |
false |
🟢 🔵 logLevel |
Fixed: 10 |
0 |
🔴 ajaxURL |
Derived from app |
Not set |
🟢 username |
user_id |
'' |
🟢 readings |
readings (default []) |
null |
🟢 activities |
activity_info (default {}) |
null |
🟢 🟡 downloadsEnabled |
downloads_enabled (default false) |
false |
🟢 🟡 allow_pairs |
allow_pairs (default false) |
false |
🟢 course_attrs |
course_attrs (default {}, JSON-encoded) |
Not set |
🟢 🔵 🟡 enableScratchAC |
Publisher option: $b-has-scratch-activecode |
Same |
🟢 🔵 🟡 acDefaultLanguage |
$html-scratch-activecode-language, when Scratch enabled |
Same |
new_server_prefix |
Fixed: "/ns" |
Not set |
🟡 runestone_version |
$runestone-version |
Same |
🔴 build_info |
Not set |
'' |
🔴 python3 |
Not set |
null |
🔴 jobehost |
Not set |
'' |
🔴 proxyuri_runs |
Not set |
'' |
🔴 proxyuri_files |
Not set |
'' |
🔴 enable_chatcodes |
Not set |
false |
🟢 Definitely needed for RA
🔴 Should be removed, potentially with a bit of work
🔵 Needed for static html
🟡 Gets a value set by PreTeXt
This is for discussion related to moving as much responsibility for eBookConfig to Runestone as possible.
Here is what the _base.html emitted by RS has:
eBookConfigpropertyuseRunestoneServicestruefalsehost''http://127.0.0.1:8000apphostcoursecourse_namePTX_Course_Title_HeretermStartDateterm_start_datebasecoursebase_coursePTX_Base_CourseisLoggedInis_logged_in(defaultfalse)falseemailuser_email''isInstructoris_instructor(defaultfalse)falselogLevel100ajaxURLappusernameuser_id''readingsreadings(default[])nullactivitiesactivity_info(default{})nulldownloadsEnableddownloads_enabled(defaultfalse)falseallow_pairsallow_pairs(defaultfalse)falsecourse_attrscourse_attrs(default{}, JSON-encoded)enableScratchAC$b-has-scratch-activecodeacDefaultLanguage$html-scratch-activecode-language, when Scratch enablednew_server_prefix"/ns"runestone_version$runestone-versionbuild_info''python3nulljobehost''proxyuri_runs''proxyuri_files''enable_chatcodesfalse🟢 Definitely needed for RA
🔴 Should be removed, potentially with a bit of work
🔵 Needed for static html
🟡 Gets a value set by PreTeXt