Skip to content

Commit 1b11f01

Browse files
authored
fix: Error while running Devcontainer (#567)
* fix: reverse prettier changes in content * chore: include dart-sass in Docker container * chore: update node version in GitHub workflow
1 parent ecf58f1 commit 1b11f01

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

.devcontainer/Dockerfile

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,34 @@ FROM mcr.microsoft.com/devcontainers/javascript-node:${NODE_VERSION}
55
# VARIANT can be either 'hugo' for the standard version or 'hugo_extended' for the extended version.
66
ARG VARIANT=hugo_extended
77
# VERSION can be either 'latest' or a specific version number
8-
ARG VERSION=latest
8+
ARG HUGO_VERSION="0.147.8"
9+
10+
ARG DART_SASS_VERSION="1.89.2"
911

1012
# Download Hugo
1113
RUN apt-get update && apt-get install -y ca-certificates openssl git curl && \
1214
rm -rf /var/lib/apt/lists/* && \
13-
case ${VERSION} in \
14-
latest) \
15-
export VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}') ;;\
15+
case $(uname -m) in \
16+
aarch64) \
17+
export ARCH=arm64 ;; \
18+
*) \
19+
export ARCH=x64 ;; \
1620
esac && \
17-
echo ${VERSION} && \
21+
echo ${ARCH} && \
22+
curl -LJO https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-${ARCH}.tar.gz && \
23+
tar -xf dart-sass-${DART_SASS_VERSION}-linux-${ARCH}.tar.gz && \
24+
cp -r dart-sass/* /usr/local/bin && \
25+
rm -rf dart-sass* && \
1826
case $(uname -m) in \
1927
aarch64) \
20-
export ARCH=ARM64 ;; \
28+
export ARCH=arm64 ;; \
2129
*) \
22-
export ARCH=64bit ;; \
30+
export ARCH=amd64 ;; \
2331
esac && \
2432
echo ${ARCH} && \
25-
wget -O ${VERSION}.tar.gz https://github.com/gohugoio/hugo/releases/download/v${VERSION}/${VARIANT}_${VERSION}_Linux-${ARCH}.tar.gz && \
26-
tar xf ${VERSION}.tar.gz && \
33+
wget -O ${HUGO_VERSION}.tar.gz https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${VARIANT}_${HUGO_VERSION}_linux-${ARCH}.tar.gz && \
34+
tar xf ${HUGO_VERSION}.tar.gz && \
2735
mv hugo /usr/bin/hugo
28-
2936
# Hugo dev server port
3037
EXPOSE 1313
3138

.github/workflows/format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: setup node
1414
uses: actions/setup-node@v4
1515
with:
16-
node-version: 20
16+
node-version: 22
1717
- name: install
1818
run: |
1919
npm ci

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ contact.html
22
resources
33
exampleSite/public
44
exampleSite/resources
5+
exampleSite/content
56
anatole.scss
67
anatole.rtl.scss
78
assets/fontawesome/css/*.min.css

exampleSite/content/english/post/math-typesetting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $$
3939
Chemical equations:
4040

4141
\[
42-
\tag\*{(2)} \ce{Zn^2+ <=>[+ 2OH-][+ 2H+] $\underset{\text{amphoteric hydroxide}}{\ce{Zn(OH)2 v}}$ <=>[+ 2OH-][+ 2H+] $\underset{\text{tetrahydroxozincate}}{\ce{[Zn(OH)4]^2-}}$}
42+
\tag*{(2)} \ce{Zn^2+ <=>[+ 2OH-][+ 2H+] $\underset{\text{amphoteric hydroxide}}{\ce{Zn(OH)2 v}}$ <=>[+ 2OH-][+ 2H+] $\underset{\text{tetrahydroxozincate}}{\ce{[Zn(OH)4]^2-}}$}
4343
\]
4444

4545
**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)

0 commit comments

Comments
 (0)