You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// See https://github.com/danielfrg/mkdocs-jupyter/issues/99#issuecomment-2455307893
// See https://github.com/danielfrg/mkdocs-jupyter/issues/220
// Using the document$ observable from mkdocs-material to get notified of page "reload" also if using `navigation.instant` (SSA)
document$.subscribe(function() {
// First check if the page contains a notebook-related class
if (document.querySelector('.jp-Notebook')) {
// "div.md-sidebar.md-sidebar--primary" is the navigation
// "div.md-sidebar.md-sidebar--secondary is the table of contents
//document.querySelector("div.md-sidebar.md-sidebar--primary").remove();
document.querySelector("div.md-sidebar.md-sidebar--secondary").remove();
}
});
In markdown files, the navigation and/or table of contents sidebars can be hidden for a document with the front matter
hide
property xrefIs there a way to do this in a notebook using
mkdocs-jupyter
?The text was updated successfully, but these errors were encountered: