Skip to content

Commit acf3f12

Browse files
authored
Pay down technical debt (#2050)
## Changes - Removes two workarounds that are no longer necessary. ## Context - c902ac8 - cb4696d
2 parents f847b39 + 5bbd81a commit acf3f12

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

.github/actions/deploy-to-github-pages/action.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -85,25 +85,6 @@ runs:
8585
shell: bash
8686
run: npx -y pagefind@${{ env.PAGEFIND_VERSION }} --site public
8787

88-
- name: Temporarily copy some Rails assets to help the transition
89-
shell: bash
90-
run: |
91-
# To help with the transition from the Rails app to the Hugo/Pagefind site, where
92-
# at least for a while the cached version of git-scm.com might be served via
93-
# Cloudflare, according to the first transition attempt on Sep 20, 2024, potentially
94-
# partially, i.e. _some_ assets might still be cached, _some_ others might not, let's
95-
# copy the most prominent assets to the new page so that, say, the original front page
96-
# won't fail to load the style sheet and Javascript libraries that it needs.
97-
set -x &&
98-
mkdir -p public/assets &&
99-
for f in application-93865c5c820c24f4c599e8b9c544bcd8a0d03260f9b16c9ba80b6a00082112c9.css \
100-
application-f7a750114a26afea236a5cc26f6ff3925a14c5901e9ea9018fb869432d0cbee3.js \
101-
modernize-b3ebe0c31c24f230dc62179d3e1030d2e57a53b1668d9382c0a27dbd44a94beb.js
102-
do
103-
curl -Lfo public/assets/$f https://git-scm.com/assets/$f ||
104-
echo "::error::could not copy $f from https://git-scm.com/" >&2
105-
done
106-
10788
- name: upload GitHub Pages artifact
10889
uses: actions/upload-pages-artifact@v3
10990
with:

.github/workflows/ci.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ jobs:
1919
curl -Lo /tmp/hugo.deb https://github.com/gohugoio/hugo/releases/download/v$HUGO_VERSION/hugo_extended_${HUGO_VERSION}_linux-amd64.deb &&
2020
sudo dpkg -i /tmp/hugo.deb
2121
22-
- name: work around a broken link
23-
# See https://github.com/jnavila/git-manpages-l10n/pull/131;
24-
# A space is missing in "https://git-scm.com/docs上查看"
25-
run: |
26-
sed -i 's,\(href="\(https://git-scm.com/docs\)\)\(上查看\)"\([^>]*>\)\2\3\(</a>\),\1"\4\1\5 \3,p' \
27-
external/docs/content/docs/git/zh_HANS-CN.html
28-
2922
- name: run Hugo to build the pages
3023
run: hugo
3124

0 commit comments

Comments
 (0)