Project structure cleanup: remove duplicates, fix typos, update broken links #28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: HTML validate | |
| on: | |
| pull_request: | |
| paths: | |
| - '**/*.md' | |
| - '**/*.html' | |
| - '_config.yml' | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: read | |
| jobs: | |
| html-validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Pages build (Jekyll) | |
| uses: actions/configure-pages@v5 | |
| - name: Build with Jekyll (GitHub Pages environment) | |
| uses: actions/jekyll-build-pages@v1 | |
| with: | |
| source: ./ | |
| destination: ./_site | |
| - name: Cache npm (html-validate) | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-npm-html-validate-8 | |
| restore-keys: | | |
| ${{ runner.os }}-npm- | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install html-validate | |
| run: npm install -g html-validate@8 | |
| - name: Upload validation report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: html-validate-report | |
| path: html-validate-report.txt | |
| - name: Summary | |
| if: always() | |
| run: | | |
| echo "### HTML Validation Summary" >> $GITHUB_STEP_SUMMARY | |
| if grep -qi "error" html-validate-report.txt; then | |
| echo "Errors detected. See artifact." >> $GITHUB_STEP_SUMMARY | |
| else | |
| echo "No errors detected." >> $GITHUB_STEP_SUMMARY | |
| fi |