Skip to content

Commit

Permalink
speed up doc build (#694)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #694

Reviewed By: schwarzmx

Differential Revision: D53143804

fbshipit-source-id: 374f0d9104641f1ad3093356984082ee203512f6
  • Loading branch information
JKSenthil authored and facebook-github-bot committed Jan 27, 2024
1 parent 292637e commit 5b67b42
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,18 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"sphinx.ext.napoleon",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.viewcode",
"fbcode",
]

barebones = os.getenv("BAREBONES", None)
if barebones:
extensions = ["fbcode"]
else:
extensions = [
"sphinx.ext.napoleon",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.viewcode",
"fbcode",
]

FBCODE = "fbcode" in os.getcwd()

Expand Down

0 comments on commit 5b67b42

Please sign in to comment.