From 6462aa60eacbc339714064befea203d5b255521c Mon Sep 17 00:00:00 2001 From: Jeremy Reizenstein Date: Thu, 13 Jul 2023 06:56:19 -0700 Subject: [PATCH] switch to readthedocs.yaml Summary: This is needed from september 2023. As a side effect, implicitron docs should build better because typing.get_args exists etc. Reviewed By: shapovalov Differential Revision: D47363855 fbshipit-source-id: a954c5b81b1e5a4435fca146a11aea0d2ca96f45 --- docs/.readthedocs.yaml | 27 +++++++++++++++++++++++++++ docs/requirements.txt | 4 ++-- 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 docs/.readthedocs.yaml diff --git a/docs/.readthedocs.yaml b/docs/.readthedocs.yaml new file mode 100644 index 00000000..e446f0af --- /dev/null +++ b/docs/.readthedocs.yaml @@ -0,0 +1,27 @@ +# Copyright (c) Meta Platforms, Inc. and affiliates. +# All rights reserved. +# +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. + +# 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-22.04 + tools: + python: "3.11" + +# Build documentation in the docs/ directory with Sphinx +sphinx: + configuration: docs/conf.py + +# We recommend specifying your dependencies to enable reproducible builds: +# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/requirements.txt b/docs/requirements.txt index fdde3077..b359e3b0 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -6,6 +6,6 @@ sphinx_markdown_tables numpy iopath fvcore -https://download.pytorch.org/whl/cpu/torchvision-0.8.2%2Bcpu-cp37-cp37m-linux_x86_64.whl -https://download.pytorch.org/whl/cpu/torch-1.7.1%2Bcpu-cp37-cp37m-linux_x86_64.whl +https://download.pytorch.org/whl/cpu/torchvision-0.15.2%2Bcpu-cp311-cp311-linux_x86_64.whl +https://download.pytorch.org/whl/cpu/torch-2.0.1%2Bcpu-cp311-cp311-linux_x86_64.whl omegaconf