diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py index 468b504e5..d83c0ca90 100644 --- a/sphinx/directives/other.py +++ b/sphinx/directives/other.py @@ -41,7 +41,7 @@ class TocTree(Directive): option_spec = { 'maxdepth': int, 'name': directives.unchanged, - 'caption': str, + 'caption': directives.unchanged_required, 'glob': directives.flag, 'hidden': directives.flag, 'includehidden': directives.flag,