Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
xiezipeng05 authored Nov 7, 2024
0 parents commit f2bdda1
Show file tree
Hide file tree
Showing 15 changed files with 109 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/jupyterbook-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: jupyterbook-publish

# Only run this when the master branch changes
on:
push:
branches:
- main
- master
# If your git repository has the Jupyter Book within some-subfolder next to
# unrelated files, you can make this run only if a file within that specific
# folder has been modified.
#
# paths:
# - some-subfolder/**

# This job installs dependencies, builds the book, and pushes it to `gh-pages`
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# Install dependencies
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install dependencies
run: |
pip install jupyter-book
# Build the book
- name: Build the book
run: |
jupyter-book build .
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3.6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_build/
.vscode/
.idea/
6 changes: 6 additions & 0 deletions 1_example_chapter/1_example_section/1_example_article.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
level: introductory
stage: alpha
---

# 测试文章
6 changes: 6 additions & 0 deletions 1_example_chapter/1_example_section/1_example_article2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
level: introductory
stage: alpha
---

# 测试文章2
1 change: 1 addition & 0 deletions 1_example_chapter/1_example_section/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 示例节1
6 changes: 6 additions & 0 deletions 1_example_chapter/2_example_article3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
level: introductory
stage: alpha
---

# 测试文章3
1 change: 1 addition & 0 deletions 1_example_chapter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 示例章
1 change: 1 addition & 0 deletions 2_example_chapter2/1_example_section2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 示例节2
1 change: 1 addition & 0 deletions 2_example_chapter2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 示例章2
1 change: 1 addition & 0 deletions 3_example_chapter3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 示例章2
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# CHANGELOG

## [0.2.0] - 2023-12-15

增加发布流水线;修改部分配置。

## [0.1.1] - 2022-10-10

修复ToC异常。

## [0.1.0] - 2022-09-30

最小可用版本。
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 量潮示例文档项目
7 changes: 7 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# https://jupyterbook.org/en/stable/customize/config.html
name: quanttide-example-of-documentation
title: 量潮示例文档项目
author: 量潮科技
description: 量潮文档项目实例
# Jupyter Book Config
only_build_toc_files: true
18 changes: 18 additions & 0 deletions _toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
format: jb-book
root: index.md
parts:
- caption: 示例部分
chapters:
- file: 1_example_chapter/README.md
sections:
- file: 1_example_chapter/1_example_section/README.md
sections:
- file: 1_example_chapter/1_example_section/1_example_article.md
- file: 1_example_chapter/1_example_section/1_example_article2.md
- file: 1_example_chapter/2_example_article3.md
- caption: 示例部分2
chapters:
- file: 2_example_chapter2/README.md
sections:
- file: 2_example_chapter2/1_example_section2/README.md
- file: 3_example_chapter3/README.md
1 change: 1 addition & 0 deletions index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# 简介

0 comments on commit f2bdda1

Please sign in to comment.