Skip to content

Commit

Permalink
Merge pull request #191 from janash/rtd-patch
Browse files Browse the repository at this point in the history
update rtd yaml and requirements file
  • Loading branch information
Lnaden authored Jul 23, 2024
2 parents 372d4e1 + dd93ef5 commit d1bc7ec
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 18 deletions.
2 changes: 1 addition & 1 deletion hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def remove_rtd():
include_rtd = '{{ cookiecutter.include_ReadTheDocs }}'
if include_rtd == "n":
rtd_env = os.path.join("docs", "requirements.yaml")
os.remove('readthedocs.yml')
os.remove('.readthedocs.yaml')
os.remove(rtd_env)


Expand Down
9 changes: 9 additions & 0 deletions {{cookiecutter.repo_name}}/.readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2

build:
os: "ubuntu-22.04"
tools:
python: "mambaforge-22.9"

conda:
environment: docs/requirements.yaml
4 changes: 2 additions & 2 deletions {{cookiecutter.repo_name}}/docs/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: docs_{{cookiecutter.project_name}}
channels:
{% if cookiecutter.dependency_source == 'Prefer conda-forge over the default anaconda channel with pip fallback' %}
{% if cookiecutter.dependency_source == 'Prefer conda-forge with pip fallback' %}
- conda-forge
{% endif %}
- defaults
dependencies:
# Base depends
- python
- pip
{% if cookiecutter.dependency_source == 'Prefer conda-forge over the default anaconda channel with pip fallback' %}
{% if cookiecutter.dependency_source == 'Prefer conda-forge with pip fallback' %}
- pydata-sphinx-theme
- sphinx-design
- sphinx-copybutton
Expand Down
15 changes: 0 additions & 15 deletions {{cookiecutter.repo_name}}/readthedocs.yml

This file was deleted.

0 comments on commit d1bc7ec

Please sign in to comment.