Skip to content

Commit e5fc5b6

Browse files
author
Deploy from CI
committed
Deploy 3581331 to gh-pages
0 parents  commit e5fc5b6

57 files changed

Lines changed: 10502 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cargo/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build]
2+
target = "wasm32-unknown-unknown"

.github/workflows/deploy.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 0
14+
- name: Install mdbook
15+
run: |
16+
mkdir mdbook
17+
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.14/mdbook-v0.4.14-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
18+
echo `pwd`/mdbook >> $GITHUB_PATH
19+
- name: Deploy GitHub Pages
20+
run: |
21+
# This assumes your book is in the root of your repository.
22+
# Just add a `cd` here if you need to change to another directory.
23+
cd docs
24+
mdbook build
25+
git worktree add gh-pages
26+
git config user.name "Deploy from CI"
27+
git config user.email ""
28+
cd gh-pages
29+
# Delete the ref to avoid keeping history.
30+
git update-ref -d refs/heads/gh-pages
31+
rm -rf *
32+
mv ../book/* .
33+
git add .
34+
git commit -m "Deploy $GITHUB_SHA to gh-pages"
35+
git push --force --set-upstream origin gh-pages

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- v[0-9]+.[0-9]+.[0-9]+
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
12+
container:
13+
image: rust:latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v6
18+
19+
- name: Install toml-cli
20+
run: cargo install toml-cli
21+
22+
- name: Check version
23+
run: test "v$(toml get -r Cargo.toml package.version)" = "${{ github.ref_name }}"
24+
25+
- name: Publish
26+
run: cargo publish
27+
env:
28+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**/*target
2+
**/*dist
3+
.idea
4+
*.nix
5+
flake.lock
6+
Cargo.lock

404.html

Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
<!DOCTYPE HTML>
2+
<html lang="en" class="sidebar-visible no-js light">
3+
<head>
4+
<!-- Book generated using mdBook -->
5+
<meta charset="UTF-8">
6+
<title></title>
7+
<base href="/">
8+
<!-- Custom HTML head -->
9+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
10+
<meta name="description" content="">
11+
<meta name="viewport" content="width=device-width, initial-scale=1">
12+
<meta name="theme-color" content="#ffffff" />
13+
14+
<link rel="icon" href="favicon.svg">
15+
<link rel="shortcut icon" href="favicon.png">
16+
<link rel="stylesheet" href="css/variables.css">
17+
<link rel="stylesheet" href="css/general.css">
18+
<link rel="stylesheet" href="css/chrome.css">
19+
<link rel="stylesheet" href="css/print.css" media="print">
20+
<!-- Fonts -->
21+
<link rel="stylesheet" href="FontAwesome/css/font-awesome.css">
22+
<link rel="stylesheet" href="fonts/fonts.css">
23+
<!-- Highlight.js Stylesheets -->
24+
<link rel="stylesheet" href="highlight.css">
25+
<link rel="stylesheet" href="tomorrow-night.css">
26+
<link rel="stylesheet" href="ayu-highlight.css">
27+
28+
<!-- Custom theme stylesheets -->
29+
</head>
30+
<body>
31+
<!-- Provide site root to javascript -->
32+
<script type="text/javascript">
33+
var path_to_root = "";
34+
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "navy" : "light";
35+
</script>
36+
37+
<!-- Work around some values being stored in localStorage wrapped in quotes -->
38+
<script type="text/javascript">
39+
try {
40+
var theme = localStorage.getItem('mdbook-theme');
41+
var sidebar = localStorage.getItem('mdbook-sidebar');
42+
43+
if (theme.startsWith('"') && theme.endsWith('"')) {
44+
localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1));
45+
}
46+
47+
if (sidebar.startsWith('"') && sidebar.endsWith('"')) {
48+
localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1));
49+
}
50+
} catch (e) { }
51+
</script>
52+
53+
<!-- Set the theme before any content is loaded, prevents flash -->
54+
<script type="text/javascript">
55+
var theme;
56+
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
57+
if (theme === null || theme === undefined) { theme = default_theme; }
58+
var html = document.querySelector('html');
59+
html.classList.remove('no-js')
60+
html.classList.remove('light')
61+
html.classList.add(theme);
62+
html.classList.add('js');
63+
</script>
64+
65+
<!-- Hide / unhide sidebar before it is displayed -->
66+
<script type="text/javascript">
67+
var html = document.querySelector('html');
68+
var sidebar = 'hidden';
69+
if (document.body.clientWidth >= 1080) {
70+
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
71+
sidebar = sidebar || 'visible';
72+
}
73+
html.classList.remove('sidebar-visible');
74+
html.classList.add("sidebar-" + sidebar);
75+
</script>
76+
77+
<nav id="sidebar" class="sidebar" aria-label="Table of contents">
78+
<div class="sidebar-scrollbox">
79+
<ol class="chapter"><li class="chapter-item expanded affix "><a href="intro.html">Introduction</a></li><li class="chapter-item expanded affix "><li class="part-title">Quickstart</li><li class="chapter-item expanded "><a href="setup.html"><strong aria-hidden="true">1.</strong> Setup</a></li><li class="chapter-item expanded "><a href="example.html"><strong aria-hidden="true">2.</strong> Example</a></li><li class="chapter-item expanded affix "><li class="part-title">Usage</li><li class="chapter-item expanded "><a href="store.html"><strong aria-hidden="true">3.</strong> Store</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="default_store.html"><strong aria-hidden="true">3.1.</strong> Default value</a></li><li class="chapter-item expanded "><a href="persistence.html"><strong aria-hidden="true">3.2.</strong> Persistence</a></li><li class="chapter-item expanded "><a href="derived_state.html"><strong aria-hidden="true">3.3.</strong> Derived State</a></li></ol></li><li class="chapter-item expanded "><a href="dispatch.html"><strong aria-hidden="true">4.</strong> Writing state</a></li><li class="chapter-item expanded "><a href="reading.html"><strong aria-hidden="true">5.</strong> Reading state</a></li><li class="chapter-item expanded "><a href="listeners.html"><strong aria-hidden="true">6.</strong> Listeners</a></li><li class="chapter-item expanded "><a href="context.html"><strong aria-hidden="true">7.</strong> Contexts</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="ssr.html"><strong aria-hidden="true">7.1.</strong> SSR Support</a></li></ol></li></ol>
80+
</div>
81+
<div id="sidebar-resize-handle" class="sidebar-resize-handle"></div>
82+
</nav>
83+
84+
<div id="page-wrapper" class="page-wrapper">
85+
86+
<div class="page">
87+
<div id="menu-bar-hover-placeholder"></div>
88+
<div id="menu-bar" class="menu-bar sticky bordered">
89+
<div class="left-buttons">
90+
<button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
91+
<i class="fa fa-bars"></i>
92+
</button>
93+
<button id="theme-toggle" class="icon-button" type="button" title="Change theme" aria-label="Change theme" aria-haspopup="true" aria-expanded="false" aria-controls="theme-list">
94+
<i class="fa fa-paint-brush"></i>
95+
</button>
96+
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu">
97+
<li role="none"><button role="menuitem" class="theme" id="light">Light (default)</button></li>
98+
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li>
99+
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li>
100+
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li>
101+
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li>
102+
</ul>
103+
<button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="S" aria-controls="searchbar">
104+
<i class="fa fa-search"></i>
105+
</button>
106+
</div>
107+
108+
<h1 class="menu-title">Yewdux</h1>
109+
110+
<div class="right-buttons">
111+
<a href="print.html" title="Print this book" aria-label="Print this book">
112+
<i id="print-button" class="fa fa-print"></i>
113+
</a>
114+
</div>
115+
</div>
116+
117+
<div id="search-wrapper" class="hidden">
118+
<form id="searchbar-outer" class="searchbar-outer">
119+
<input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
120+
</form>
121+
<div id="searchresults-outer" class="searchresults-outer hidden">
122+
<div id="searchresults-header" class="searchresults-header"></div>
123+
<ul id="searchresults">
124+
</ul>
125+
</div>
126+
</div>
127+
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM -->
128+
<script type="text/javascript">
129+
document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible');
130+
document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible');
131+
Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) {
132+
link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1);
133+
});
134+
</script>
135+
136+
<div id="content" class="content">
137+
<main>
138+
<h1 id="document-not-found-404"><a class="header" href="#document-not-found-404">Document not found (404)</a></h1>
139+
<p>This URL is invalid, sorry. Please use the navigation bar or search to continue.</p>
140+
141+
</main>
142+
143+
<nav class="nav-wrapper" aria-label="Page navigation">
144+
<!-- Mobile navigation buttons -->
145+
<div style="clear: both"></div>
146+
</nav>
147+
</div>
148+
</div>
149+
150+
<nav class="nav-wide-wrapper" aria-label="Page navigation">
151+
</nav>
152+
153+
</div>
154+
155+
<script type="text/javascript">
156+
window.playground_copyable = true;
157+
</script>
158+
<script src="elasticlunr.min.js" type="text/javascript" charset="utf-8"></script>
159+
<script src="mark.min.js" type="text/javascript" charset="utf-8"></script>
160+
<script src="searcher.js" type="text/javascript" charset="utf-8"></script>
161+
<script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
162+
<script src="highlight.js" type="text/javascript" charset="utf-8"></script>
163+
<script src="book.js" type="text/javascript" charset="utf-8"></script>
164+
165+
<!-- Custom JS scripts -->
166+
</body>
167+
</html>

FontAwesome/css/font-awesome.css

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FontAwesome/fonts/FontAwesome.ttf

162 KB
Binary file not shown.
162 KB
Binary file not shown.

0 commit comments

Comments
 (0)