Skip to content

Commit bf3ebba

Browse files
authored
Merge pull request #41 from Tch1b0/enhance-docs
Enhance docs
2 parents 9841bfb + 066b069 commit bf3ebba

File tree

8 files changed

+379
-145
lines changed

8 files changed

+379
-145
lines changed

.github/workflows/docs.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Generate docs
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
gen-docs:
10+
name: Generate docs and deploy to GitHub Pages
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Setup node.js
17+
uses: actions/[email protected]
18+
19+
- name: Install dependencies
20+
run: npm ci
21+
22+
- name: Build docs
23+
run: npm run docs
24+
25+
- name: Deploy to GitHub Pages
26+
if: success()
27+
uses: crazy-max/ghaction-github-pages@v2
28+
with:
29+
target_branch: gh-pages
30+
build_dir: docs
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
dist
3-
practical-test
3+
practical-test
4+
docs

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ let t = await dm.getTimetable();
2323
console.log(t.entries[0].newSubject);
2424
```
2525

26-
```
26+
```bash
2727
English
2828
```
2929

3030
## Documentation
3131

32-
You can read the docs [on this Github Wiki](https://github.com/Tch1b0/dsbmobile.js/wiki).
32+
You can read the docs [right here](https://tch1b0.github.io/dsbmobile.js/).
3333

3434
## Contribute
3535

0 commit comments

Comments
 (0)