-
Notifications
You must be signed in to change notification settings - Fork 9
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
IndexError on version 1.4.0 #48
Comments
Thanks for raising this issue @smartYSC. I'll research this asap |
@smartYSC, could you please also share your UPD I couldn't recreate the error using my default |
Sample mkdocs: ---
site_name: Documentation
site_url: https://site/documentation
theme: material
plugins:
- mermaid2
- techdocs-core
- plantuml:
puml_url: https://plantuml.site
puml_keyword: plantuml
markdown_extensions:
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:mermaid2.fence_mermaid
- pymdownx.extra:
pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_code_format
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
extra_javascript:
- https://unpkg.com/[email protected]/dist/mermaid.min.js Pyproject [tool.poetry]
name = "docs"
package-mode = false
[tool.poetry.dependencies]
python = "^3.12"
mkdocs-material = ">=9.5,<10.0"
mkdocs-mermaid2-plugin = ">=1.1,<2.0"
mkdocs-techdocs-core = ">=1.3,<2.0"
mkdocs-puml = ">=1.3,<2.0" This problem is caused by the dark mode + custom plantuml. The page returned from |
The workaround is to disable the automatic dark mode. - plantuml:
puml_url: https://plantuml.site
puml_keyword: plantuml
auto_dark: false This resolves the error. I would personally see 2 outcomes here:
|
I would be in favor of the second solution, gracefully handling old plantuml servers. |
Thanks for your help @MaciejKucia! I guess for now it would be the best to fallback to light diagrams in case of error. I'll investigate this problem in more details. We anyway build 2 versions of diagrams, so perhaps it'll be better to integrate theme directly inside |
Hi! First of all, thanks for the project :) We're getting this error as well on the latest version.
I'm curious of the root cause for this issue -- is it related to the PlantUML server version? We're getting this error even though we're running the latest version (1.2024.7) of https://github.com/plantuml/plantuml-server 's docker image. |
Thanks @outadoc :) Perhaps this may be related. From time to time I get |
Hotfix should be available in |
Guys, you may try now
this significantly improves theming in mkdocs_puml. Read more about release. |
Sorry for not responding to your questions! Version 1.4.1 gives at least a proper error message, that it could not build dark mode diagrams, but then a dark mode documentation without diagrams is created. Light mode has working diagrams. Version 2.0.0 creates dark mode diagrams correctly. We just see a certificate error, because our PUML server uses a self-signed certificate and |
@smartYSC thanks for this note. At minimum I should add this to documentation. |
Describe the bug
When building
mkdocs
documentation withmkdocs_puml==1.4.0
we are seeing the following error:With version 1.3.1 it worked fine 2 hours ago.
To Reproduce
Steps to reproduce the behavior:
pip install 'mkdocs-material>=9,<10' 'mkdocs_puml>=1,<2' && mkdocs build
Expected behavior
Build passes as it does on version 1.3.1.
Desktop:
babel-2.16.0 ghp-import-2.1.0 markdown-3.7 mergedeep-1.3.4 mkdocs-1.6.1 mkdocs-get-deps-0.2.0 mkdocs-material-9.5.39 mkdocs-material-extensions-1.3.1 mkdocs_puml-1.4.0 paginate-0.5.7 pathspec-0.12.1 pymdown-extensions-10.11.2 pyyaml-env-tag-0.1 regex-2024.9.11 watchdog-5.0.3
The text was updated successfully, but these errors were encountered: