From 3fd02e01f086d160d3e3b322825ddd03e9b1b0e0 Mon Sep 17 00:00:00 2001 From: erkamyaman Date: Fri, 13 Nov 2026 16:37:13 +0300 Subject: [PATCH] build: install @slide-ng/core 3.5.1 by default --- .env.example | 4 ++-- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- .github/workflows/build.yml | 2 +- CHANGELOG.md | 2 +- Dockerfile | 4 ++-- README.md | 4 ++-- docker-compose.yml | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.env.example b/.env.example index 84be044..84d1081 100644 --- a/.env.example +++ b/.env.example @@ -3,5 +3,5 @@ SLIDES_PASSWORD=change-me-to-something-long # Your user and group, so files written to ./out belong to you: run `id -u` and `id -g`. SLIDES_UID=1000 SLIDES_GID=1000 -# What to install in the image: an npm name such as @slide-ng/core@3.4.0, or a tarball in ./packages. -SLIDE_NG_SOURCE=@slide-ng/core@3.4.0 +# What to install in the image: an npm name such as @slide-ng/core@3.5.1, or a tarball in ./packages. +SLIDE_NG_SOURCE=@slide-ng/core@3.5.1 diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 2834014..ebc49df 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -36,7 +36,7 @@ body: id: image attributes: label: Image tag or commit, and slide.ng version - placeholder: slide-ng-docker:local built from commit abc1234, slide.ng 3.4.0 + placeholder: slide-ng-docker:local built from commit abc1234, slide.ng 3.5.1 validations: required: true - type: input diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a48537..b1a5afe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ on: workflow_dispatch: inputs: slide_ng_source: - description: "SLIDE_NG_SOURCE: an npm name such as @slide-ng/core@3.4.0. Leave empty to pack the slide.ng repository." + description: "SLIDE_NG_SOURCE: an npm name such as @slide-ng/core@3.5.1. Leave empty to pack the slide.ng repository." required: false permissions: diff --git a/CHANGELOG.md b/CHANGELOG.md index a0e9893..2ec6057 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ All notable changes are listed here. The format follows [Keep a Changelog](https - The repository is now `slide-ng/docker` (it was `slide-ng/slide.ng-docker`); links point to the new name. - The image installs `@slide-ng/core@2.0.0` from npm by default (it was `0.1.0`; the first default, `slide-ng`, was not the package name). `.env.example` and `docker-compose.yml` use the same default; a tarball in `packages/` still works. - The image installs `@slide-ng/core@2.2.0` by default (it was `2.0.0`). A deck's `slide-ng.config.yaml`, new in slide.ng 2.2, sits next to `slides.md` in `/slides`, so every mode reads it and `watch` rebuilds when it changes. -- The image installs `@slide-ng/core@3.4.0` by default (it was `3.3.0`, before that `3.2.0`, `3.1.1`, `3.1.0`, `3.0.0` and `2.2.0`). slide.ng 3.1's `browser.proxy` needs no change to the image: the proxy is a separate host that a deck names in its headmatter. +- The image installs `@slide-ng/core@3.5.1` by default (it was `3.4.0`, before that `3.3.0`, `3.2.0`, `3.1.1`, `3.1.0`, `3.0.0` and `2.2.0`). slide.ng 3.1's `browser.proxy` needs no change to the image: the proxy is a separate host that a deck names in its headmatter. - `serve.mjs` lets browsers keep the `inline-*.js` files of a slide.ng 2.0 build (the scripts moved out of `index.html`), as it does for the other files with a hash in their name. - The README says how `--router-mode` and a Content-Security-Policy work with the image. - The README says how slide.ng 3.0's deck browser works with the image: `dev` runs with `--remote`, so its local proxy is off and pages load directly, with no extra port; a Content-Security-Policy in front of a build needs `frame-src` for the sites it shows. diff --git a/Dockerfile b/Dockerfile index c34f440..51a8ef1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,10 +21,10 @@ RUN apt-get update \ # --- 2. slide.ng itself. A global install keeps its dependencies inside the package folder, which is # where slide.ng looks for them. SLIDE_NG_SOURCE is one of: -# - a file inside this build context, such as packages/slide-ng-core-3.4.0.tgz (made with `npm pack`) +# - a file inside this build context, such as packages/slide-ng-core-3.5.1.tgz (made with `npm pack`) # - anything npm understands: a package name or name@version # The default is a pinned @slide-ng/core release from npm; bump it when a new one is published. -ARG SLIDE_NG_SOURCE=@slide-ng/core@3.4.0 +ARG SLIDE_NG_SOURCE=@slide-ng/core@3.5.1 COPY packages/ /tmp/context/packages/ # slide.ng never downloads a browser (it uses CHROME_PATH), this only makes that certain for its dependencies. ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 diff --git a/README.md b/README.md index 7b9f006..48e7a60 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ The commands marked NOT VERIFIED above are untested. An earlier check on Docker ## Build the image -By default the image installs `@slide-ng/core@3.4.0` from npm (a pinned release, so builds are reproducible). The build +By default the image installs `@slide-ng/core@3.5.1` from npm (a pinned release, so builds are reproducible). The build argument `SLIDE_NG_SOURCE` picks another version (anything `npm install` accepts, such as `@slide-ng/core@latest`) or a tarball inside the build context, for example one packed from a slide.ng checkout: @@ -38,7 +38,7 @@ tarball inside the build context, for example one packed from a slide.ng checkou docker build -t slide-ng . docker build --build-arg SLIDE_NG_SOURCE=@slide-ng/core@latest -t slide-ng . npm pack /path/to/slide.ng --pack-destination packages -docker build --build-arg SLIDE_NG_SOURCE=packages/slide-ng-core-3.4.0.tgz -t slide-ng . +docker build --build-arg SLIDE_NG_SOURCE=packages/slide-ng-core-3.5.1.tgz -t slide-ng . ``` Other build arguments: `NODE_VERSION` (default `22.23.3`; slide.ng needs 22.22.3 or newer) and `EXTRA_FONTS` diff --git a/docker-compose.yml b/docker-compose.yml index 7972cf5..b53f729 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,8 +14,8 @@ x-common: &common build: context: . args: - # An npm name such as @slide-ng/core@3.4.0, or a tarball made with `npm pack` (see README). - SLIDE_NG_SOURCE: ${SLIDE_NG_SOURCE:-@slide-ng/core@3.4.0} + # An npm name such as @slide-ng/core@3.5.1, or a tarball made with `npm pack` (see README). + SLIDE_NG_SOURCE: ${SLIDE_NG_SOURCE:-@slide-ng/core@3.5.1} # Files in ./out are yours, not uid 1000's. Set SLIDES_UID and SLIDES_GID in .env (`id -u`, `id -g`). user: "${SLIDES_UID:-1000}:${SLIDES_GID:-1000}" cap_drop: [ALL]