Skip to content

Commit

Permalink
🪐 Migrated to jupyter book.
Browse files Browse the repository at this point in the history
This seems to be way better than mkdocs.
  • Loading branch information
rentruewang committed Oct 12, 2024
1 parent 62e96c9 commit 80fddca
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 48 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,25 @@ jobs:
python-version: "3.10"

- name: ⬇️ Python PDM
uses: pdm-project/setup-pdm@v3
uses: pdm-project/setup-pdm@v4
with:
python-version: "3.10"
cache: true

- name: ⬇️ Python Dependencies
run: pdm install
run: pdm install -G:all

- name: 🚂 Activate environment
run: echo "$(pdm venv --path in-project)/bin" >> $GITHUB_PATH

- name: 📰 Publish docs
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: 🚧 Jupyter build
run: jupyter book build docs

- name: ⬆️ MkDocs deploy
run: mkdocs gh-deploy --force
- name: 📰 Publish docs
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: ./docs/_build/html
git-config-name: "github-actions[bot]"
git-config-email: "github-actions[bot]@users.noreply.github.com"
commit-message: 🎉 Book deployed
17 changes: 0 additions & 17 deletions STRATEGY.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/CODE_OF_CONDUCT.md

This file was deleted.

2 changes: 2 additions & 0 deletions docs/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
```{include} ../CODE_OF_CONDUCT.md
```
1 change: 0 additions & 1 deletion docs/LICENSE.md

This file was deleted.

4 changes: 4 additions & 0 deletions docs/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License

```{include} ../LICENSE.md
```
1 change: 0 additions & 1 deletion docs/README.md

This file was deleted.

16 changes: 16 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
title: Koila
author: RenChu Wang
copyright: RenChu Wang, 2024
logo: assets/koila.png

exclude_patterns: [_build]
only_build_toc_files: true

repository:
url: https://github.com/rentruewang/koila

html:
use_repository_button: true

execute:
execute_notebooks: force
5 changes: 5 additions & 0 deletions docs/_toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
format: jb-article
root: index
sections:
- file: LICENSE
- file: CODE_OF_CONDUCT
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
```{include} ../README.md
```
20 changes: 0 additions & 20 deletions mkdocs.yml

This file was deleted.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ website = [
"mkdocs-git-revision-date-plugin>=0.3.2",
"mkdocs-git-revision-date-localized-plugin>=1.2.2",
"mkdocs-material>=9.5.3",
"jupyter>=1.1.1",
"jupyter-book>=1.0.3",
"myst-parser>=2.0.0",
]
type = [
"mypy>=1.8.0",
Expand Down

0 comments on commit 80fddca

Please sign in to comment.