Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ plugins:
'agglayer/core-concepts/migration_guide.md': 'agglayer/core-concepts/index.md'
'agglayer/core-concepts/ECDSA-vs-FEP.md': 'agglayer/core-concepts/index.md'
'agglayer/core-concepts/v0.2_vs_v0.3.md': 'agglayer/core-concepts/index.md'

validation:
absolute_links: warn
anchors: warn
Expand Down
59 changes: 57 additions & 2 deletions overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,60 @@
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MQWH3L28"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->

{% endblock %}

<!-- AskCookbook Integration -->
<script>
(function () {
function initAskCookbook() {
// It's a public API key, so it's safe to expose it here
const PUBLIC_API_KEY =
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2OGIwZGI4MjM0ZWM1OGQ5MjUyNTU0YjgiLCJpYXQiOjE3NTY0MjA5OTQsImV4cCI6MjA3MTk5Njk5NH0.NyQiKbz8J_-k4sngxoWpB2L_FAKrFgegXf_GTtUzLjU";

let cookbookContainer = document.getElementById("__cookbook");
if (!cookbookContainer) {
cookbookContainer = document.createElement("div");
cookbookContainer.id = "__cookbook";
cookbookContainer.dataset.apiKey = PUBLIC_API_KEY;
document.body.appendChild(cookbookContainer);
}

let cookbookScript = document.getElementById("__cookbook-script");
if (!cookbookScript) {
cookbookScript = document.createElement("script");
cookbookScript.id = "__cookbook-script";
cookbookScript.src =
"https://cdn.jsdelivr.net/npm/@cookbookdev/docsbot/dist/standalone/index.cjs.js";
cookbookScript.async = true;
document.head.appendChild(cookbookScript);
}

const keyPressPropagationBlocker = function (e) {
e.stopPropagation();
};
document.addEventListener(
"cookbook:modal:state:change",
function (e) {
const isOpen = e.detail.isOpen;
if (isOpen) {
document.body.addEventListener("keydown", keyPressPropagationBlocker, {
capture: true,
});
} else {
document.body.removeEventListener("keydown", keyPressPropagationBlocker, {
capture: true,
});
}
}
);
}

if (document.readyState === "complete") {
initAskCookbook();
} else {
window.addEventListener("load", initAskCookbook);
}
})();
</script>
<!-- End AskCookbook Integration -->

{% endblock %}
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ mkdocs-open-in-new-tab==1.0.3
mkdocs-multirepo-plugin==0.7.0
mkdocs-redirects==1.2.1
mkdocs-mermaid2-plugin==1.1.1
pyyaml-env-tag==1.1