Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 5a7c64a

Browse files
authored
Merge branch 'RunestoneInteractive:master' into master
2 parents 270f03e + e8562bf commit 5a7c64a

File tree

9 files changed

+473
-10
lines changed

9 files changed

+473
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*.py[cod]
55
*.log
66
.venv
7+
jsdist
78

89
# C extensions
910
*.so

makeRelease.sh

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,21 @@ if [ $# -eq 0 ]
1212
fi
1313

1414
while true; do
15-
read -p "Did you update/commit the version in setup.py " yn
15+
read -p "Did you update/commit the version in pyproject.toml " yn
1616
case $yn in
1717
[Yy]* ) break;;
1818
[Nn]* ) exit;;
1919
* ) echo "Please answer yes or no.";;
2020
esac
2121
done
2222

23-
rm -f dist/*
23+
echo "Building webpack bundle"
2424
npm run dist
25-
python setup.py sdist
26-
pip wheel --no-index --no-deps --global-option bdist_wheel --wheel-dir dist dist/*.tar.gz
27-
28-
29-
twine check dist/*
30-
twine upload dist/*
3125

26+
echo "building python package"
27+
poetry build
28+
poetry publish
29+
3230
echo "tagging this release and pushing to github"
3331

3432
git tag -a $1 -m 'tag new version'
@@ -44,6 +42,7 @@ if [ -d ~/.virtualenvs/json2xml ]
4442
cd runestone
4543
tar --strip-components 1 -zcf dist-$1.tgz dist/*
4644
scp dist-$1.tgz balance.runestoneacademy.org:~/
45+
mv dist-$1.tgz ../jsdist
4746
else
4847
echo "Warning: no json2xml ve found skipping pretext"
4948
fi

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ classifiers = [
2323
"Programming Language :: Python :: 3",
2424
"Programming Language :: Python :: 3.7",
2525
"Programming Language :: Python :: 3.8",
26+
"Programming Language :: Python :: 3.9",
2627
"Topic :: Education",
2728
"Topic :: Text Processing :: Markup",
2829
]
@@ -33,7 +34,7 @@ license = "GPL"
3334
name = "runestone"
3435
readme = "README.rst"
3536
repository = "https://github.com/RunestoneInteractive/RunestoneComponents"
36-
version = "6.2.3dev"
37+
version = "6.3.0"
3738

3839
# See https://python-poetry.org/docs/pyproject/#include-and-exclude.
3940
include = [

runestone/common/js/pretext.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ function setupPTXEvents() {
1919
let code = $(container[0]).find(".sagecell_input")[0].textContent;
2020
rb.logBookEvent({ event: "sage", act: "run", div_id: container[0].id });
2121
});
22+
if (!eBookConfig.isInstructor) {
23+
$(".commentary").hide();
24+
}
2225
}
2326

2427
window.addEventListener("load", function () {

runestone/common/js/runestonebase.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,9 @@ export default class RunestoneBase {
437437
if (MathJax.version.substring(0, 1) === "2") {
438438
MathJax.Hub.Queue(["Typeset", MathJax.Hub, component]);
439439
} else {
440+
// See - https://docs.mathjax.org/en/latest/advanced/typeset.html
441+
// Per the above we should keep track of the promises and only call this
442+
// a second time if all previous promises have resolved.
440443
MathJax.typesetPromise([component]);
441444
}
442445
}

0 commit comments

Comments
 (0)