mirror of
https://github.com/Instagram/LibCST.git
synced 2025-12-23 10:35:53 +00:00
Fix doc build error (#1221)
Apparently doc2path now returns a path not a string
This commit is contained in:
parent
527a4b04e1
commit
42df0881ba
1 changed files with 2 additions and 1 deletions
|
|
@ -196,6 +196,7 @@ intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
|
|||
# If true, `todo` and `todoList` produce output, else they produce nothing.
|
||||
todo_include_todos = True
|
||||
|
||||
|
||||
# -- autodoc customization
|
||||
def strip_class_signature(app, what, name, obj, options, signature, return_annotation):
|
||||
if what == "class":
|
||||
|
|
@ -218,7 +219,7 @@ def setup(app):
|
|||
|
||||
|
||||
nbsphinx_prolog = r"""
|
||||
{% set docname = 'docs/source/' + env.doc2path(env.docname, base=None) %}
|
||||
{% set docname = 'docs/source/' + env.doc2path(env.docname, base=None)|string%}
|
||||
|
||||
.. only:: html
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue