Skip to content

Commit

Permalink
doh
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Feb 3, 2024
1 parent 05260b1 commit 44684ca
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/hooks/post_gen_project.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""Provide hooks to run after project is generated."""
from pathlib import Path
import shutil


if not {{ cookiecutter.add_docs }}:
shutil.rmtree("docs")
Path(".readthedocs.yaml").unlink()
16 changes: 16 additions & 0 deletions python/{{cookiecutter.project_slug}}/.readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2

build:
os: "ubuntu-20.04"
tools:
python: "3.11"

python:
install:
- method: pip
path: .
extra_requirements:
- docs

sphinx:
configuration: docs/source/conf.py

0 comments on commit 44684ca

Please sign in to comment.