Skip to content

Commit

Permalink
Remove the names with sed magic
Browse files Browse the repository at this point in the history
  • Loading branch information
kg583 committed May 25, 2024
1 parent dec5f18 commit de314c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ jobs:
with:
# Includes history for MkDocs plugin
fetch-depth: 0

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Hide redundant pages
run: |
sudo rm -f TEMPLATE.md
sudo rm -f categories.md
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Generate HTML from Markdown
uses: ldeluigi/markdown-docs@latest
Expand All @@ -57,7 +57,7 @@ jobs:
run: sudo find ./html -name "*.html" -type f -exec sed -i -r "s:\.md:\.html:g" {} \;

- name: Remove hex names from Tokens dropdown
run: sudo find ./html -name "*.html" -type f -exec perl -0777pe "s/<li class=\"md-nav__item\">\s*<a href=\"tokens/0x.*?</li>/ /s" {} \;
run: sudo find ./html -name "*.html" -type f -exec sed -e '1h;2,$H;$!d;g' -e 's:\s::g' -r -e 's:<liclass="md-nav__item"><ahref=.*?0x[0-9A-Fa-f]+\.html.*?</li>::g' test.txt {} \;

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down

0 comments on commit de314c8

Please sign in to comment.