Skip to content

Commit bf8fca7

Browse files
committed
Update to v2.7.0
1 parent 2c76ba4 commit bf8fca7

File tree

8 files changed

+70
-12
lines changed

8 files changed

+70
-12
lines changed

.devcontainer/devcontainer.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "Ximera Dev Container",
3+
// "image": "ghcr.io/ximeraproject/xake2024:latest",
4+
"dockerComposeFile": ["docker-compose.yml"],
5+
"service": "app",
6+
"workspaceFolder": "/code",
7+
"forwardPorts": [2080], // Port to access the web server
8+
"portsAttributes": {
9+
"2080": {
10+
"label": "Web Server",
11+
"onAutoForward": "notify",
12+
"requireLocalPort": true
13+
}
14+
},
15+
// "portsAttributes": {
16+
// "2000": {
17+
// "label": "XimeraServer",
18+
// "onAutoForward": "openBrowserOnce"
19+
// }
20+
// },
21+
// "otherPortsAttributes": {
22+
// "onAutoForward": "ignore",
23+
// },
24+
// "remoteEnv": {
25+
// "DEV_MODE": "true"
26+
// },
27+
// "remoteUser": "vscode",
28+
// "postStartCommand": "echo 'Ximera DevContainer started!'",
29+
"customizations": {
30+
// Configure properties specific to VS Code.
31+
"vscode": {
32+
// Add the IDs of extensions you want installed when the container is created.
33+
"extensions": [
34+
"james-yu.latex-workshop",
35+
// "ritwickdey.liveserver",
36+
"spencerwmiles.vscode-task-buttons"
37+
]
38+
}
39+
}
40+
}

.devcontainer/docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
services:
2+
app:
3+
image: ghcr.io/ximeraproject/ximeralatex:v2.7.0
4+
# image: ghcr.io/ximeraproject/ximeralatex:v2.7.0-full
5+
volumes:
6+
# This is where VS Code should expect to find your project's source code and the value of "workspaceFolder" in .devcontainer/devcontainer.json
7+
- ..:/code:cached
8+
command: /bin/sh -c "while sleep 1000; do :; done" # run forever
9+
network_mode: service:ximeraserver
10+
ximeraserver:
11+
image: registry.gitlab.kuleuven.be/wet/ximera/ximeradocker:2.3_b
12+
ports:
13+
- "2080:2000" # Expose Ximera on port 2080

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ xmPictures/**
1818
!xmPictures/**/*.svg
1919
!xmPictures/**/*.pdf
2020
!xmPictures/**/*.png
21+
!xmPictures/**/*.tex
2122
## Note: capital JPG/PDF/PNG should NOT be used ...
2223
!xmPictures/**/*.JPG
2324
!xmPictures/**/*.SVG

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
{
147147
"task": "Generate GPG key",
148148
"label": "Generate a (new) GPG key",
149-
"description": "First add your name/email to config.txt",
149+
"description": "It will be stored in .xmKeyfile. First edit config.txt if not-for-testing-only.",
150150
"problemMatcher": [],
151151
},
152152
],

