Skip to content

Commit

Permalink
start pages (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
bollwyvl authored Nov 29, 2023
1 parent 77e1222 commit 18f619d
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 14 deletions.
7 changes: 2 additions & 5 deletions .binder/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,20 @@ dependencies:
# runtimes
- python >=3.11,<3.12
# run
- doit-with-toml
- importnb
- pyyaml
- tomli
- doit-with-toml
# build
- flit-core >=3.9.0,<4
- pip
- python-build
# docs
- jupyterlite-core >=0.2.0,<0.3.0
- jupyterlite-pyodide-kernel >=0.2.0,<0.3.0
- python-libarchive-c
- docutils >=0.19
- myst-nb
- nbconvert
- pydata-sphinx-theme
- sphinx-copybutton
- sphinx-design
- sphinxcontrib-mermaid
- lxml
### docs/environment.yml ###
52 changes: 52 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: pages

on:
push:
branches:
- main

permissions:
contents: read

env:
JPYK_ALLOW_NO_CONFIG: 1

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
environment-file: .binder/environment.yml
miniforge-variant: Mambaforge
use-mamba: true
- run: doit bootstrap
env:
JPYK_LOG_NAME: bootstrap
- run: doit shave:git:*
env:
JPYK_LOG_NAME: git
- run: doit shave
env:
JPYK_LOG_NAME: shave
- run: doit self:docs:*
- uses: actions/upload-pages-artifact@v1
with:
path: build/docs

deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v1
2 changes: 0 additions & 2 deletions .github/workflows/self.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ concurrency:
cancel-in-progress: true

env:
PYTHONUNBUFFERED: 1
PIP_DISABLE_PIP_VERSION_CHECK: 1
JPYK_ALLOW_NO_CONFIG: 1

jobs:
Expand Down
4 changes: 2 additions & 2 deletions docs/.readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ build:
jobs:
pre_build:
- JPYK_ALLOW_NO_CONFIG=1 doit bootstrap
- if [ "$(ls -l jupyak_config.* | wc -l)" = "1" ]; then JPYK_LOG_JSON=work/build/logs/git.json doit shave:git:*; fi
- if [ "$(ls -l jupyak_config.* | wc -l)" = "1" ]; then JPYK_LOG_JSON=work/build/logs/shave.json doit shave; fi
- if [ "$(ls -l jupyak_config.* | wc -l)" = "1" ]; then JPYK_LOG_NAME=git doit shave:git:*; fi
- if [ "$(ls -l jupyak_config.* | wc -l)" = "1" ]; then JPYK_LOG_NAME=shave doit shave; fi
- JPYK_ALLOW_NO_CONFIG=1 doit self:docs:graph

sphinx:
Expand Down
7 changes: 2 additions & 5 deletions docs/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,20 @@ dependencies:
# runtimes
- python >=3.11,<3.12
# run
- doit-with-toml
- importnb
- pyyaml
- tomli
- doit-with-toml
# build
- flit-core >=3.9.0,<4
- pip
- python-build
# docs
- jupyterlite-core >=0.2.0,<0.3.0
- jupyterlite-pyodide-kernel >=0.2.0,<0.3.0
- python-libarchive-c
- docutils >=0.19
- myst-nb
- nbconvert
- pydata-sphinx-theme
- sphinx-copybutton
- sphinx-design
- sphinxcontrib-mermaid
- lxml
### docs/environment.yml ###

0 comments on commit 18f619d

Please sign in to comment.