-
Notifications
You must be signed in to change notification settings - Fork 27
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
Error with custom_fences fence_mermaid_custom function #113
Comments
Thank you for your contribution! This is very appreciated. |
Thanks. It's perfectly expected that it raises an AttributeError on line 159, on first execution. What's odd is that the It might be a side effect of something else? Any specificity on your installation? It would be useful to have minimal reproducible example (complete with mkdocs-mermaid2-plugin/mermaid2/plugin.py Lines 149 to 171 in 0511d01
|
So while trying to make a minimal reproducible example it seems to have fixed itself. The only thing that I changed is purging the docker cache. So that was my solution in case someone runs into the same problem in the future. |
Thanks for the info! I labelled this issue "useful tip" to keep track of it. |
Encountering the same error while running using the docker workflow with podman. Dockerfile/Containerfile:
fairly minimal mkdocs.yml
mermaid diagram example# Model
```mermaid
erDiagram
THING {
string id PK
string thingyId
string[] stuffs
}
THINGY {
string id PK
string[] stuffys
}
THINGY ||--o{ THING : owns
``` |
Thanks. Still having the same error at mermaid2/plugin.py, line 159? |
Yep now its back and clearing the cache didn't work. So don't know exactly what is happening. |
I think I narrowed it down. Here is my minimum build yaml and the markdown file mermaid2 block. It seems to interact with another superfences plugin pymdownx.arithmatex. mkdocs.yaml: site_name: Memory
site_description: Notes I've collected over the years
site_author: GeneralZero
docs_dir: /opt/MemoryViewer/memory
theme:
name: material
dev_addr: '127.0.0.1:8000'
repo_url: https://github.com/generalzero/
repo_name: Github
use_directory_urls: true
plugins:
- mermaid2:
arguments:
theme: 'dark'
- pymdownx.superfences:
preserve_tabs: true
custom_fences:
- name: math
class: arithmatex
format: !!python/object/apply:pymdownx.arithmatex.arithmatex_fenced_format {which: "generic"}
- name: latex
class: arithmatex
format: !!python/object/apply:pymdownx.arithmatex.arithmatex_fenced_format {which: "generic"}
- name: mermaid
class: mermaid
format: !!python/name:mermaid2.fence_mermaid_custom #fence_mermaid_custom sequenceDiagram
Client App ->> Google Play Services : SafetyNet Attestation API receives a call from your app. This call includes a nonce.
Google Play Services ->> Google : SafetyNet Attestation service evaluates the runtime environment and requests a signed attestation of the assessment results from Google's servers.
Google ->> Google Play Services : Google's servers send the signed attestation to the SafetyNet Attestation service on the device.
Google Play Services ->> Client App : SafetyNet Attestation service returns this signed attestation to your app.
Client App ->> Client Server : Your app forwards the signed attestation to your server.
Client Server ->> Client App : This server validates the response and uses it for anti-abuse decisions. Your server communicates its findings to your app.
|
I am trying to build my documentation with mkdocs. And keep running in to this error.
Looking into the plugin.py script the _activate_custom_loader function doesn't exist.
The text was updated successfully, but these errors were encountered: