diff --git a/docs/source/conf.py b/docs/source/conf.py index 5631116f3f..088a9d918a 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -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()