.vscode/tasks.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@
2121
{
2222
"label": "HTML",
2323
"args": [
24-
"bake",
24+
"ghaction",
2525
"--force",
26-
"--compile draft.html",
26+
"--compile html",
2727
"${relativeFile}"
2828
],
2929
},
3030
{
3131
"label": "SERVE",
3232
"args": [
33-
"all"
33+
"all",
34+
"-s",
3435
],
3536
},
3637
{
@@ -68,13 +69,15 @@
6869
"label": "Bake PDF",
6970
"args": [
7071
"bake",
72+
"-d",
7173
"--compile pdf",
7274
],
7375
},
7476
{
7577
"label": "Bake PDF (force rebuild)",
7678
"args": [
7779
"bake",
80+
"-d",
7881
"-f",
7982
"--compile pdf",
8083
],

xmScripts/config.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# version of Ximera xake container to use (with xmlatex)
33
#
44
# : "${XAKE_BASE:=ximeralatex}"
5-
# : "${XAKE_VERSION:=v2.5.10}"
6-
: "${XAKE_VERSION:=v2.5.10-full}" # with texlive_full
5+
# : "${XAKE_VERSION:=v2.7.0}"
6+
# : "${XAKE_VERSION:=v2.7.0-full}" # with texlive_full
77
#
88
# For publishing you'll need a GPG Key
99
# To generate a key-pair, fill in your name and email, and run 'xmlatex genKey'
@@ -49,7 +49,7 @@ YOUR_EMAIL="[email protected]"
4949
#
5050
# For use in Actions, and perhaps to adapt the functionality of the PDF/HTML/SERVE buttons
5151
#
52-
# export XM_COMPILE_SEQUENCE=draft.html # which output to generate, eg "handout.pdf,draft.html"
52+
# export XM_COMPILE_SEQUENCE=html # which output to generate, eg "pdf,handout.pdf,html"
5353
# export XM_TO_PROCESS=aFirstXourse.tex # only build/frost/serve these files/courses
5454
# export XM_CONFIGFILE=more.cfg # exotic: if you want to use a different TeX4ht config file
5555
# export XM_SETTINGSFILE=config.lua # yet another way to set some options/Settings

xmScripts/xmlatex

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ fi
4343
#
4444
# default docker image to run; overwrite with 'export XAKE_IMAGE=myxake:0.1'
4545
: "${XAKE_BASE:=ximeralatex}"
46-
: "${XAKE_VERSION:=v2.5.10}"
47-
# : "${XAKE_BASE:=xake2019}"
48-
# : "${XAKE_VERSION:=v2.1.1}"
46+
: "${XAKE_VERSION:=v2.7.0}"
4947
: "${XAKE_CONTAINER:=$XAKE_BASE:$XAKE_VERSION}"
5048
: "${DOCKER_REPO:=ghcr.io/ximeraproject/}"
5149

5250
# For historic compatibility, keep supporting XAKE_IMAGE
5351
: "${XAKE_IMAGE:=$DOCKER_REPO$XAKE_CONTAINER}" # TO BE OBSOLETED
5452
: "${DOCKER_IMAGE:=$XAKE_IMAGE}"
53+
: "${DOCKER_DEFAULT_PLATFORM:=linux/amd64}" # needed for MacOS ?
54+
export DOCKER_DEFAULT_PLATFORM
5555

5656
: "${SERVER_PORT:=2000}"
5757
: "${SERVER_NAME:=ximeraserver}"
@@ -112,6 +112,8 @@ else
112112
fi
113113

114114
echo "Restarting myself in docker (from image $DOCKER_IMAGE)"
115+
tty >/dev/null && INTERACTIVE="-it" # HACK: in termanal, run with -it, to process interrupts with CTRL-C
116+
115117
[[ -n "$DEBUG" ]] && echo \
116118
docker run --env LOCAL_IP --env XIMERA_URL --env XIMERA_NAME --env GPG_KEY --env GPG_KEY_ID --env DEBUG --network host --rm $INTERACTIVE --mount type=bind,source=$MOUNTDIR,target=/code $DOCKER_IMAGE $COMMAND $*
117119
docker run --env LOCAL_IP --env XIMERA_URL --env XIMERA_NAME --env GPG_KEY --env GPG_KEY_ID --env DEBUG --network host --rm $INTERACTIVE --mount type=bind,source=$MOUNTDIR,target=/code $DOCKER_IMAGE $COMMAND $*

xmScripts/xmlatex.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
@echo off
22
set str=%*
33
set "str=%str:\=/%"
4-
set "DOCKER_IMAGE=ghcr.io/ximeraproject/ximeralatex:v2.5.8"
5-
@REM set "DOCKER_IMAGE=ghcr.io/ximeraproject/xake2024:v2.4.2"
4+
set "DOCKER_IMAGE=ghcr.io/ximeraproject/ximeralatex:v2.6.8"
65
echo Starting docker %DOCKER_IMAGE% with args %str% in directory %cd%.
76
echo docker run --rm --net="host" --mount type=bind,source=%cd%,target=/code %DOCKER_IMAGE% xmlatex %str%
87
docker run --rm --net="host" --mount type=bind,source=%cd%,target=/code %DOCKER_IMAGE% xmlatex %str%

0 commit comments

Comments
 (0)