Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub action for documentation not passing #25

Open
hayleyweir opened this issue Sep 13, 2022 · 0 comments
Open

GitHub action for documentation not passing #25

hayleyweir opened this issue Sep 13, 2022 · 0 comments

Comments

@hayleyweir
Copy link
Contributor

Markdown error:

Run mkdocs build
INFO - Cleaning site directory
INFO - Building documentation to directory: /home/runner/work/aimsprop/aimsprop/site
ERROR - Error reading page 'CONTRIBUTING.md': wrap() missing 1 required positional argument: 'outfile'
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.6.15/x64/bin/mkdocs", line 8, in
sys.exit(cli())
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/click/core.py", line 1128, in call
return self.main(*args, **kwargs)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/mkdocs/main.py", line 152, in build_command
build.build(config.load_config(**kwargs), dirty=not clean)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/mkdocs/commands/build.py", line 271, in build
_populate_page(file.page, config, files, dirty)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/mkdocs/commands/build.py", line 171, in _populate_page
page.render(config, files)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/mkdocs/structure/pages.py", line 175, in render
self.content = md.convert(self.markdown)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/markdown/core.py", line 264, in convert
root = self.parser.parseDocument(self.lines).getroot()
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/markdown/blockparser.py", line 90, in parseDocument
self.parseChunk(self.root, '\n'.join(lines))
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/markdown/blockparser.py", line 105, in parseChunk
self.parseBlocks(parent, text.split('\n\n'))
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/markdown/blockparser.py", line 123, in parseBlocks
if processor.run(parent, blocks) is not False:
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/mkdocstrings/extension.py", line 120, in run
html, headings = self._process_block(identifier, block, heading_level)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/mkdocstrings/extension.py", line 180, in _process_block
rendered = handler.renderer.render(data, rendering)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/mkdocstrings/handlers/python.py", line 77, in render
**{"config": final_config, data["category"]: data, "heading_level": heading_level, "root": True},
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/jinja2/environment.py", line 1090, in render
self.environment.handle_exception()
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/mkdocstrings/templates/python/material/function.html", line 24, in top-level template code
{% filter highlight(language="python", inline=True) %}
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/mkdocstrings/handlers/rendering.py", line 90, in highlight
result = super().highlight(src, language, inline=inline, **kwargs)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/pymdownx/highlight.py", line 314, in highlight
code = highlight(src, lexer, formatter)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/pygments/init.py", line 82, in highlight
return format(lex(code, lexer), formatter, outfile)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/pygments/init.py", line 61, in format
formatter.format(tokens, realoutfile)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/pygments/formatter.py", line 94, in format
return self.format_unencoded(tokensource, outfile)
File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/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'
Error: Process completed with exit code 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant