-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Pull Request resolved: #118 This diff adds a python script `update_docs.py` which automatically generates `torcheval.metrics.rst` and `torcheval.metrics.functional.rst`, ensuring the API docs will always be in sync. I also fixed several errors with the docstrings and missing imports which I found while writing this code. Reviewed By: ananthsub Differential Revision: D42404082 fbshipit-source-id: 7c3fabffdb016d6c7528c2c3f3bfacc5e083fd26
- Loading branch information
1 parent
94e018d
commit 3b7c10b
Showing
27 changed files
with
279 additions
and
60 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,17 @@ | ||
#!/bin/bash | ||
# 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. | ||
|
||
# This script shows how to build the docs. | ||
# 1. First ensure you have the installed requirements for torcheval in `requirements.txt` | ||
# 2. Then make sure you have installed the requirements inside `docs/requirements.txt` | ||
# 3. Finally cd into docs/ and source this script. Sphinx reads through the installed module | ||
# pull docstrings, so this script just installs the current version of torcheval on your | ||
# system before it builds the docs with `make html` | ||
cd .. || exit | ||
pip install --no-build-isolation . | ||
cd docs || exit | ||
make html |
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
Oops, something went wrong.