File tree Expand file tree Collapse file tree 8 files changed +24
-7
lines changed
Expand file tree Collapse file tree 8 files changed +24
-7
lines changed Original file line number Diff line number Diff line change 1313 },
1414 "remoteUser" : " vscode" ,
1515 "postCreateCommand" : " /bin/bash .devcontainer/postCreate.sh" ,
16- "postAttachCommand" : " xlings checker"
16+ "postAttachCommand" : " d2x checker"
1717}
Original file line number Diff line number Diff line change @@ -6,7 +6,13 @@ sudo apt-get update
66sudo apt-get install -y ncurses-bin libtinfo6 libncursesw6 curl ca-certificates git
77
88if ! command -v xlings > /dev/null 2>&1 ; then
9- curl -fsSL https://d2learn.org/ xlings-install .sh | bash
9+ curl -fsSL https://raw.githubusercontent.com/d2learn/ xlings/refs/heads/main/tools/other/quick_install .sh | bash -s -- v0.4.2
1010fi
1111
12- echo " xlings installed"
12+ echo " xlings installed"
13+
14+ # source PATH so xlings/d2x are available in this shell
15+ export PATH=" $HOME /.xlings/subos/current/bin:$PATH "
16+ [ -f " $HOME /.bashrc" ] && source " $HOME /.bashrc"
17+
18+ xlings install
Original file line number Diff line number Diff line change @@ -40,17 +40,23 @@ jobs:
4040
4141 steps :
4242 - uses : actions/checkout@v4
43- - name : Install mdBook by Xlings
43+
44+ - name : Install Xlings
45+ env :
46+ XLINGS_NON_INTERACTIVE : 1
4447 run : |
4548 curl -fsSL https://d2learn.org/xlings-install.sh | bash
46- export PATH=/home/xlings/.xlings_data/bin:$PATH
47- xlings install mdbook@${MDBOOK_VERSION} --global -y
49+ echo "PATH=$HOME/.xlings/subos/current/bin:$PATH" >> "$GITHUB_ENV"
50+
51+ - name : Install mdBook
52+ run : xlings install mdbook@${MDBOOK_VERSION} -y
53+
4854 - name : Setup Pages
4955 id : pages
5056 uses : actions/configure-pages@v4
57+
5158 - name : Build with mdBook
5259 run : |
53- export PATH=/home/xlings/.xlings_data/bin:$PATH
5460 ./build.sh
5561 - name : Upload artifact
5662 uses : actions/upload-pages-artifact@v3
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ irm https://d2learn.org/xlings-install.ps1.txt | iex
6767</details >
6868
6969``` bash
70+ xlings install d2x -y
7071d2x install d2mcpp
7172cd d2mcpp
7273d2x checker
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ irm https://d2learn.org/xlings-install.ps1.txt | iex
6767</details >
6868
6969``` bash
70+ xlings install d2x -y
7071d2x install d2mcpp
7172cd d2mcpp
7273d2x checker
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ irm https://d2learn.org/xlings-install.ps1.txt | iex
6767</details >
6868
6969``` bash
70+ xlings install d2x -y
7071d2x install d2mcpp
7172cd d2mcpp
7273d2x checker
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ irm https://d2learn.org/xlings-install.ps1.txt | iex
6363</details >
6464
6565``` bash
66+ xlings install d2x -y
6667d2x install d2mcpp
6768cd d2mcpp
6869d2x checker
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ irm https://d2learn.org/xlings-install.ps1.txt | iex
6363</details >
6464
6565``` bash
66+ xlings install d2x -y
6667d2x install d2mcpp
6768cd d2mcpp
6869d2x checker
You can’t perform that action at this time.
0 commit comments