diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 92b841f4..587a9aa9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,7 @@ name: "Spec" env: - HUGO_VERSION: 0.153.3 + HUGO_VERSION: 0.155.3 PYTHON_VERSION: 3.13 NODE_VERSION: 24 diff --git a/README.md b/README.md index 0678713b..9e553a8b 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ place after an MSC has been accepted, not as part of a proposal itself. 1. Install the extended version (often the OS default) of Hugo: . Note that at least Hugo - v0.146.0 is required. + v0.155.0 is required. Alternatively, use the Docker image at https://hub.docker.com/r/klakegg/hugo/. (The "extended edition" is required diff --git a/changelogs/internal/newsfragments/2346.clarification b/changelogs/internal/newsfragments/2346.clarification new file mode 100644 index 00000000..a5ecd5e2 --- /dev/null +++ b/changelogs/internal/newsfragments/2346.clarification @@ -0,0 +1 @@ +Upgrade Docsy theme to v0.14.3. diff --git a/go.mod b/go.mod index 6b13c46b..862b982e 100644 --- a/go.mod +++ b/go.mod @@ -3,3 +3,5 @@ module github.com/matrix-org/matrix-spec go 1.12 require github.com/matrix-org/docsy v0.0.0-20260106184755-71d103ebb20a // indirect + +replace github.com/matrix-org/docsy v0.0.0-20260106184755-71d103ebb20a => github.com/zecakeh/matrix-org-docsy v0.0.0-20260330090302-c8561ffa244e diff --git a/go.sum b/go.sum index 3897374a..53acbb2b 100644 --- a/go.sum +++ b/go.sum @@ -2,3 +2,5 @@ github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3/go.mod h1 github.com/matrix-org/docsy v0.0.0-20260106184755-71d103ebb20a h1:WB3unuZJy7ewAf33sxbtEwYnC+i+Jt1sJpAR3BtzvEo= github.com/matrix-org/docsy v0.0.0-20260106184755-71d103ebb20a/go.mod h1:mdn1m5HJug6ZddQgrOyCrXNegbtdl5evHiqqbEQLzdI= github.com/twbs/bootstrap v5.3.8+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0= +github.com/zecakeh/matrix-org-docsy v0.0.0-20260330090302-c8561ffa244e h1:6fDwyGJlfkiuxC4NERnqasxv77+26zA0yL9TAD79MrY= +github.com/zecakeh/matrix-org-docsy v0.0.0-20260330090302-c8561ffa244e/go.mod h1:mdn1m5HJug6ZddQgrOyCrXNegbtdl5evHiqqbEQLzdI= diff --git a/layouts/_markup/render-heading.html b/layouts/_markup/render-heading.html index d16aac8f..6b11f3ea 100644 --- a/layouts/_markup/render-heading.html +++ b/layouts/_markup/render-heading.html @@ -1,7 +1,7 @@ {{- /* This is a heading render hook (https://gohugo.io/render-hooks/headings/) - using Docsy's heading self-links hook (https://www.docsy.dev/docs/adding-content/navigation/#heading-self-links). + using Docsy's heading self-links hook (https://www.docsy.dev/docs/content/navigation/#heading-self-links). This is used when a heading is encountered in markdown content to generate the HTML for that heading. A self-link anchor is added at the end of the diff --git a/layouts/_partials/navbar.html b/layouts/_partials/navbar.html index 0a563d8f..6e7c8836 100644 --- a/layouts/_partials/navbar.html +++ b/layouts/_partials/navbar.html @@ -2,7 +2,6 @@ A copy of the navbar.html partial in Docsy, modified to: - * remove `data-bs-theme` at L20, otherwise the title disappears on hover. * replace the site title with "specification" at L31. * include the spec version from the config at L34-35, which is calculated using an inline `version-string` partial. @@ -16,7 +15,8 @@ {{ $baseURL := urls.Parse $.Site.Params.Baseurl -}}