From de314c81aea949fffb919cda4a4c1dd5f32eb07f Mon Sep 17 00:00:00 2001 From: KG Date: Sat, 25 May 2024 18:37:50 -0500 Subject: [PATCH] Remove the names with sed magic --- .github/workflows/static.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 23d3004..9d914f1 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -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 @@ -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/
  • \s*/ /s" {} \; + run: sudo find ./html -name "*.html" -type f -exec sed -e '1h;2,$H;$!d;g' -e 's:\s::g' -r -e 's:::g' test.txt {} \; - name: Upload artifact uses: actions/upload-pages-artifact@v3