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

adding dark mode to docs #18

Merged
merged 2 commits into from
Dec 14, 2022
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
2 changes: 1 addition & 1 deletion cloud_select/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def get_parser():
)
cache.add_argument(
"--clear",
help="dump output as json to terminal",
help="clear the cache",
default=False,
action="store_true",
)
Expand Down
38 changes: 35 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,50 @@
<meta name="description" content="Cloud Select for cloud resources">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
<link
rel="stylesheet"
href="//cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/style.min.css"
title="docsify-darklight-theme"
type="text/css"/>
<style>
.markdown-section a {
color: #f96777 !important;
}
.sidebar ul li.active>a {
color:#f96777 !important;
}
.markdown-section code {
color: #1f2975 !important;
}
</style>
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
darklightTheme: {
siteFont : "PT Sans",
defaultTheme : 'dark',
codeFontFamily : 'Roboto Mono, Monaco, courier, monospace',
bodyFontSize : '17px',
dark: {
accent: '#42b983',
toogleBackground : '#ffffff',
background: '#091a28',
textColor: '#b4b4b4',
codeTextColor : '#ffffff',
codeBackgroundColor : '#0e2233',
borderColor : '#0d2538',
blockQuoteColor : '#858585',
highlightColor : '#d22778',
sidebarSublink : '#b4b4b4',
codeTypeColor : '#ffffff',
coverBackground : 'linear-gradient(to left bottom, hsl(223.9, 70.2%, 35.5%) 0%,hsl(218.5, 85.7%, 46.7%) 100%)',
toogleImage : 'url(https://cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/icons/sun.svg)'
},
light: {
codeTextColor: "#1f2975",
coverBackground : 'linear-gradient(to left bottom, hsl(223.9, 70.2%, 35.5%) 0%,hsl(218.5, 85.7%, 46.7%) 100%)',
toogleImage : 'url(https://cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/icons/moon.svg)'
}
},
name: 'cloud-select',
loadSidebar: "sidebar.md",
repo: 'github.com/converged-computing/cloud-select',
Expand Down Expand Up @@ -70,5 +98,9 @@
<script src="//unpkg.com/prismjs/components/prism-python.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-docker.min.js"></script>
<script src="//unpkg.com/prismjs/components/prism-yaml.min.js"></script>
<script
src="//cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/index.min.js"
type="text/javascript">
</script>
</body>
</html>