Skip to content

Commit 121664e

Browse files
committed
feat: init book
0 parents  commit 121664e

File tree

7 files changed

+43
-0
lines changed

7 files changed

+43
-0
lines changed

.github/workflows/gh-pages.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: github pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-20.04
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Setup mdBook
18+
uses: peaceiris/actions-mdbook@v1
19+
with:
20+
mdbook-version: '0.4.10'
21+
# mdbook-version: 'latest'
22+
23+
- run: mdbook build
24+
25+
- name: Deploy
26+
uses: peaceiris/actions-gh-pages@v3
27+
if: ${{ github.ref == 'refs/heads/main' }}
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: ./book

.gitignore

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

CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/CNAME

book.toml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[book]
2+
authors = ["Brett Chalupa"]
3+
language = "en"
4+
multilingual = false
5+
src = "src"
6+
title = "Building Games with DragonRuby Game Toolkit"

src/CNAME

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

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)

src/chapter_1.md

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

0 commit comments

Comments
 (0)