Skip to content

Commit

Permalink
Merge pull request #38 from awesome-spectral-indices/fm/docs
Browse files Browse the repository at this point in the history
Beautify docs
  • Loading branch information
MartinuzziFrancesco authored Feb 20, 2024
2 parents d1274e7 + febc45b commit 1c8f1de
Show file tree
Hide file tree
Showing 2 changed files with 136 additions and 0 deletions.
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);
}

0 comments on commit 1c8f1de

Please sign in to comment.