Skip to content

Commit 507025b

Browse files
pzhlkj6612CopilotCopilotClaudeCodex
authored
manual: resolve linkgit in glossary data for links in tooltips
* Construct glossay JSON files by Hugo: * Move "#{lang}.json" from "static/js/glossary/" to "external/docs/data/glossary/" * Create simple documents to pass the language code at "external/docs/content/js/glossary/#{lang}.html" * Create a simple template "layouts/js/glossary/single.json.json" * Add two Playwright test cases. * CI * Forget "static/js/glossary". * Do not check absolute URLs in generated glossay JSON. It didn't work before because of escaped double quotes: `href=\"/`. * Skip some files for consistency: * external/docs/data/docs.json * external/docs/data/glossary/#{lang}.json Assisted-by: Claude Opus 4.6 via Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: Claude <242468646+Claude@users.noreply.github.com> Co-authored-by: Codex <242516109+Codex@users.noreply.github.com> Co-authored-by: openai-code-agent[bot] <242516109+Codex@users.noreply.github.com> Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Mozi <29089388+pzhlkj6612@users.noreply.github.com> Signed-off-by: Mozi <29089388+pzhlkj6612@users.noreply.github.com>
1 parent c0b7cfc commit 507025b

36 files changed

Lines changed: 148 additions & 9 deletions

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
run: |
2727
set -x
2828
if git grep --untracked --no-exclude-standard "\\(href\|src\) *= *[\"']/" \
29-
-- public/ ':^public/js/jquery*' >/tmp/abs-urls.txt
29+
-- public/ ':^public/js/jquery*' ':^public/js/glossary/*.json' \
30+
>/tmp/abs-urls.txt
3031
then
3132
cat /tmp/abs-urls.txt
3233
exit 1

.github/workflows/update-git-version-and-manual-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
id: manual-pages
8181
if: steps.commit.outputs.result != '' || inputs.force-rebuild == true
8282
run: |
83-
git add -A external/docs static/js/glossary &&
83+
git add -A external/docs &&
8484
if test true = '${{ inputs.force-rebuild }}' && git diff-index --cached --quiet HEAD --
8585
then
8686
echo '::notice::A manual pages rebuild was requested but resulted in no changes' >&2

.github/workflows/update-translated-manual-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
run: |
6666
mkdir -p external/docs/sync &&
6767
git -C '${{ runner.temp }}/git-html-l10n' rev-parse HEAD >external/docs/sync/git-html-l10n.sha &&
68-
git add external/docs/sync/git-html-l10n.sha static/js/glossary &&
68+
git add external/docs/sync/git-html-l10n.sha &&
6969
7070
git add -A external/docs &&
7171
if test true = '${{ inputs.force-rebuild }}' && git diff-index --cached --quiet HEAD --
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
outputs:
3+
- json
4+
lang: de
5+
---
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
outputs:
3+
- json
4+
lang: en
5+
---
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
outputs:
3+
- json
4+
lang: es
5+
---
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
outputs:
3+
- json
4+
lang: fr
5+
---
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
outputs:
3+
- json
4+
lang: id
5+
---
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
outputs:
3+
- json
4+
lang: it
5+
---
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
outputs:
3+
- json
4+
lang: ja
5+
---

0 commit comments

Comments
 (0)