Skip to content

Commit 3e46869

Browse files
Merge pull request #8 from michaeljoseph/2021-mkdocs
Switch to mkdocs
2 parents 9b19b3e + ca62a11 commit 3e46869

File tree

292 files changed

+961
-18093
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

292 files changed

+961
-18093
lines changed

.env

Lines changed: 0 additions & 20 deletions
This file was deleted.

.envrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
source_up
2+
use asdf

.github/workflows/main.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: ✍️ Document and 🚀 Deployment
2+
on:
3+
push:
4+
branches: [ main ]
5+
tags: [ "*" ]
6+
pull_request:
7+
workflow_dispatch:
8+
jobs:
9+
documents:
10+
name: "Build and deploy documentation"
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-python@v2
15+
with:
16+
python-version: "3.9"
17+
18+
- name: Build documentation
19+
run: |
20+
python -m pip install --upgrade poetry
21+
poetry install
22+
poetry run mkdocs build
23+
24+
- name: Deploy preview to Surge
25+
if: github.event_name == 'pull_request'
26+
env:
27+
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
28+
run: |
29+
npx surge --project site \
30+
--domain michaeljoseph-preview-${{ github.event.number }}.surge.sh \
31+
--token ${{ secrets.SURGE_TOKEN }}
32+
33+
- name: Deploy to GitHub Pages
34+
uses: peaceiris/actions-gh-pages@v3
35+
if: github.ref == 'refs/heads/main'
36+
with:
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
publish_dir: ./site
39+
40+
- name: Deploy to Surge
41+
if: github.ref == 'refs/heads/main'
42+
env:
43+
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
44+
run: |
45+
npx surge --project site \
46+
--domain michaeljoseph.surge.sh \
47+
--token ${{ secrets.SURGE_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ nosetests.xml
3636
.pydevproject
3737

3838
/docs/_build
39+
/site
3940
.idea
4041
*.iml
4142
.noseids

.tool-versions

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
python 3.9.5
2+
nodejs 16.4.0

0 commit comments

Comments
 (0)