Skip to content

Commit d5b1e95

Browse files
author
Deploy from CI
committed
Deploy 221602b to gh-pages
0 parents  commit d5b1e95

Some content is hidden

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

66 files changed

+12810
-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+
- master
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: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,221 @@
1+
<!DOCTYPE HTML>
2+
<html lang="zh-CN" class="light" dir="ltr">
3+
<head>
4+
<!-- Book generated using mdBook -->
5+
<meta charset="UTF-8">
6+
<title>Page not found - RuxOS 手册</title>
7+
<base href="/">
8+
9+
10+
<!-- Custom HTML head -->
11+
12+
<meta name="description" content="RuxOS 手册">
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+
</head>
35+
<body class="sidebar-visible no-js">
36+
<div id="body-container">
37+
<!-- Provide site root to javascript -->
38+
<script>
39+
var path_to_root = "";
40+
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "navy" : "light";
41+
</script>
42+
43+
<!-- Work around some values being stored in localStorage wrapped in quotes -->
44+
<script>
45+
try {
46+
var theme = localStorage.getItem('mdbook-theme');
47+
var sidebar = localStorage.getItem('mdbook-sidebar');
48+
49+
if (theme.startsWith('"') && theme.endsWith('"')) {
50+
localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1));
51+
}
52+
53+
if (sidebar.startsWith('"') && sidebar.endsWith('"')) {
54+
localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1));
55+
}
56+
} catch (e) { }
57+
</script>
58+
59+
<!-- Set the theme before any content is loaded, prevents flash -->
60+
<script>
61+
var theme;
62+
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
63+
if (theme === null || theme === undefined) { theme = default_theme; }
64+
var html = document.querySelector('html');
65+
html.classList.remove('light')
66+
html.classList.add(theme);
67+
var body = document.querySelector('body');
68+
body.classList.remove('no-js')
69+
body.classList.add('js');
70+
</script>
71+
72+
<input type="checkbox" id="sidebar-toggle-anchor" class="hidden">
73+
74+
<!-- Hide / unhide sidebar before it is displayed -->
75+
<script>
76+
var body = document.querySelector('body');
77+
var sidebar = null;
78+
var sidebar_toggle = document.getElementById("sidebar-toggle-anchor");
79+
if (document.body.clientWidth >= 1080) {
80+
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
81+
sidebar = sidebar || 'visible';
82+
} else {
83+
sidebar = 'hidden';
84+
}
85+
sidebar_toggle.checked = sidebar === 'visible';
86+
body.classList.remove('sidebar-visible');
87+
body.classList.add("sidebar-" + sidebar);
88+
</script>
89+
90+
<nav id="sidebar" class="sidebar" aria-label="Table of contents">
91+
<div class="sidebar-scrollbox">
92+
<ol class="chapter"><li class="chapter-item expanded affix "><a href="Introduction.html">简介</a></li><li class="chapter-item expanded affix "><li class="part-title">关于 RuxOS</li><li class="chapter-item expanded "><a href="chap01/Overview.html"><strong aria-hidden="true">1.</strong> RuxOS 概述</a></li><li class="chapter-item expanded affix "><li class="part-title">RuxOS 使用手册</li><li class="chapter-item expanded "><a href="chap02/getstarted.html"><strong aria-hidden="true">2.</strong> 运行现有应用</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="chap02/arguments.html"><strong aria-hidden="true">2.1.</strong> 编译参数说明</a></li><li class="chapter-item expanded "><a href="chap02/apps/root.html"><strong aria-hidden="true">2.2.</strong> 现有应用</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="chap02/apps/helloworld.html"><strong aria-hidden="true">2.2.1.</strong> Hello World!</a></li><li class="chapter-item expanded "><a href="chap02/apps/iperf.html"><strong aria-hidden="true">2.2.2.</strong> Iperf3</a></li><li class="chapter-item expanded "><a href="chap02/apps/sqlite.html"><strong aria-hidden="true">2.2.3.</strong> Sqlite</a></li><li class="chapter-item expanded "><a href="chap02/apps/redis.html"><strong aria-hidden="true">2.2.4.</strong> Redis</a></li><li class="chapter-item expanded "><a href="chap02/apps/nginx.html"><strong aria-hidden="true">2.2.5.</strong> Nginx</a></li></ol></li></ol></li><li class="chapter-item expanded "><a href="chap03/your_app.html"><strong aria-hidden="true">3.</strong> 自定义应用</a></li><li class="chapter-item expanded "><a href="chap04/ruxgo.html"><strong aria-hidden="true">4.</strong> 使用 ruxgo 构建</a></li><li class="chapter-item expanded "><a href="chap05/multiplatforms.html"><strong aria-hidden="true">5.</strong> 多平台支持</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="chap05/Raspi4.html"><strong aria-hidden="true">5.1.</strong> Raspi4</a></li></ol></li><li class="chapter-item expanded "><li class="part-title">整体架构</li><li class="chapter-item expanded "><a href="chap06/design_overview.html"><strong aria-hidden="true">6.</strong> 设计概述</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="chap06/crates/crates.html"><strong aria-hidden="true">6.1.</strong> 底层库</a></li><li class="chapter-item expanded "><a href="chap06/modules/modules.html"><strong aria-hidden="true">6.2.</strong> 模块</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="chap06/modules/9pfs.html"><strong aria-hidden="true">6.2.1.</strong> 9pfs</a></li></ol></li></ol></li><li class="chapter-item expanded "><a href="chap07/ulib/ulib.html"><strong aria-hidden="true">7.</strong> 用户库</a></li><li><ol class="section"><li class="chapter-item expanded "><a href="chap07/ulib/ruxos-posix-api.html"><strong aria-hidden="true">7.1.</strong> ruxos-posix-api</a></li><li class="chapter-item expanded "><a href="chap07/ulib/ruxlibc.html"><strong aria-hidden="true">7.2.</strong> ruxlibc</a></li><li class="chapter-item expanded "><a href="chap07/ulib/ruxmusl.html"><strong aria-hidden="true">7.3.</strong> ruxmusl</a></li></ol></li><li class="chapter-item expanded "><li class="part-title">未来工作</li><li class="chapter-item expanded "><div><strong aria-hidden="true">8.</strong> TODO</div></li><li class="spacer"></li><li class="chapter-item expanded affix "><a href="Contributors.html">贡献</a></li></ol>
93+
</div>
94+
<div id="sidebar-resize-handle" class="sidebar-resize-handle">
95+
<div class="sidebar-resize-indicator"></div>
96+
</div>
97+
</nav>
98+
99+
<!-- Track and set sidebar scroll position -->
100+
<script>
101+
var sidebarScrollbox = document.querySelector('#sidebar .sidebar-scrollbox');
102+
sidebarScrollbox.addEventListener('click', function(e) {
103+
if (e.target.tagName === 'A') {
104+
sessionStorage.setItem('sidebar-scroll', sidebarScrollbox.scrollTop);
105+
}
106+
}, { passive: true });
107+
var sidebarScrollTop = sessionStorage.getItem('sidebar-scroll');
108+
sessionStorage.removeItem('sidebar-scroll');
109+
if (sidebarScrollTop) {
110+
// preserve sidebar scroll position when navigating via links within sidebar
111+
sidebarScrollbox.scrollTop = sidebarScrollTop;
112+
} else {
113+
// scroll sidebar to current active section when navigating via "next/previous chapter" buttons
114+
var activeSection = document.querySelector('#sidebar .active');
115+
if (activeSection) {
116+
activeSection.scrollIntoView({ block: 'center' });
117+
}
118+
}
119+
</script>
120+
121+
<div id="page-wrapper" class="page-wrapper">
122+
123+
<div class="page">
124+
<div id="menu-bar-hover-placeholder"></div>
125+
<div id="menu-bar" class="menu-bar sticky">
126+
<div class="left-buttons">
127+
<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">
128+
<i class="fa fa-bars"></i>
129+
</label>
130+
<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">
131+
<i class="fa fa-paint-brush"></i>
132+
</button>
133+
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu">
134+
<li role="none"><button role="menuitem" class="theme" id="light">Light</button></li>
135+
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li>
136+
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li>
137+
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li>
138+
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li>
139+
</ul>
140+
<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">
141+
<i class="fa fa-search"></i>
142+
</button>
143+
</div>
144+
145+
<h1 class="menu-title">RuxOS 手册</h1>
146+
147+
<div class="right-buttons">
148+
<a href="print.html" title="Print this book" aria-label="Print this book">
149+
<i id="print-button" class="fa fa-print"></i>
150+
</a>
151+
<a href="https://github.com/syswonder/ruxos" title="Git repository" aria-label="Git repository">
152+
<i id="git-repository-button" class="fa fa-github"></i>
153+
</a>
154+
155+
</div>
156+
</div>
157+
158+
<div id="search-wrapper" class="hidden">
159+
<form id="searchbar-outer" class="searchbar-outer">
160+
<input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
161+
</form>
162+
<div id="searchresults-outer" class="searchresults-outer hidden">
163+
<div id="searchresults-header" class="searchresults-header"></div>
164+
<ul id="searchresults">
165+
</ul>
166+
</div>
167+
</div>
168+
169+
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM -->
170+
<script>
171+
document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible');
172+
document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible');
173+
Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) {
174+
link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1);
175+
});
176+
</script>
177+
178+
<div id="content" class="content">
179+
<main>
180+
<h1 id="document-not-found-404"><a class="header" href="#document-not-found-404">Document not found (404)</a></h1>
181+
<p>This URL is invalid, sorry. Please use the navigation bar or search to continue.</p>
182+
183+
</main>
184+
185+
<nav class="nav-wrapper" aria-label="Page navigation">
186+
<!-- Mobile navigation buttons -->
187+
188+
189+
<div style="clear: both"></div>
190+
</nav>
191+
</div>
192+
</div>
193+
194+
<nav class="nav-wide-wrapper" aria-label="Page navigation">
195+
196+
</nav>
197+
198+
</div>
199+
200+
201+
202+
203+
<script>
204+
window.playground_copyable = true;
205+
</script>
206+
207+
208+
<script src="elasticlunr.min.js"></script>
209+
<script src="mark.min.js"></script>
210+
<script src="searcher.js"></script>
211+
212+
<script src="clipboard.min.js"></script>
213+
<script src="highlight.js"></script>
214+
<script src="book.js"></script>
215+
216+
<!-- Custom JS scripts -->
217+
218+
219+
</div>
220+
</body>
221+
</html>

0 commit comments

Comments
 (0)