diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index fbf0848..ff822c0 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -2,16 +2,17 @@ name: github pages on: push: + workflow_dispatch: # Lookup compatible version numbers at: https://github.com/lzanini/mdbook-katex/releases env: - mdbook-version: '0.4.37' - katex-version: '0.5.9' + mdbook-version: '0.4.40' + katex-version: '0.9.0' linkcheck-version: '0.7.7' jobs: deploy: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 concurrency: group: ${{ github.workflow }}-${{ github.ref }} steps: @@ -21,7 +22,7 @@ jobs: uses: dsaltares/fetch-gh-release-asset@master with: repo: lzanini/mdbook-katex - version: tags/v${{env.katex-version}} + version: tags/${{env.katex-version}}-binaries file: "mdbook-katex-v${{env.katex-version}}-x86_64-unknown-linux-gnu.tar.gz" token: ${{ secrets.GITHUB_TOKEN }} @@ -42,7 +43,7 @@ jobs: chmod +x /usr/local/bin/mdbook-linkcheck - name: Setup mdBook - uses: peaceiris/actions-mdbook@v1 + uses: peaceiris/actions-mdbook@v2 with: mdbook-version: ${{env.mdbook-version}} diff --git a/.github/workflows/manual-deploy.yml b/.github/workflows/manual-deploy.yml deleted file mode 100644 index 9c9c08e..0000000 --- a/.github/workflows/manual-deploy.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: manual deploy github pages - -on: - workflow_dispatch: - -# Lookup compatible version numbers at: https://github.com/lzanini/mdbook-katex/releases -env: - mdbook-version: '0.4.37' - katex-version: '0.5.9' - linkcheck-version: '0.7.7' - -jobs: - deploy: - runs-on: ubuntu-22.04 - concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - steps: - - uses: actions/checkout@v3 - - - name: Fetch mdbook-katex - uses: dsaltares/fetch-gh-release-asset@master - with: - repo: lzanini/mdbook-katex - version: tags/v${{env.katex-version}} - file: "mdbook-katex-v${{env.katex-version}}-x86_64-unknown-linux-gnu.tar.gz" - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Install mdbook-katex - run: tar -xvf mdbook-katex-v${{env.katex-version}}-x86_64-unknown-linux-gnu.tar.gz -C /usr/local/bin - - - name: Fetch mdbook-linkcheck - uses: dsaltares/fetch-gh-release-asset@master - with: - repo: Michael-F-Bryan/mdbook-linkcheck - version: tags/v${{env.linkcheck-version}} - file: "mdbook-linkcheck.x86_64-unknown-linux-gnu.zip" - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Install mdbook-linkcheck - run: | - unzip mdbook-linkcheck.x86_64-unknown-linux-gnu.zip -d /usr/local/bin - chmod +x /usr/local/bin/mdbook-linkcheck - - - name: Setup mdBook - uses: peaceiris/actions-mdbook@v1 - with: - mdbook-version: ${{env.mdbook-version}} - - - run: mdbook build - - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./book/html/ - allow_empty_commit: true - cname: docs.tlsnotary.org diff --git a/README.md b/README.md index 7395c6d..033cc4f 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ Install mdbook and mdbook-katex ```bash -cargo install mdbook --version 0.4.37 -cargo install mdbook-katex --version 0.7.0 +cargo install mdbook --version 0.4.40 +cargo install mdbook-katex --version 0.9.0 cargo install mdbook-linkcheck ``` diff --git a/theme/update_theme.rs b/theme/update_theme.rs index 94de719..c67ff68 100755 --- a/theme/update_theme.rs +++ b/theme/update_theme.rs @@ -1,8 +1,8 @@ #!/usr/bin/env cargo +nightly -Zscript -```cargo +--- [dependencies] reqwest = { version = "0.11", features = ["blocking"] } -``` +--- // This script fetches the 'index.hbs' file from the mdBook repository and filters the // content to only present the 'ayu' theme. @@ -11,7 +11,7 @@ use reqwest::blocking; use std::fs::File; use std::io::{self, Write}; -const MDBOOK_VERSION: &str = "0.4.37"; +const MDBOOK_VERSION: &str = "0.4.40"; fn main() -> io::Result<()> { let url = format!(