Skip to content

improve devcontainer and codechat #813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@
},
"vscode": {
"settings": {
"workbench.editorAssociations": {
"codespace-welcome.md": "vscode.markdown.preview.editor"
},
"editor.quickSuggestions": {
"other": "off"
},
Expand All @@ -56,7 +53,7 @@
"pretext-tools.schema.versionName": "Custom",
"pretext-tools.schema.customPath": "/workspaces/library/schema/tbil.rng",
"redhat.telemetry.enabled": false,
"CodeChat.CodeChatServer.Command": "CodeChat_Server",
"CodeChat.CodeChatServer.Command": "/opt/conda/envs/sage/bin/CodeChat_Server",
"files.eol": "\n",
"git.autofetch": true
},
Expand Down
6 changes: 3 additions & 3 deletions .devcontainer/installLatex.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env bash

# This file was automatically generated with PreTeXt 2.17.1.
# This file was automatically generated with PreTeXt 2.19.1.
# If you modify this file, PreTeXt will no longer automatically update it.

# We use TinyTeX (https://yihui.org/tinytex/)
wget -qO- "https://yihui.org/tinytex/install-bin-unix.sh" | sh

tlmgr install adjustbox amscdx bold-extra braket bussproofs cancel carlisle cases chessfss circuitikz colortbl enumitem extpfeil fontawesome5 fontaxes gensymb imakeidx jknapltx kastrup lambda-lists listings listingsutf8 marvosym mathalpha mathtools menukeys mhchem microtype musicography newpx newtx nicematrix pdfcol pdfpages pdflscape pgfplots phaistos physics polyglossia pstricks realscripts relsize siunitx skak skaknew smartdiagram snapshot stmaryrd tcolorbox tikzfill titlesec txfonts ulem upquote was xfrac xltxtra xpatch xstring
tlmgr install adjustbox amscdx bold-extra braket bussproofs cancel carlisle cases chessfss circuitikz colortbl enumitem extpfeil fontawesome5 fontaxes gensymb imakeidx jknapltx kastrup lambda-lists listings listingsutf8 marvosym mathalpha mathtools menukeys mhchem microtype musicography newpx newtx nicematrix pdfcol pdfpages pdflscape pgfplots phaistos physics polyglossia pstricks realscripts relsize siunitx skak skaknew smartdiagram snapshot stmaryrd tcolorbox tikz-cd tikzfill titlesec txfonts ulem upquote was xfrac xltxtra xpatch xstring

tlmgr path add

Expand All @@ -26,4 +26,4 @@ else
echo "Fontconfig file already exists at $fontconfig_path"
fi
# Update font cache
fc-cache -f -v
fc-cache -f -v
17 changes: 0 additions & 17 deletions .devcontainer/installPandoc.sh

This file was deleted.

27 changes: 0 additions & 27 deletions .devcontainer/installPretext.sh

This file was deleted.

6 changes: 4 additions & 2 deletions .devcontainer/installSage.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env bash

# This file was automatically generated with PreTeXt 2.17.1.
# If you modify this file, PreTeXt will no longer automatically update it.
# This file is based upon PreTeXt 2.19.1.

# Conda should already be installed in the codespace. We need to add the conda-forge channel

Expand All @@ -13,10 +12,13 @@ conda config --set auto_activate_base false

# Now create a conda environment for sage (called sage):
conda create --yes -n sage sage python=3.12

conda init

echo 'conda activate sage' >> ~/.bashrc

eval "$('conda' 'shell.bash' 'hook' 2> /dev/null)"
conda activate sage
export SAGE_PATH=$(which sage)
echo "<executables sage=\"${SAGE_PATH}\"/>" > ./executables.ptx

2 changes: 1 addition & 1 deletion codechat_config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
output_path: output/authoring-preview
args: "/opt/conda/envs/sage/bin/python -m pretext build authoring-preview --xmlid {xml_id} --no-knowls"
args: "/opt/conda/envs/sage/bin/python -m pretext -v debug build -g authoring-preview --xmlid {xml_id} --no-knowls"
project_type: PreTeXt
3 changes: 0 additions & 3 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,3 @@ eval "$('conda' 'shell.bash' 'hook' 2> /dev/null)"
conda activate sage
python -m pip install -r requirements.txt

playwright install-deps
playwright install

Loading