This repository was archived by the owner on Jun 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -208,7 +208,6 @@ def build(options):
208208 "presenter_mode.css" ,
209209 "jquery-ui-1.10.3.custom.min.css" ,
210210 "bootstrap-sphinx.css" ,
211- "user-highlights.css" ,
212211 "runestone-custom-sphinx-bootstrap.css?v=" + runestone_version ,
213212 "theme-overrides.css" ,
214213]
Original file line number Diff line number Diff line change 11import { ActiveCode } from "./activecode.js" ;
22import MD5 from "./md5.js" ;
33import JUnitTestParser from "./extractUnitResults.js" ;
4+ import "../../codelens/js/pytutor-embed.bundle.js" ;
45
56export default class LiveCode extends ActiveCode {
67 constructor ( opts ) {
Original file line number Diff line number Diff line change 1111 return the buttons, but I'm having a hard time thinking of any other use for that besides mine.
1212 */
1313
14+ import RunestoneBase from "../../common/js/runestonebase.js" ;
15+ import "./pytutor-embed.bundle.js" ;
1416import "./../css/pytutor.css" ;
1517
1618function attachLoggers ( codelens , divid ) {
Original file line number Diff line number Diff line change 2929def setup (app ):
3030 app .add_directive ("codelens" , Codelens )
3131
32- app .add_autoversioned_javascript ("pytutor-embed.bundle.js" )
33-
3432 app .add_config_value ("codelens_div_class" , "alert alert-warning cd_section" , "html" )
3533 app .add_config_value ("trace_url" , "http://tracer.runestone.academy:5000" , "html" )
3634 app .add_node (CodeLensNode , html = (visit_codelens_node , depart_codelens_node ))
@@ -40,7 +38,7 @@ def setup(app):
4038
4139VIS = """
4240<div class="runestone" style="max-width: none;">
43- <div class="%(divclass)s" data-question_label="%(question_label)s">
41+ <div class="%(divclass)s" data-component="codelens" data- question_label="%(question_label)s">
4442 <div class="pytutorVisualizer" id="%(divid)s"
4543 data-params='{"embeddedMode": true, "lang": "%(language)s", "jumpToEnd": false}'>
4644 </div>
Original file line number Diff line number Diff line change 1- import TimedMC from "../../mchoice/js/timedmc" ;
2-
31export function renderRunestoneComponent ( componentSrc , whereDiv , moreOpts ) {
42 /**
53 * The easy part is adding the componentSrc to the existing div.
Original file line number Diff line number Diff line change 22
33"use strict" ;
44
5- import RunestoneBase from "./runestonebase" ;
65import "../css/user-highlights.css" ;
76
8- var urlList ;
9- var extendType ;
10- var rsb = new RunestoneBase ( ) ;
117
128function getCompletions ( ) {
139 // Get the completion status
Original file line number Diff line number Diff line change 66import {
77 renderRunestoneComponent ,
88 createTimedComponent ,
9- } from "../../common/js/renderComponent" ;
10- import RunestoneBase from "../../common/js/runestonebase" ;
9+ } from "../../common/js/renderComponent.js " ;
10+ import RunestoneBase from "../../common/js/runestonebase.js " ;
1111import "../css/selectquestion.css" ;
1212
1313export default class SelectOne extends RunestoneBase {
@@ -193,7 +193,7 @@ export default class SelectOne extends RunestoneBase {
193193 }
194194 ///////////////////////////
195195 // just render this component on the page in its usual place
196- res = renderRunestoneComponent ( htmlsrc , selectorId , {
196+ renderRunestoneComponent ( htmlsrc , selectorId , {
197197 selector_id : selectorId ,
198198 useRunestoneServices : true ,
199199 } ) ;
You can’t perform that action at this time.
0 commit comments