Issue building documentation with mkdocs #181
-
Not sure if I'm doing something wrong but I got the following message when running mkdocs build: roba@onio-ws08 15:06:30 mkdocs build
INFO - Cleaning site directory
INFO - Building documentation to directory: /home/roba/tmp/textual/site
ERROR - mkdocstrings.extension: 'type' object is not subscriptable
Traceback (most recent call last):
File "/home/roba/.virtualenvs/textual-test/lib/python3.8/site-packages/pytkdocs/cli.py", line 205, in main
output = json.dumps(process_json(line))
File "/home/roba/.virtualenvs/textual-test/lib/python3.8/site-packages/pytkdocs/cli.py", line 114, in process_json
return process_config(json.loads(json_input))
File "/home/roba/.virtualenvs/textual-test/lib/python3.8/site-packages/pytkdocs/cli.py", line 91, in process_config
obj = loader.get_object_documentation(path, members)
File "/home/roba/.virtualenvs/textual-test/lib/python3.8/site-packages/pytkdocs/loader.py", line 358, in
get_object_documentation
root_object = self.get_class_documentation(leaf, members)
File "/home/roba/.virtualenvs/textual-test/lib/python3.8/site-packages/pytkdocs/loader.py", line 455, in
get_class_documentation
merge(attributes_data, get_class_attributes(parent_class))
File "/home/roba/.virtualenvs/textual-test/lib/python3.8/site-packages/pytkdocs/parsers/attributes.py", line 115, in
get_class_attributes
type_hints = get_type_hints(cls)
File "/usr/lib/python3.8/typing.py", line 1232, in get_type_hints
value = _eval_type(value, base_globals, localns)
File "/usr/lib/python3.8/typing.py", line 270, in _eval_type
return t._evaluate(globalns, localns)
File "/usr/lib/python3.8/typing.py", line 518, in _evaluate
eval(self.__forward_code__, globalns, localns),
File "<string>", line 1, in <module>
TypeError: 'type' object is not subscriptable
ERROR - Error reading page 'reference/app.md':
ERROR - Could not collect 'textual.app.App'
Aborted with a BuildError! I've done the following
|
Beta Was this translation helpful? Give feedback.
Answered by
willmcgugan
Dec 14, 2021
Replies: 1 comment 6 replies
-
Docs are work in progress. Nothing to build as yet. |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
rbarzic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Docs are work in progress. Nothing to build as yet.