Skip to content

Commit

Permalink
Hide Turing menu also in CSS
Browse files Browse the repository at this point in the history
This ensures the menu is not shown before it can be removed from the DOM
  • Loading branch information
sethaxen committed Jul 15, 2024
1 parent b230008 commit c4ba967
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions docs/assets/hide_turing_menu.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.ext-navigation,
.ext-navigation+script,
.ext-navigation~script,
.ext-navigation~style {
display: none !important;
}
10 changes: 5 additions & 5 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ MultiDocumenter.make(
index_versions=["stable"], engine=MultiDocumenter.FlexSearch
),
brand_image=MultiDocumenter.BrandImage(".", joinpath("assets", "logo.png")),
custom_scripts=Any[joinpath("assets", "hide_turing_menu.js")]
custom_stylesheets=[joinpath("assets", "hide_turing_menu.css")],
custom_scripts=Any[joinpath("assets", "hide_turing_menu.js")],
)

# download logo
Expand All @@ -86,10 +87,9 @@ Downloads.download(
joinpath(assets_dir, "logo.png");
verbose=true,
)
cp(
joinpath(@__DIR__, "assets", "hide_turing_menu.js"),
joinpath(assets_dir, "hide_turing_menu.js"),
)
for fn in ["hide_turing_menu.js", "hide_turing_menu.css"]
cp(joinpath(@__DIR__, "assets", fn), joinpath(assets_dir, fn))
end

# deploy to GitHub Pages
git_root = normpath(joinpath(@__DIR__, ".."))
Expand Down

0 comments on commit c4ba967

Please sign in to comment.