From 241273d36261a24bd71adb82da223b084b4589af Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Fri, 19 Feb 2021 01:58:16 -0500 Subject: [PATCH] API Docs: Fix generation failing with unused context members Instead of raising an expection a warnign is generated instead. This fixes the issue where `['hair', 'pointcloud']` are disabled for release builds. In the future a better solution would be to generate the context map dynamically but this would require refactoring of the API: D9988 --- doc/python_api/sphinx_doc_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index 12ffe5b6edf..6d94c619bcf 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -81,7 +81,7 @@ import sys import inspect import shutil import logging -import warning +import warnings from textwrap import indent