Skip to content

Commit 3478e53

Browse files
authored
Initial commit
0 parents  commit 3478e53

File tree

15 files changed

+109
-0
lines changed

15 files changed

+109
-0
lines changed
+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: jupyterbook-publish
2+
3+
# Only run this when the master branch changes
4+
on:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
# If your git repository has the Jupyter Book within some-subfolder next to
10+
# unrelated files, you can make this run only if a file within that specific
11+
# folder has been modified.
12+
#
13+
# paths:
14+
# - some-subfolder/**
15+
16+
# This job installs dependencies, builds the book, and pushes it to `gh-pages`
17+
jobs:
18+
deploy-book:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
23+
# Install dependencies
24+
- name: Set up Python 3.9
25+
uses: actions/setup-python@v2
26+
with:
27+
python-version: 3.9
28+
29+
- name: Install dependencies
30+
run: |
31+
pip install jupyter-book
32+
33+
# Build the book
34+
- name: Build the book
35+
run: |
36+
jupyter-book build .
37+
38+
# Push the book's HTML to github-pages
39+
- name: GitHub Pages action
40+
uses: peaceiris/[email protected]
41+
with:
42+
github_token: ${{ secrets.GITHUB_TOKEN }}
43+
publish_dir: ./_build/html

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
_build/
2+
.vscode/
3+
.idea/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
level: introductory
3+
stage: alpha
4+
---
5+
6+
# 测试文章
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
level: introductory
3+
stage: alpha
4+
---
5+
6+
# 测试文章2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 示例节1
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
level: introductory
3+
stage: alpha
4+
---
5+
6+
# 测试文章3

1_example_chapter/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 示例章
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 示例节2

2_example_chapter2/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 示例章2

3_example_chapter3/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 示例章2

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# CHANGELOG
2+
3+
## [0.2.0] - 2023-12-15
4+
5+
增加发布流水线;修改部分配置。
6+
7+
## [0.1.1] - 2022-10-10
8+
9+
修复ToC异常。
10+
11+
## [0.1.0] - 2022-09-30
12+
13+
最小可用版本。

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 量潮示例文档项目

_config.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# https://jupyterbook.org/en/stable/customize/config.html
2+
name: quanttide-example-of-documentation
3+
title: 量潮示例文档项目
4+
author: 量潮科技
5+
description: 量潮文档项目实例
6+
# Jupyter Book Config
7+
only_build_toc_files: true

_toc.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
format: jb-book
2+
root: index.md
3+
parts:
4+
- caption: 示例部分
5+
chapters:
6+
- file: 1_example_chapter/README.md
7+
sections:
8+
- file: 1_example_chapter/1_example_section/README.md
9+
sections:
10+
- file: 1_example_chapter/1_example_section/1_example_article.md
11+
- file: 1_example_chapter/1_example_section/1_example_article2.md
12+
- file: 1_example_chapter/2_example_article3.md
13+
- caption: 示例部分2
14+
chapters:
15+
- file: 2_example_chapter2/README.md
16+
sections:
17+
- file: 2_example_chapter2/1_example_section2/README.md
18+
- file: 3_example_chapter3/README.md

index.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 简介

0 commit comments

Comments
 (0)