-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): add .readthedocs.yaml (#34)
Co-authored-by: Xuehai Pan <[email protected]>
- Loading branch information
1 parent
7455286
commit bdf1558
Showing
6 changed files
with
111 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-20.04 | ||
tools: | ||
python: mambaforge-4.10 | ||
|
||
# Optionally declare the Python requirements required to build your docs | ||
conda: | ||
environment: docs/conda-recipe.yaml | ||
|
||
# If using Sphinx, optionally build your docs in additional formats such as PDF | ||
formats: | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
builder: html | ||
configuration: docs/source/conf.py | ||
fail_on_warning: true | ||
|
||
# Optionally declare the Python requirements required to build your docs | ||
python: | ||
install: | ||
- method: pip | ||
path: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Copyright 2022 MetaOPT Team. All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# ============================================================================== | ||
# | ||
# Create virtual environment with command: | ||
# | ||
# $ CONDA_OVERRIDE_CUDA=11.7 conda env create --file docs/conda-recipe.yaml | ||
# | ||
|
||
name: torchopt-docs | ||
|
||
channels: | ||
- pytorch | ||
- defaults | ||
- conda-forge | ||
|
||
dependencies: | ||
- python = 3.8 | ||
- pip | ||
|
||
# Learning | ||
- pytorch::pytorch = 1.12 | ||
- pytorch::torchvision | ||
- pytorch::pytorch-mutex = *=*cpu* | ||
- pip: | ||
- jax[cpu] >= 0.3 | ||
- functorch | ||
- torchviz | ||
- sphinxcontrib-katex # for documentation | ||
- tensorboard | ||
- wandb | ||
|
||
# Build toolchain | ||
- cmake >= 3.4 | ||
- make | ||
- cxx-compiler | ||
- gxx = 10 | ||
- nvidia/label/cuda-11.6.2::cuda-nvcc | ||
- nvidia/label/cuda-11.6.2::cuda-cudart-dev | ||
- pybind11 | ||
|
||
# Misc | ||
- typing-extensions | ||
- numpy | ||
- matplotlib-base | ||
- seaborn | ||
- python-graphviz | ||
- pillow | ||
|
||
# Documentation | ||
- sphinx | ||
- sphinx_rtd_theme | ||
- sphinx-autobuild | ||
- sphinx-copybutton | ||
- sphinxcontrib-spelling | ||
- sphinxcontrib-bibtex | ||
- sphinx-autodoc-typehints | ||
- pyenchant | ||
- myst-nb | ||
- ipykernel | ||
- pandoc | ||
- docutils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters