Skip to content
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

Beautify docs #38

Merged
merged 1 commit into from
Feb 20, 2024
Merged
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
4 changes: 4 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ makedocs(;
doctest=true,
linkcheck=true,
warnonly=[:missing_docs],
format = Documenter.HTML(
size_threshold = nothing,
prettyurls = get(ENV, "CI", nothing) == "true",
assets = ["assets/docs.css"]),
pages=pages,
)

Expand Down
132 changes: 132 additions & 0 deletions docs/src/assets/docs.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
/* mercylessy yannked from ColorSchemes.jl, all credits to them */
/* https://github.com/JuliaGraphics/ColorSchemes.jl/blob/master/docs/src/assets/colorschemes-docs.css */
/* change Bulma Dark styles */

/* disclaimer - I hate CSS */

:root {
--signage: hsl(193, 46%, 60%);
--verydark: hsl(237, 20%, 10%);
--quitedark: hsl(237, 20%, 13%);
--lessdark: hsl(237, 20%, 16%);
}

html.theme--documenter-dark body {
background-color: var(--verydark);
color: #eff;
font-size: 1.1em;
font-weight: 400;
line-height: 1.8rem;
}

html.theme--documenter-dark a {
color: var(--signage);
}

html.theme--documenter-dark p > a:after {
padding-left:0.2rem;
font-family: "JuliaMono";
content: "⮻";
color: var(--signage);
background-color: inherit;
font-size: 120%;
}

html.theme--documenter-light p > a:after {
padding-left:0.2rem;
font-family: "JuliaMono";
content: "⮻";
background-color: inherit;
font-size: 120%;
}

html.theme--documenter-dark .has-text-left,
html.theme--documenter-dark body,
html.theme--documenter-dark #documenter .docs-sidebar,
html.theme--documenter-dark .documenter-example-output,
html.theme--documenter-dark #documenter .docs-sidebar ul.docs-menu .tocitem,
html.theme--documenter-dark #documenter .docs-sidebar ul.docs-menu .tocitem:hover,
html.theme--documenter-dark #documenter .docs-sidebar ul.docs-menu li.is-active .tocitem,
html.theme--documenter-dark #documenter .docs-sidebar ul.docs-menu li.is-active .tocitem:hover,
html.theme--documenter-dark #documenter .docs-main header.docs-navbar {
background-color: var(--verydark);
border: 0.5px solid hsla(237, 20%, 10%, 0.3) !important;
}

html.theme--documenter-dark .modal-card-body ,
html.theme--documenter-dark .modal-card-head ,
html.theme--documenter-dark .modal-card-foot ,
html.theme--documenter-dark #documenter .docs-sidebar ul.docs-menu ,
html.theme--documenter-dark #documenter .docs-sidebar ul.docs-menu li.is-active {
background-color: var(--verydark);
}

html.theme--documenter-dark .docstring ,
html.theme--documenter-dark .docstring>header {
background-color: var(--lessdark);
}

html.theme--documenter-dark .content pre,
html.theme--documenter-dark pre {
background-color: var(--lessdark);
border: 0.5px solid hsla(237, 20%, 10%, 0.3) !important;
}

html.theme--documenter-dark a {
color: var(--signage);
}

html.theme--documenter-dark .modal-card-head {
border: none;
}


.schemename {
font-family: "JuliaMono";
}

.swatch {

}

.category {
font-family: "JuliaMono";
font-size: 0.8em;
}

html.theme--documenter-dark p > code {
color: #eff !important;
}


html.theme--documenter-dark li > code {
color: #eff !important;
}


html.theme--documenter-dark a > code {
color: #eff !important;
}

html.theme--documenter-dark p > a {
color: #eff !important;
}

html.theme--documenter-dark .select select:focus,
html.theme--documenter-dark .textarea:focus,
html.theme--documenter-dark .input:focus,
html.theme--documenter-dark #documenter .docs-sidebar form.docs-search>input:focus,
html.theme--documenter-dark .select select.is-focused,
html.theme--documenter-dark .is-focused.textarea,
html.theme--documenter-dark .is-focused.input,
html.theme--documenter-dark #documenter .docs-sidebar form.docs-search>input.is-focused,
html.theme--documenter-dark .select select:active,
html.theme--documenter-dark .textarea:active,
html.theme--documenter-dark .input:active,
html.theme--documenter-dark #documenter .docs-sidebar form.docs-search>input:active,
html.theme--documenter-dark .select select.is-active,
html.theme--documenter-dark .is-active.textarea,
html.theme--documenter-dark .is-active.input,
html.theme--documenter-dark #documenter .docs-sidebar form.docs-search>input.is-active {
border-color: var(--signage);
}
Loading