Skip to content

Commit

Permalink
Update docsify settings
Browse files Browse the repository at this point in the history
  • Loading branch information
SaifAqqad committed Mar 7, 2024
1 parent ede3367 commit 44f6168
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 73 deletions.
130 changes: 57 additions & 73 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,82 +2,66 @@
<html lang="en">

<head>
<meta charset="UTF-8">
<title>VMR.ahk Docs</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="AutoHotkey wrapper class for Voicemeeter's Remote API ">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">
<!-- Docsify -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-darklight-theme@3/dist/docsify-themeable/style.min.css" type="text/css">
<!-- docsify-themeable styles-->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple.css" title="light">
<link rel="stylesheet alternative" href="//cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple-dark.css" title="dark">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-sidebar-collapse/dist/sidebar.min.css" />
<style>
:root {
--search-clear-icon-color1: #4a5e69;
}

h4 {
margin-top: 1em !important;
}

.sidebar .search .input-wrap {
align-items: center;
}

.docs-title {
font-family: "Open Sans", sans-serif;
font-size: 1.4em;
font-weight: 300;
}

.sidebar-nav ul:not(.app-sub-sidebar)>li:not(.file)::before {
top: 9px;
left: -20px;
height: 8px;
width: 8px;
border-right: 2px solid #495e68;
border-bottom: 2px solid #495e68;
}

.sidebar-nav ul:not(.app-sub-sidebar)>li:not(.file) {
margin: var(--sidebar-nav-pagelink-padding, var(--sidebar-nav-link-padding));
}
</style>
<meta charset="UTF-8">
<title>VMR.ahk Docs</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="AutoHotkey wrapper class for Voicemeeter's Remote API ">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">
<!-- Docsify -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-darklight-theme@3/dist/docsify-themeable/style.min.css" type="text/css">
<!-- docsify-themeable styles-->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple.css" title="light">
<link rel="stylesheet alternative" href="//cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple-dark.css" title="dark">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-sidebar-collapse/dist/sidebar.min.css" />
<link rel="stylesheet" href="https://unpkg.com/docsify-plugin-toc@1.3.2/dist/light.css">
<link rel="stylesheet" href="./styles.css">
</head>

<body>
<div id="app"></div>
<script>
window.$docsify = {
search: {
hideOtherSidebarContent: true,
depth: 5
},
name: '<span class="docs-title">VMR.ahk</span>',
repo: 'SaifAqqad/VMR.ahk',
themeColor: '#70C399',
loadSidebar: true,
auto2top: true,
subMaxLevel: 3,
sidebarDisplayLevel: 2,
}
</script>
<!-- Docsify -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-autohotkey.min.js"></script>
<!-- Plugins -->
<script src="//cdn.jsdelivr.net/npm/docsify-sidebar-collapse/dist/docsify-sidebar-collapse.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-darklight-theme@3/dist/docsify-themeable/main.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-darklight-theme@3/dist/docsify-themeable/index.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-tabs"></script>
<div id="app"></div>
<script>
window.$docsify = {
name: '<span class="docs-title">VMR.ahk</span>',
repo: 'SaifAqqad/VMR.ahk',
themeColor: '#70C399',
loadSidebar: true,
auto2top: true,
subMaxLevel: 3,
sidebarDisplayLevel: 0,
search: {
hideOtherSidebarContent: true,
depth: 5
},
toc: {
tocMaxLevel: 5,
target: 'h2, h3, h4, h5, h6',
ignoreHeaders: ['<!-- {docsify-ignore} -->', '<!-- {docsify-ignore-all} -->']
},
darklightTheme: {
dark: {
"color-scheme": "dark"
},
light: {
"color-scheme": "light"
}
}
}
</script>
<!-- Docsify -->
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-autohotkey.min.js"></script>
<!-- Plugins -->
<script src="https://unpkg.com/docsify-plugin-toc@1.3.2/dist/docsify-plugin-toc.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-sidebar-collapse/dist/docsify-sidebar-collapse.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-darklight-theme@3/dist/docsify-themeable/main.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-darklight-theme@3/dist/docsify-themeable/index.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-tabs"></script>
</body>

</html>
75 changes: 75 additions & 0 deletions docs/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
:root {
--search-clear-icon-color1: #4a5e69;
}

* {
color-scheme: var(--color-scheme);
}

body.close .sidebar+.content {
transform: none;
}

h4 {
margin-top: 1em !important;
}

/* TOC */
aside.toc-nav {
color: var(--toogleBackground);
top: 50vh;
transform: translateY(-50%);
right: 0%;
width: 250px;
max-height: 80vh;
}

.page_toc div[class^="lv"] a {
font-weight: normal;
}

.page_toc div.active {
border-left-color: #43c385;
transition: border-left-color 0.23s;
}

.page_toc div {
border-left: 2px solid #e8e8e845
}

@media only screen and (max-width: 1299px) {
aside.toc-nav {
background: var(--sidebar-background);
border: solid 1px;
border-color: var(--sidebar-border-color);
border-right: none;
padding-left: 10px;
width: 225px;
max-width: 35px;
max-height: 60vh;
}
}

/* Sidebar */
.sidebar .search .input-wrap {
align-items: center;
}

.docs-title {
font-family: "Open Sans", sans-serif;
font-size: 1.4em;
font-weight: 300;
}

.sidebar-nav ul:not(.app-sub-sidebar)>li:not(.file)::before {
top: 9px;
left: -20px;
height: 8px;
width: 8px;
border-right: 2px solid #495e68;
border-bottom: 2px solid #495e68;
}

.sidebar-nav ul:not(.app-sub-sidebar)>li:not(.file) {
margin: var(--sidebar-nav-pagelink-padding, var(--sidebar-nav-link-padding));
}

0 comments on commit 44f6168

Please sign in to comment.