You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
您好,我在mkdocs build的时候遇到问题
[root@VM-0-5-centos ctf-wiki]# python3 scripts/docs.py build-all
Updating en
Updating zh
Building docs for: zh
Error reading page 'android/basic_operating_mechanism/native_layer/so.md': format() argument must be a formatter instance, not a class
Traceback (most recent call last):
File "/usr/local/lib64/python3.6/site-packages/pygments/init.py", line 61, in format
formatter.format(tokens, realoutfile)
File "/usr/local/lib64/python3.6/site-packages/pygments/formatter.py", line 94, in format
return self.format_unencoded(tokensource, outfile)
File "/usr/local/lib64/python3.6/site-packages/pygments/formatters/html.py", line 981, in format_unencoded
source = self.wrap(source)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scripts/docs.py", line 458, in
File "scripts/docs.py", line 279, in build_all
File "/usr/local/lib/python3.6/site-packages/mkdocs/commands/build.py", line 292, in build
_populate_page(file.page, config, files, dirty)
File "/usr/local/lib/python3.6/site-packages/mkdocs/commands/build.py", line 174, in _populate_page
page.render(config, files)
File "/usr/local/lib/python3.6/site-packages/mkdocs/structure/pages.py", line 175, in render
self.content = md.convert(self.markdown)
File "/usr/local/lib/python3.6/site-packages/markdown/core.py", line 261, in convert
self.lines = prep.run(self.lines)
File "/usr/local/lib/python3.6/site-packages/pymdownx/superfences.py", line 863, in run
return self.search_nested(lines)
File "/usr/local/lib/python3.6/site-packages/pymdownx/superfences.py", line 697, in search_nested
self.eval_quoted(ws, content, quote_level, start, end)
File "/usr/local/lib/python3.6/site-packages/pymdownx/superfences.py", line 450, in eval_quoted
self.process_nested_block(ws, content, start, end)
File "/usr/local/lib/python3.6/site-packages/pymdownx/superfences.py", line 471, in process_nested_block
attrs=self.attrs if self.attr_list else {}
File "/usr/local/lib/python3.6/site-packages/pymdownx/superfences.py", line 794, in highlight
code_block_count=self.highlight_ext.pygments_code_block
File "/usr/local/lib/python3.6/site-packages/pymdownx/highlight.py", line 381, in highlight
code = highlight(src, lexer, formatter)
File "/usr/local/lib64/python3.6/site-packages/pygments/init.py", line 82, in highlight
return format(lex(code, lexer), formatter, outfile)
File "/usr/local/lib64/python3.6/site-packages/pygments/init.py", line 69, in format
raise TypeError('format() argument must be a formatter instance, '
TypeError: format() argument must be a formatter instance, not a class
The text was updated successfully, but these errors were encountered:
您好,我在mkdocs build的时候遇到问题
[root@VM-0-5-centos ctf-wiki]# python3 scripts/docs.py build-all
Updating en
Updating zh
Building docs for: zh
Error reading page 'android/basic_operating_mechanism/native_layer/so.md': format() argument must be a formatter instance, not a class
Traceback (most recent call last):
File "/usr/local/lib64/python3.6/site-packages/pygments/init.py", line 61, in format
formatter.format(tokens, realoutfile)
File "/usr/local/lib64/python3.6/site-packages/pygments/formatter.py", line 94, in format
return self.format_unencoded(tokensource, outfile)
File "/usr/local/lib64/python3.6/site-packages/pygments/formatters/html.py", line 981, in format_unencoded
source = self.wrap(source)
TypeError: wrap() missing 1 required positional argument: 'outfile'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "scripts/docs.py", line 458, in
File "scripts/docs.py", line 279, in build_all
File "/usr/local/lib/python3.6/site-packages/mkdocs/commands/build.py", line 292, in build
_populate_page(file.page, config, files, dirty)
File "/usr/local/lib/python3.6/site-packages/mkdocs/commands/build.py", line 174, in _populate_page
page.render(config, files)
File "/usr/local/lib/python3.6/site-packages/mkdocs/structure/pages.py", line 175, in render
self.content = md.convert(self.markdown)
File "/usr/local/lib/python3.6/site-packages/markdown/core.py", line 261, in convert
self.lines = prep.run(self.lines)
File "/usr/local/lib/python3.6/site-packages/pymdownx/superfences.py", line 863, in run
return self.search_nested(lines)
File "/usr/local/lib/python3.6/site-packages/pymdownx/superfences.py", line 697, in search_nested
self.eval_quoted(ws, content, quote_level, start, end)
File "/usr/local/lib/python3.6/site-packages/pymdownx/superfences.py", line 450, in eval_quoted
self.process_nested_block(ws, content, start, end)
File "/usr/local/lib/python3.6/site-packages/pymdownx/superfences.py", line 471, in process_nested_block
attrs=self.attrs if self.attr_list else {}
File "/usr/local/lib/python3.6/site-packages/pymdownx/superfences.py", line 794, in highlight
code_block_count=self.highlight_ext.pygments_code_block
File "/usr/local/lib/python3.6/site-packages/pymdownx/highlight.py", line 381, in highlight
code = highlight(src, lexer, formatter)
File "/usr/local/lib64/python3.6/site-packages/pygments/init.py", line 82, in highlight
return format(lex(code, lexer), formatter, outfile)
File "/usr/local/lib64/python3.6/site-packages/pygments/init.py", line 69, in format
raise TypeError('format() argument must be a formatter instance, '
TypeError: format() argument must be a formatter instance, not a class
The text was updated successfully, but these errors were encountered: