Skip to content

Commit

Permalink
Merge pull request #1200 from maths/API-ext
Browse files Browse the repository at this point in the history
API-ext - Revert Goemaxima versions, fix MathJax URL
  • Loading branch information
EJMFarrow authored Jun 5, 2024
2 parents 802b07d + 10e48d5 commit 77550a0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
5 changes: 3 additions & 2 deletions api/config_sample.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,13 @@ $CFG->inputmustverify = 1;
$CFG->inputshowvalidation = 1;

// These should match the version of goemaxima in docker-compose.
$CFG->stackmaximaversion = "2024060301";
$CFG->stackmaximaversion = "2024060300";
$CFG->version = "2024060300";

// Do not change this setting.
$CFG->mathsdisplay = 'api';

$CFG->libdir = $CFG->dirroot . '/emulation/libdir';

$CFG->mathjaxurl = 'https://cdn.jsdelivr.net/npm/[email protected]/MathJax.js?config=TeX-AMS-MML_HTMLorMML';
// MathJax URL
$CFG->httpsurl = 'https://cdn.jsdelivr.net/npm/[email protected]/MathJax.js?config=TeX-AMS-MML_HTMLorMML';
2 changes: 1 addition & 1 deletion api/docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "4.0"
services:
maxima:
image: mathinstitut/goemaxima:2024060301-latest
image: mathinstitut/goemaxima:2024060300-latest
tmpfs:
- "/tmp"
restart: unless-stopped
Expand Down
4 changes: 2 additions & 2 deletions api/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "4.0"
services:
maxima:
image: mathinstitut/goemaxima:2024060301-latest
image: mathinstitut/goemaxima:2024060300-latest
tmpfs:
- "/tmp"
restart: unless-stopped
Expand All @@ -15,7 +15,7 @@ services:
read_only: true
stack:
# Location of published STACK API image goes here.
image:
image:
restart: unless-stopped
ports:
- '3080:80'
7 changes: 0 additions & 7 deletions api/emulation/MoodleEmulation.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,6 @@ function require_login() {
return;
}

/*
* Gets the URL used for MathJax in iframes.
*/
function stack_get_mathjax_url(): string {
return get_config(null, 'mathjaxurl');
}

// Specialized emulations.
require_once('Constants.php');
require_once('Localization.php');
Expand Down

0 comments on commit 77550a0

Please sign in to comment.