Skip to content

Commit ca83397

Browse files
committed
repo: initial commit
0 parents  commit ca83397

File tree

8 files changed

+1407
-0
lines changed

8 files changed

+1407
-0
lines changed

.github/workflows/docs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Documentation
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
jobs:
12+
deploy:
13+
environment:
14+
name: github-pages
15+
url: ${{ steps.deployment.outputs.page_url }}
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/configure-pages@v5
19+
- uses: actions/checkout@v5
20+
- uses: actions/setup-python@v5
21+
with:
22+
python-version: 3.x
23+
- run: pip install -r requirements.txt
24+
- run: zensical build --clean
25+
- uses: actions/upload-pages-artifact@v4
26+
with:
27+
path: site
28+
- uses: actions/deploy-pages@v4

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.venv
2+
.cache
3+
site
4+
node_modules

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 华中科技大学开放原子开源俱乐部
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

docs/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 欢迎来到 Rust for QEMU Insides!
2+
3+
For full documentation visit [mkdocs.org](https://www.mkdocs.org).

mkdocs.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
site_name: Rust for QEMU Insides
2+
site_author: HUST Open Atom Club
3+
site_url: https://oss.openatom.club/
4+
repo_name: hust-open-atom-club/rust-for-qemu-insides
5+
repo_url: https://github.com/hust-open-atom-club/rust-for-qemu-insides
6+
copyright: Brought to you by <a href="https://hust.openatom.club/">HUST Open Atom Club</a>. Available freely under the MIT license.
7+
8+
plugins:
9+
- md-preview:
10+
enable: true
11+
left_title: "Markdown 源码"
12+
right_title: "渲染输出"
13+
14+
markdown_extensions:
15+
- admonition
16+
- footnotes
17+
- markdown.extensions.def_list
18+
- md_in_html
19+
- pymdownx.arithmatex:
20+
generic: true
21+
- pymdownx.tilde
22+
- pymdownx.details
23+
- pymdownx.tabbed
24+
- pymdownx.extra
25+
- pymdownx.inlinehilite
26+
- attr_list
27+
- pymdownx.emoji:
28+
emoji_index: !!python/name:material.extensions.emoji.twemoji
29+
emoji_generator: !!python/name:material.extensions.emoji.to_svg
30+
- pymdownx.highlight:
31+
anchor_linenums: true
32+
- pymdownx.inlinehilite
33+
- pymdownx.snippets:
34+
auto_append:
35+
- includes/man.md
36+
- includes/authors.md
37+
- pymdownx.superfences:
38+
custom_fences:
39+
- name: mermaid
40+
class: mermaid
41+
format: !!python/name:pymdownx.superfences.fence_code_format
42+
- toc:
43+
permalink: true
44+
- pymdownx.tasklist:
45+
custom_checkbox: true
46+
47+
theme:
48+
language: zh
49+
font:
50+
text: Inter
51+
code: JetBrains Mono
52+
palette:
53+
- media: "(prefers-color-scheme: light)"
54+
scheme: default
55+
toggle:
56+
icon: material/weather-sunny
57+
name: Switch to happy mode
58+
accent: pink
59+
60+
# Palette toggle for dark mode
61+
- media: "(prefers-color-scheme: dark)"
62+
scheme: slate
63+
toggle:
64+
icon: material/weather-night
65+
name: Switch to light mode
66+
primary: blue grey
67+
accent: pink
68+
69+
features:
70+
- content.code.copy
71+
- content.tooltips
72+
- navigation.footer
73+
- navigation.indexes
74+
- navigation.top
75+
- navigation.tracking
76+
- navigation.tabs
77+
- content.comments
78+
- search.suggest
79+
- search.highlight
80+
- search.share
81+
- header.autohide
82+
83+
nav:
84+
- 主页: index.md

0 commit comments

Comments
 (0)