Skip to content

Commit 87d17a7

Browse files
committed
Add docs and CI
1 parent 52f6bfa commit 87d17a7

File tree

6 files changed

+43
-0
lines changed

6 files changed

+43
-0
lines changed

.github/workflows/deploy.yaml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: deploy to pages
2+
3+
on:
4+
push:
5+
branches: [source]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: setup mdBook
14+
uses: peaceiris/actions-mdbook@v1
15+
with:
16+
mdbook-version: latest
17+
18+
- name: build mdBook docs
19+
run: cd docs && mdbook build
20+
21+
- name: assemble website
22+
run: |
23+
mkdir public
24+
mv website/* public
25+
mv docs/book public/docs
26+
27+
- name: deploy
28+
uses: peaceiris/actions-gh-pages@v3
29+
with:
30+
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
31+
publish_dir: ./public
32+
publish_branch: master

docs/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
book

docs/book.toml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[book]
2+
authors = ["RustPython Contributors"]
3+
language = "en"
4+
multilingual = false
5+
src = "src"
6+
title = "RustPython docs"

docs/src/SUMMARY.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Summary
2+
3+
- [Chapter 1](./chapter_1.md)

docs/src/chapter_1.md

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

index.md website/index.md

File renamed without changes.

0 commit comments

Comments
 (0)