Skip to content

Commit

Permalink
build: Updating the sphinx configuration (apache#9833)
Browse files Browse the repository at this point in the history
Co-authored-by: John Bodley <[email protected]>
  • Loading branch information
john-bodley and John Bodley authored May 19, 2020
1 parent d96bb87 commit c117e22
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
7 changes: 7 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
import sys

import sphinx_rtd_theme
from pandas._typing import ArrayLike # Somehow required for type-checking.

from superset import security_manager # Somehow required for type-checking.

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -304,3 +307,7 @@

# If true, do not generate a @detailmenu in the "Top" node's menu.
# texinfo_no_detailmenu = False

# -- Options for sphinx-autodoc-typehints -------------------------------------

set_type_checking_flag = True
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
# limitations under the License.
#
sphinx==3.0.1
sphinx_autodoc_typehints==1.10.3
sphinx-autodoc-typehints==1.10.3
sphinx-rtd-theme==0.4.3
9 changes: 2 additions & 7 deletions docs/sqllab.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,11 @@ Superset's Jinja context:

`Jinja's builtin filters <http://jinja.pocoo.org/docs/dev/templates/>`_ can be also be applied where needed.

.. autofunction:: superset.jinja_context.ExtraCache.current_user_id

.. autofunction:: superset.jinja_context.ExtraCache.current_username

.. autofunction:: superset.jinja_context.ExtraCache.url_param
.. autoclass:: superset.jinja_context.ExtraCache
:members:

.. autofunction:: superset.jinja_context.filter_values

.. autofunction:: superset.jinja_context.ExtraCache.cache_key_wrapper

.. autoclass:: superset.jinja_context.PrestoTemplateProcessor
:members:

Expand Down

0 comments on commit c117e22

Please sign in to comment.