Skip to content

Commit

Permalink
chore: update mdbook version + clean up and update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
heeckhau committed Jun 24, 2024
1 parent c22a227 commit 4d88120
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 67 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

Expand All @@ -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}}

Expand Down
57 changes: 0 additions & 57 deletions .github/workflows/manual-deploy.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
6 changes: 3 additions & 3 deletions theme/update_theme.rs
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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!(
Expand Down

0 comments on commit 4d88120

Please sign in to comment.