Skip to content

Commit d9ab77a

Browse files
author
Deploy from CI
committed
Deploy 583c14a to gh-pages
0 parents  commit d9ab77a

Some content is hidden

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

61 files changed

+11701
-0
lines changed

.github/workflows/deploy.yml

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

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
book

404.html

Lines changed: 220 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,220 @@
1+
<!DOCTYPE HTML>
2+
<html lang="en" class="light" dir="ltr">
3+
<head>
4+
<!-- Book generated using mdBook -->
5+
<meta charset="UTF-8">
6+
<title>Page not found</title>
7+
<base href="/">
8+
9+
10+
<!-- Custom HTML head -->
11+
12+
<meta name="description" content="">
13+
<meta name="viewport" content="width=device-width, initial-scale=1">
14+
<meta name="theme-color" content="#ffffff">
15+
16+
<link rel="icon" href="favicon.svg">
17+
<link rel="shortcut icon" href="favicon.png">
18+
<link rel="stylesheet" href="css/variables.css">
19+
<link rel="stylesheet" href="css/general.css">
20+
<link rel="stylesheet" href="css/chrome.css">
21+
<link rel="stylesheet" href="css/print.css" media="print">
22+
23+
<!-- Fonts -->
24+
<link rel="stylesheet" href="FontAwesome/css/font-awesome.css">
25+
<link rel="stylesheet" href="fonts/fonts.css">
26+
27+
<!-- Highlight.js Stylesheets -->
28+
<link rel="stylesheet" href="highlight.css">
29+
<link rel="stylesheet" href="tomorrow-night.css">
30+
<link rel="stylesheet" href="ayu-highlight.css">
31+
32+
<!-- Custom theme stylesheets -->
33+
34+
<!-- MathJax -->
35+
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
36+
</head>
37+
<body class="sidebar-visible no-js">
38+
<div id="body-container">
39+
<!-- Provide site root to javascript -->
40+
<script>
41+
var path_to_root = "";
42+
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "navy" : "light";
43+
</script>
44+
45+
<!-- Work around some values being stored in localStorage wrapped in quotes -->
46+
<script>
47+
try {
48+
var theme = localStorage.getItem('mdbook-theme');
49+
var sidebar = localStorage.getItem('mdbook-sidebar');
50+
51+
if (theme.startsWith('"') && theme.endsWith('"')) {
52+
localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1));
53+
}
54+
55+
if (sidebar.startsWith('"') && sidebar.endsWith('"')) {
56+
localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1));
57+
}
58+
} catch (e) { }
59+
</script>
60+
61+
<!-- Set the theme before any content is loaded, prevents flash -->
62+
<script>
63+
var theme;
64+
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
65+
if (theme === null || theme === undefined) { theme = default_theme; }
66+
var html = document.querySelector('html');
67+
html.classList.remove('light')
68+
html.classList.add(theme);
69+
var body = document.querySelector('body');
70+
body.classList.remove('no-js')
71+
body.classList.add('js');
72+
</script>
73+
74+
<input type="checkbox" id="sidebar-toggle-anchor" class="hidden">
75+
76+
<!-- Hide / unhide sidebar before it is displayed -->
77+
<script>
78+
var body = document.querySelector('body');
79+
var sidebar = null;
80+
var sidebar_toggle = document.getElementById("sidebar-toggle-anchor");
81+
if (document.body.clientWidth >= 1080) {
82+
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
83+
sidebar = sidebar || 'visible';
84+
} else {
85+
sidebar = 'hidden';
86+
}
87+
sidebar_toggle.checked = sidebar === 'visible';
88+
body.classList.remove('sidebar-visible');
89+
body.classList.add("sidebar-" + sidebar);
90+
</script>
91+
92+
<nav id="sidebar" class="sidebar" aria-label="Table of contents">
93+
<div class="sidebar-scrollbox">
94+
<ol class="chapter"><li class="chapter-item expanded affix "><li class="part-title">User Guide</li><li class="chapter-item expanded "><a href="chapter_1.html"><strong aria-hidden="true">1.</strong> What is Autodiff?</a></li><li class="chapter-item expanded "><a href="motivation.html"><strong aria-hidden="true">2.</strong> Motivation</a></li><li class="chapter-item expanded "><a href="prior_art.html"><strong aria-hidden="true">3.</strong> Prior Art</a></li><li class="chapter-item expanded "><a href="usage/usage.html"><strong aria-hidden="true">4.</strong> Usage</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="usage/fwd.html"><strong aria-hidden="true">4.1.</strong> Forward Mode</a></li><li class="chapter-item expanded "><a href="usage/rev.html"><strong aria-hidden="true">4.2.</strong> Reverse Mode</a></li></ol></li><li class="chapter-item expanded "><a href="limitations.html"><strong aria-hidden="true">5.</strong> Current Limitations</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="limitations/safety.html"><strong aria-hidden="true">5.1.</strong> Safety</a></li><li class="chapter-item expanded "><a href="limitations/runtime.html"><strong aria-hidden="true">5.2.</strong> Runtime Performance</a></li><li class="chapter-item expanded "><a href="limitations/comptime.html"><strong aria-hidden="true">5.3.</strong> Compile Times</a></li><li class="chapter-item expanded "><a href="limitations/higher.html"><strong aria-hidden="true">5.4.</strong> Higher Order Derivatives</a></li></ol></li><li class="chapter-item expanded "><a href="Debugging.html"><strong aria-hidden="true">6.</strong> How to Debug</a></li><li class="chapter-item expanded affix "><li class="part-title">Reference Guide</li><li class="chapter-item expanded "><a href="other_Frontends.html"><strong aria-hidden="true">7.</strong> Other Enzyme frontends</a></li><li class="chapter-item expanded "><a href="fwd.html"><strong aria-hidden="true">8.</strong> Forward Mode</a></li><li class="chapter-item expanded "><a href="rev.html"><strong aria-hidden="true">9.</strong> Reverse Mode</a></li><li class="chapter-item expanded "><a href="user_design.html"><strong aria-hidden="true">10.</strong> User facing design</a></li><li class="chapter-item expanded "><a href="rustc_design.html"><strong aria-hidden="true">11.</strong> rustc internal design</a></li><li class="chapter-item expanded "><a href="acknowledgments.html"><strong aria-hidden="true">12.</strong> Acknowledgments</a></li></ol>
95+
</div>
96+
<div id="sidebar-resize-handle" class="sidebar-resize-handle">
97+
<div class="sidebar-resize-indicator"></div>
98+
</div>
99+
</nav>
100+
101+
<!-- Track and set sidebar scroll position -->
102+
<script>
103+
var sidebarScrollbox = document.querySelector('#sidebar .sidebar-scrollbox');
104+
sidebarScrollbox.addEventListener('click', function(e) {
105+
if (e.target.tagName === 'A') {
106+
sessionStorage.setItem('sidebar-scroll', sidebarScrollbox.scrollTop);
107+
}
108+
}, { passive: true });
109+
var sidebarScrollTop = sessionStorage.getItem('sidebar-scroll');
110+
sessionStorage.removeItem('sidebar-scroll');
111+
if (sidebarScrollTop) {
112+
// preserve sidebar scroll position when navigating via links within sidebar
113+
sidebarScrollbox.scrollTop = sidebarScrollTop;
114+
} else {
115+
// scroll sidebar to current active section when navigating via "next/previous chapter" buttons
116+
var activeSection = document.querySelector('#sidebar .active');
117+
if (activeSection) {
118+
activeSection.scrollIntoView({ block: 'center' });
119+
}
120+
}
121+
</script>
122+
123+
<div id="page-wrapper" class="page-wrapper">
124+
125+
<div class="page">
126+
<div id="menu-bar-hover-placeholder"></div>
127+
<div id="menu-bar" class="menu-bar sticky">
128+
<div class="left-buttons">
129+
<label id="sidebar-toggle" class="icon-button" for="sidebar-toggle-anchor" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
130+
<i class="fa fa-bars"></i>
131+
</label>
132+
<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">
133+
<i class="fa fa-paint-brush"></i>
134+
</button>
135+
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu">
136+
<li role="none"><button role="menuitem" class="theme" id="light">Light</button></li>
137+
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li>
138+
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li>
139+
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li>
140+
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li>
141+
</ul>
142+
<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">
143+
<i class="fa fa-search"></i>
144+
</button>
145+
</div>
146+
147+
<h1 class="menu-title"></h1>
148+
149+
<div class="right-buttons">
150+
<a href="print.html" title="Print this book" aria-label="Print this book">
151+
<i id="print-button" class="fa fa-print"></i>
152+
</a>
153+
154+
</div>
155+
</div>
156+
157+
<div id="search-wrapper" class="hidden">
158+
<form id="searchbar-outer" class="searchbar-outer">
159+
<input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
160+
</form>
161+
<div id="searchresults-outer" class="searchresults-outer hidden">
162+
<div id="searchresults-header" class="searchresults-header"></div>
163+
<ul id="searchresults">
164+
</ul>
165+
</div>
166+
</div>
167+
168+
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM -->
169+
<script>
170+
document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible');
171+
document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible');
172+
Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) {
173+
link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1);
174+
});
175+
</script>
176+
177+
<div id="content" class="content">
178+
<main>
179+
<h1 id="document-not-found-404"><a class="header" href="#document-not-found-404">Document not found (404)</a></h1>
180+
<p>This URL is invalid, sorry. Please use the navigation bar or search to continue.</p>
181+
182+
</main>
183+
184+
<nav class="nav-wrapper" aria-label="Page navigation">
185+
<!-- Mobile navigation buttons -->
186+
187+
188+
<div style="clear: both"></div>
189+
</nav>
190+
</div>
191+
</div>
192+
193+
<nav class="nav-wide-wrapper" aria-label="Page navigation">
194+
195+
</nav>
196+
197+
</div>
198+
199+
200+
201+
202+
<script>
203+
window.playground_copyable = true;
204+
</script>
205+
206+
207+
<script src="elasticlunr.min.js"></script>
208+
<script src="mark.min.js"></script>
209+
<script src="searcher.js"></script>
210+
211+
<script src="clipboard.min.js"></script>
212+
<script src="highlight.js"></script>
213+
<script src="book.js"></script>
214+
215+
<!-- Custom JS scripts -->
216+
217+
218+
</div>
219+
</body>
220+
</html>

0 commit comments

Comments
 (0)