feat: Incremental & streaming quotes, v3.0.0 #80
This file contains 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: Website | |
on: | |
push: | |
branches: ["v3"] | |
pull_request: | |
branches: ["main"] | |
paths: | |
- 'docs/**' | |
- ".github/workflows/test-website-links.yml" | |
env: | |
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
test: | |
name: test URLs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
working-directory: docs | |
ruby-version: 3.3 | |
- name: Install GEMs | |
working-directory: docs | |
env: | |
BUNDLE_GEMFILE: ${{github.workspace}}/docs/GemFile | |
run: | | |
pwd | |
bundle install | |
- name: Setup HTML Proofer | |
run: | | |
gem install html-proofer | |
htmlproofer --help | |
- name: Replace "data-src" | |
uses: jacobtomlinson/gha-find-replace@v3 | |
with: | |
find: "data-src" | |
replace: "src" | |
regex: false | |
- name: Replace "dotnet.stockindicators.dev" | |
uses: jacobtomlinson/gha-find-replace@v3 | |
with: | |
find: "https://dotnet.stockindicators.dev" | |
replace: "http://127.0.0.1:4000" | |
regex: false | |
- name: Build site | |
working-directory: docs | |
env: | |
BUNDLE_GEMFILE: ${{github.workspace}}/docs/GemFile | |
run: bundle exec jekyll build --trace | |
- name: Serve site | |
working-directory: docs | |
env: | |
BUNDLE_GEMFILE: ${{github.workspace}}/docs/GemFile | |
run: bundle exec jekyll serve --detach | |
# see help in setup step | |
- name: Test for broken URLs | |
working-directory: docs | |
run: | | |
htmlproofer _site \ | |
--no-enforce-https \ | |
--no-check-external-hash \ | |
--ignore-status-codes "0,302,403,406,408,429,503,999" \ | |
--swap-urls "https\://dotnet.stockindicators.dev:http\://127.0.0.1:4000" \ | |
--ignore-urls "/fonts.gstatic.com/" | |
- name: Kill site (failsafe) | |
if: always() | |
run: pkill -f jekyll |