Skip to content

Commit dec5f18

Browse files
committed
Remove hex names from Tokens dropdown
1 parent 2bbc90e commit dec5f18

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/static.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ jobs:
5454
icon: calculator
5555

5656
- name: Fix links to Markdown pages
57-
run: |
58-
cd ./html
59-
sudo find . -name "*.html" -type f -exec sed -i -r "s:\.md:\.html:g" {} \;
57+
run: sudo find ./html -name "*.html" -type f -exec sed -i -r "s:\.md:\.html:g" {} \;
58+
59+
- name: Remove hex names from Tokens dropdown
60+
run: sudo find ./html -name "*.html" -type f -exec perl -0777pe "s/<li class=\"md-nav__item\">\s*<a href=\"tokens/0x.*?</li>/ /s" {} \;
6061

6162
- name: Upload artifact
6263
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)