Skip to content

Commit

Permalink
Deploy book e2eb0a8 to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Deploy book from CI committed Dec 2, 2023
0 parents commit 7c4d4e0
Show file tree
Hide file tree
Showing 96 changed files with 31,870 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish-book.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deploy book
on:
push:
paths: ["**"]
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write # To push a branch
pull-requests: write # To create a PR from that branch
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install mdbook
run: |
mkdir mdbook
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.35/mdbook-v0.4.35-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
echo `pwd`/mdbook >> $GITHUB_PATH
- name: Install mdbook-admonish
run: |
cargo install mdbook-admonish --vers "1.14.0" --locked
mdbook-admonish install ./
- name: Deploy GitHub Pages
run: |
mdbook build
git worktree add gh-pages
git config user.name "Deploy book from CI"
git config user.email ""
cd gh-pages
# Delete the ref to avoid keeping history.
git update-ref -d refs/heads/gh-pages
rm -rf *
mv ../book/* .
git add .
git commit -m "Deploy book $GITHUB_SHA to gh-pages"
git push --force --set-upstream origin gh-pages
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
book
237 changes: 237 additions & 0 deletions 01_introduction.html

Large diffs are not rendered by default.

584 changes: 584 additions & 0 deletions 15_global_state.html

Large diffs are not rendered by default.

217 changes: 217 additions & 0 deletions 404.html

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions FontAwesome/css/font-awesome.css

Large diffs are not rendered by default.

Binary file added FontAwesome/fonts/FontAwesome.ttf
Binary file not shown.
Binary file added FontAwesome/fonts/fontawesome-webfont.eot
Binary file not shown.
2,671 changes: 2,671 additions & 0 deletions FontAwesome/fonts/fontawesome-webfont.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added FontAwesome/fonts/fontawesome-webfont.ttf
Binary file not shown.
Binary file added FontAwesome/fonts/fontawesome-webfont.woff
Binary file not shown.
Binary file added FontAwesome/fonts/fontawesome-webfont.woff2
Binary file not shown.
394 changes: 394 additions & 0 deletions appendix_reactive_graph.html

Large diffs are not rendered by default.

340 changes: 340 additions & 0 deletions async/10_resources.html

Large diffs are not rendered by default.

355 changes: 355 additions & 0 deletions async/11_suspense.html

Large diffs are not rendered by default.

299 changes: 299 additions & 0 deletions async/12_transition.html

Large diffs are not rendered by default.

365 changes: 365 additions & 0 deletions async/13_actions.html

Large diffs are not rendered by default.

232 changes: 232 additions & 0 deletions async/index.html

Large diffs are not rendered by default.

78 changes: 78 additions & 0 deletions ayu-highlight.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/*
Based off of the Ayu theme
Original by Dempfi (https://github.com/dempfi/ayu)
*/

.hljs {
display: block;
overflow-x: auto;
background: #191f26;
color: #e6e1cf;
}

.hljs-comment,
.hljs-quote {
color: #5c6773;
font-style: italic;
}

.hljs-variable,
.hljs-template-variable,
.hljs-attribute,
.hljs-attr,
.hljs-regexp,
.hljs-link,
.hljs-selector-id,
.hljs-selector-class {
color: #ff7733;
}

.hljs-number,
.hljs-meta,
.hljs-builtin-name,
.hljs-literal,
.hljs-type,
.hljs-params {
color: #ffee99;
}

.hljs-string,
.hljs-bullet {
color: #b8cc52;
}

.hljs-title,
.hljs-built_in,
.hljs-section {
color: #ffb454;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-symbol {
color: #ff7733;
}

.hljs-name {
color: #36a3d9;
}

.hljs-tag {
color: #00568d;
}

.hljs-emphasis {
font-style: italic;
}

.hljs-strong {
font-weight: bold;
}

.hljs-addition {
color: #91b362;
}

.hljs-deletion {
color: #d96c75;
}
Loading

0 comments on commit 7c4d4e0

Please sign in to comment.