I want to try your PHP export module but got an error when tryin to launch in local the mkdocs serve:
INFO - Building documentation...
INFO - Cleaning site directory
Traceback (most recent call last):
File "/home/xx/.local/bin/mkdocs", line 10, in <module>
sys.exit(cli())
File "/home/xx/.local/lib/python3.7/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/xx/.local/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/xx/.local/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/xx/.local/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/xx/.local/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/xx/.local/lib/python3.7/site-packages/mkdocs/__main__.py", line 136, in serve_command
**kwargs
File "/home/xx/.local/lib/python3.7/site-packages/mkdocs/commands/serve.py", line 141, in serve
config = builder()
File "/home/xx/.local/lib/python3.7/site-packages/mkdocs/commands/serve.py", line 136, in builder
build(config, live_server=live_server, dirty=dirty)
File "/home/xx/.local/lib/python3.7/site-packages/mkdocs/commands/build.py", line 295, in build
config['plugins'].run_event('post_build', config=config)
File "/home/xx/.local/lib/python3.7/site-packages/mkdocs/plugins.py", line 96, in run_event
result = method(**kwargs)
File "/home/xx/.local/lib/python3.7/site-packages/mkdocs_print_site_plugin/plugin.py", line 192, in on_post_build
self.print_page.content = self.renderer.write_combined()
File "/home/xx/.local/lib/python3.7/site-packages/mkdocs_print_site_plugin/renderer.py", line 76, in write_combined
html += get_html_from_items(self.items, dir_urls = self.mkdocs_config.get('use_directory_urls'))
File "/home/xx/.local/lib/python3.7/site-packages/mkdocs_print_site_plugin/renderer.py", line 69, in get_html_from_items
item_html += get_html_from_items(item.children, dir_urls)
File "/home/xx/.local/lib/python3.7/site-packages/mkdocs_print_site_plugin/renderer.py", line 69, in get_html_from_items
item_html += get_html_from_items(item.children, dir_urls)
File "/home/xx/.local/lib/python3.7/site-packages/mkdocs_print_site_plugin/renderer.py", line 66, in get_html_from_items
item_html += fix_internal_links(item.html, item.url, directory_urls=dir_urls)
File "/home/xx/.local/lib/python3.7/site-packages/mkdocs_print_site_plugin/urls.py", line 149, in fix_internal_links
assert len(url_paths) <= 2
AssertionError`
site_name: "doc"
site_description: 'x'
site_author: 'xx'
site_url: 'https://xx'
# Configuration
theme:
name: material
language: 'fr'
features:
- navigation.tabs
palette:
primary: 'white'
accent: 'Deep orange'
font:
#text: 'Rubik'
#text: 'Yatra One'
text: 'Karla'
code: 'Karla Regular'
icon:
logo: material/library
repo: fontawesome/brands/git-alt
# Customization
plugins:
- search
- print-site
extra_javascript:
- https://unpkg.com/[email protected]/dist/mermaid.min.js
markdown_extensions:
- markdown.extensions.admonition
- markdown.extensions.attr_list
- markdown.extensions.codehilite:
guess_lang: false
- markdown.extensions.def_list
- markdown.extensions.footnotes
- markdown.extensions.meta
- markdown.extensions.toc:
permalink: true
- pymdownx.arithmatex
- pymdownx.betterem:
smart_enable: all
- pymdownx.caret
- pymdownx.critic
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:materialx.emoji.twemoji
emoji_generator: !!python/name:materialx.emoji.to_svg
# - pymdownx.highlight:
# linenums_style: pymdownx-inline
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.magiclink:
repo_url_shorthand: true
user: squidfunk
repo: mkdocs-material
- pymdownx.mark
- pymdownx.smartsymbols
- pymdownx.snippets:
check_paths: true
- pymdownx.superfences
- pymdownx.tabbed
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tilde
Thanks for your help.