Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Page history
run: |
mkdir -p data
sh themes/hextra/scripts/page-history.sh > data/pagehistory.json
go run github.com/tannevaled/hextra/cmd/pagehistory@v0.21.0 > data/pagehistory.json

# --panicOnWarning: a deprecated setting or a template warning fails the
# build rather than scrolling by. A broken {{< relref >}} is an error.
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
.hugo_build.lock
.DS_Store

# Written by themes/hextra/scripts/page-history.sh before each build (CI and local).
# Written by the theme's cmd/pagehistory before each build (CI and local).
/data/pagehistory.json
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ cd figures && go run .
| `figures/` | the Go module that draws every figure, one file each |
| `layouts/_shortcodes/plotfig.html` | a figure and the code that drew it |
| `static/images/figures/` | the figures, as `figures/` writes them |
| `layouts/_partials/custom/version-select.html` | the version selector (reads `versions.json`), from go-ndarray/docs |
| `layouts/_partials/custom/content-begin.html` | the outdated-version banner (reads `versions.json`) |
| `layouts/_partials/favicons.html` | the brand's favicons |
| `assets/css/custom.css` | the brand blue as Hextra's primary colour, the table headers, a white card under figures |
Expand All @@ -67,7 +66,7 @@ cd figures && go run .
```sh
git clone --recurse-submodules https://github.com/go-plot/docs.git
cd docs
mkdir -p data && sh themes/hextra/scripts/page-history.sh > data/pagehistory.json
mkdir -p data && go run github.com/tannevaled/hextra/cmd/pagehistory@v0.21.0 > data/pagehistory.json
hugo server --baseURL http://localhost:1313/docs/0.3/
```

Expand Down
1 change: 0 additions & 1 deletion assets/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

/* The version selector's list hangs from its button's right edge, so that it
* stays on screen at the end of the navbar. */
.fs-version-select .hextra-nav-menu-items { left: auto !important; right: 0; transform: none !important; }

/* The outdated-version banner (layouts/_partials/custom/content-begin.html). */
.nd-outdated { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 0.5rem;
Expand Down
4 changes: 2 additions & 2 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ menu:
weight: 3
params:
type: partial
partial: custom/version-select.html
partial: components/version-select.html
- name: Theme
weight: 4
params:
Expand Down Expand Up @@ -140,7 +140,7 @@ params:
displayDescription: true
# "Created on ... by ... · Modified on ... by ..." at the foot of each page:
# creation from data/pagehistory.json, which the build writes with
# themes/hextra/scripts/page-history.sh (it needs the full git history);
# the theme's cmd/pagehistory (it needs the full git history);
# modification from git (enableGitInfo).
history: true
contextMenu:
Expand Down
118 changes: 0 additions & 118 deletions layouts/_partials/custom/version-select.html

This file was deleted.

2 changes: 1 addition & 1 deletion themes/hextra
Submodule hextra updated 50 files
+45 −0 .github/workflows/test-pagehistory.yml
+61 −0 .github/workflows/test-search-scope.yml
+22 −0 CHANGELOG.md
+22 −0 README.md
+1 −1 assets/css/compiled/main.css
+48 −0 assets/css/components/openapi.css
+1 −0 assets/css/styles.css
+37 −25 ci/docs.gitlab-ci.yml
+10 −0 cmd/pagehistory/go.mod
+10 −0 cmd/pagehistory/go.sum
+21 −0 cmd/pagehistory/main.go
+270 −0 cmd/pagehistory/pagehistory.go
+325 −0 cmd/pagehistory/pagehistory_test.go
+31 −0 cmd/pagehistory/testdata/page-history.legacy.sh
+138 −0 docs/assets/openapi/example.yaml
+54 −5 docs/content/docs/advanced/customization.md
+7 −0 docs/content/docs/guide/configuration.fa.md
+7 −0 docs/content/docs/guide/configuration.ja.md
+7 −0 docs/content/docs/guide/configuration.md
+7 −0 docs/content/docs/guide/configuration.zh-cn.md
+1 −0 docs/content/docs/guide/shortcodes/_index.fa.md
+1 −0 docs/content/docs/guide/shortcodes/_index.ja.md
+1 −0 docs/content/docs/guide/shortcodes/_index.md
+1 −0 docs/content/docs/guide/shortcodes/_index.zh-cn.md
+4 −4 docs/content/docs/guide/shortcodes/filetree.md
+48 −0 docs/content/docs/guide/shortcodes/openapi.fa.md
+48 −0 docs/content/docs/guide/shortcodes/openapi.ja.md
+48 −0 docs/content/docs/guide/shortcodes/openapi.md
+48 −0 docs/content/docs/guide/shortcodes/openapi.zh-cn.md
+1 −0 docs/hugo_stats.json
+54 −0 i18n/tr.yaml
+1 −1 layouts/_partials/components/page-history.html
+4 −1 layouts/_partials/components/search-dialog.html
+27 −10 layouts/_partials/components/version-select.html
+19 −6 layouts/_partials/language-switch.html
+6 −1 layouts/_partials/navbar.html
+5 −0 layouts/_partials/scripts.html
+13 −79 layouts/_partials/scripts/asciinema.html
+53 −0 layouts/_partials/scripts/openapi.html
+58 −0 layouts/_partials/utils/flag.html
+84 −0 layouts/_partials/utils/vendor-assets.html
+88 −0 layouts/_shortcodes/openapi.html
+1 −1 layouts/archives.html
+3 −3 package-lock.json
+2 −1 package.json
+13 −25 scripts/page-history.sh
+118 −0 tests/language-flags.spec.ts
+106 −0 tests/openapi.spec.ts
+112 −0 tests/search-scope.spec.ts
+138 −0 tests/version-select.spec.ts
Loading