Skip to content

Commit

Permalink
fix rtd
Browse files Browse the repository at this point in the history
  • Loading branch information
bollwyvl committed Nov 29, 2023
1 parent c8f9190 commit 52a878c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 29 deletions.
27 changes: 0 additions & 27 deletions .readthedocs.yml

This file was deleted.

20 changes: 20 additions & 0 deletions docs/.readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: mambaforge-22.9
jobs:
pre_build:
- JPYK_ALLOW_NO_CONFIG=1 doit bootstrap
- ls jupyak_config.* && JPYK_LOG_JSON=work/build/logs/git.json doit shave:git:*
- ls jupyak_config.* && JPYK_LOG_JSON=work/build/logs/shave.json doit shave
- JPYK_ALLOW_NO_CONFIG=1 doit self:graph

sphinx:
builder: html
configuration: docs/conf.py
fail_on_warning: true

conda:
environment: .binder/environment.yml
3 changes: 1 addition & 2 deletions dodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,14 @@ class E:
WORK_DIR = os.environ.get("JPYK_WORK_DIR", "work")
LOG_NAME = os.environ.get("JPYK_LOG_NAME")
CI = bool(json.loads(os.environ.get("CI", "0").lower()))
CONDA_PREFIX = os.environ.get("CONDA_PREFIX")


class P:
DODO = Path(__file__)
ROOT = DODO.parent
PPT = ROOT / "pyproject.toml"
ENV_YAML = ROOT / ".binder/environment.yml"
ENV = Path(E.CONDA_PREFIX if (E.CI or E.RTD or E.BINDER) else ROOT / ".venv")
ENV = Path(sys.prefix if (E.CI or E.RTD or E.BINDER) else ROOT / ".venv")
HISTORY = ENV / "conda-meta/history"
LOGS = ROOT / E.WORK_DIR / "build/logs"

Expand Down

0 comments on commit 52a878c

Please sign in to comment.