mirror of https://github.com/lxndrblz/anatole.git

Alexander Bilz
19.40.2025 1b11f01e45343a440917e676763ab939a0437727
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
4 files modified
34 ■■■■■ changed files
.devcontainer/Dockerfile 29 ●●●●● patch | view | raw | blame | history
.github/workflows/format.yml 2 ●●● patch | view | raw | blame | history
.prettierignore 1 ●●●● patch | view | raw | blame | history
exampleSite/content/english/post/math-typesetting.md 2 ●●● patch | view | raw | blame | history
.devcontainer/Dockerfile
@@ -5,27 +5,34 @@
# VARIANT can be either 'hugo' for the standard version or 'hugo_extended' for the extended version.
ARG VARIANT=hugo_extended
# VERSION can be either 'latest' or a specific version number
ARG VERSION=latest
ARG HUGO_VERSION="0.147.8"
ARG DART_SASS_VERSION="1.89.2"
# Download Hugo
RUN apt-get update && apt-get install -y ca-certificates openssl git curl && \
    rm -rf /var/lib/apt/lists/* && \
    case ${VERSION} in \
    latest) \
    export VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}') ;;\
    esac && \
    echo ${VERSION} && \
    case $(uname -m) in \
    aarch64) \
    export ARCH=ARM64 ;; \
    export ARCH=arm64 ;; \
    *) \
    export ARCH=64bit ;; \
    export ARCH=x64 ;; \
    esac && \
    echo ${ARCH} && \
    wget -O ${VERSION}.tar.gz https://github.com/gohugoio/hugo/releases/download/v${VERSION}/${VARIANT}_${VERSION}_Linux-${ARCH}.tar.gz && \
    tar xf ${VERSION}.tar.gz && \
    curl -LJO https://github.com/sass/dart-sass/releases/download/${DART_SASS_VERSION}/dart-sass-${DART_SASS_VERSION}-linux-${ARCH}.tar.gz && \
    tar -xf dart-sass-${DART_SASS_VERSION}-linux-${ARCH}.tar.gz && \
    cp -r dart-sass/* /usr/local/bin && \
    rm -rf dart-sass* && \
    case $(uname -m) in \
    aarch64) \
    export ARCH=arm64 ;; \
    *) \
    export ARCH=amd64 ;; \
    esac && \
    echo ${ARCH} && \
    wget -O ${HUGO_VERSION}.tar.gz https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${VARIANT}_${HUGO_VERSION}_linux-${ARCH}.tar.gz && \
    tar xf ${HUGO_VERSION}.tar.gz && \
    mv hugo /usr/bin/hugo
# Hugo dev server port
EXPOSE 1313
.github/workflows/format.yml
@@ -13,7 +13,7 @@
      - name: setup node
        uses: actions/setup-node@v4
        with:
          node-version: 20
          node-version: 22
      - name: install
        run: |
          npm ci
.prettierignore
@@ -2,6 +2,7 @@
resources
exampleSite/public
exampleSite/resources
exampleSite/content
anatole.scss
anatole.rtl.scss
assets/fontawesome/css/*.min.css
exampleSite/content/english/post/math-typesetting.md
@@ -39,7 +39,7 @@
Chemical equations:
\[
\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-}}$}
\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-}}$}
\]
**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)