Skip to content

Commit

Permalink
feat: open external links in new tab (foundry-rs#1099)
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg authored Jan 24, 2024
1 parent f534e4a commit f849158
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ jobs:
name: Deploy to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3

uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install mdbook-external-links
run: cargo install mdbook-external-links
- name: Install mdbook
run: |
mkdir mdbook
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Check our [contributing guidelines](./CONTRIBUTING.md). Feel free to contribute

The book is build with [mdbook](https://github.com/rust-lang/mdBook), which you can get by running `cargo install mdbook`.

The book also requires [`mdbook-external-links`](https://github.com/jonahgoldwastaken/mdbook-external-links): `cargo install mdbook-external-links`.

To see the book change live run:

```sh
Expand Down
2 changes: 2 additions & 0 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ description = "A book on all things Foundry"
[build]
create-missing = false

[preprocessor.external-links]

[output.html]
git-repository-url = "https://github.com/foundry-rs/book"
edit-url-template = "https://github.com/foundry-rs/book/edit/master/{path}"
Expand Down

0 comments on commit f849158

Please sign in to comment.