Skip to content

Commit 22ffa06

Browse files
committed
nits
1 parent 5be24a9 commit 22ffa06

3 files changed

Lines changed: 103 additions & 0 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- release/v2.0
8+
paths:
9+
- 'book/**'
10+
- 'book.toml'
11+
- '.github/workflows/deploy-docs.yml'
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: false
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v4
29+
30+
- name: Setup mdBook
31+
uses: peaceiris/actions-mdbook@v2
32+
with:
33+
mdbook-version: 'latest'
34+
35+
- name: Setup Pages
36+
uses: actions/configure-pages@v4
37+
38+
- name: Build documentation
39+
run: mdbook build
40+
41+
- name: Upload artifact
42+
uses: actions/upload-pages-artifact@v3
43+
with:
44+
path: ./book/docs
45+
46+
deploy:
47+
environment:
48+
name: github-pages
49+
url: ${{ steps.deployment.outputs.page_url }}
50+
runs-on: ubuntu-latest
51+
needs: build
52+
steps:
53+
- name: Deploy to GitHub Pages
54+
id: deployment
55+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ __pycache__/
66
# UV virtual environment
77
.venv/
88
uv.lock
9+
10+
# mdbook
11+
book/book/

book.toml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
[book]
2+
title = "StarPerf Documentation"
3+
authors = ["StarPerf Team"]
4+
description = "A comprehensive platform for simulating and analyzing mega-constellation satellite network performance"
5+
language = "en"
6+
multilingual = false
7+
src = "book/src"
8+
9+
[build]
10+
build-dir = "book/docs"
11+
12+
[output.html]
13+
default-theme = "dark"
14+
preferred-dark-theme = "navy"
15+
git-repository-url = "https://github.com/SpaceNetLab/StarPerf_Simulator"
16+
git-repository-icon = "fa-github"
17+
edit-url-template = "https://github.com/SpaceNetLab/StarPerf_Simulator/edit/main/book/src/{path}"
18+
site-url = "/StarPerf_Simulator/"
19+
cname = ""
20+
21+
[output.html.fold]
22+
enable = true
23+
level = 0
24+
25+
[output.html.search]
26+
enable = true
27+
limit-results = 30
28+
teaser-word-count = 30
29+
use-boolean-and = true
30+
boost-title = 2
31+
boost-hierarchy = 1
32+
boost-paragraph = 1
33+
expand = true
34+
heading-split-level = 3
35+
36+
[output.html.playground]
37+
editable = false
38+
copyable = true
39+
copy-js = true
40+
line-numbers = true
41+
42+
[preprocessor.katex]
43+
44+
[output.html.print]
45+
enable = true

0 commit comments

Comments
 (0)