-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from GokturkTalha/main
Toc eklendi ve bazı düzeltme/eklemeler yapıldı
- Loading branch information
Showing
9 changed files
with
164 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
window.$docsify.plugins = [].concat( | ||
function(hook) { | ||
hook.afterEach(function(html, next) { | ||
var footer = '<footer style="text-align: center; margin-top: 50px; padding: 10px;">' + | ||
'<p><a href="https://raw.githubusercontent.com/GuvendeKal/guvendekal.org/refs/heads/main/LICENSE">' + | ||
'Bu sitedeki tüm içerikler CC0 lisansı altında kamu yararı gözetilerek yazılmıştır.' + | ||
'</a></p>' + | ||
'</footer>'; | ||
html = html + footer; | ||
next(html); | ||
}); | ||
}, | ||
window.$docsify.plugins | ||
); | ||
|
||
function(hook) { | ||
hook.afterEach(function(html, next) { | ||
var footer = '<footer style="text-align: center; margin-top: 50px; padding: 10px;">' + | ||
'<p>guvendekal.org içinde bulunan tüm içerikler ' + | ||
'<a href="https://raw.githubusercontent.com/GuvendeKal/guvendekal.org/refs/heads/main/LICENSE" target="_blank">' + | ||
'CC0 lisansı</a> altında kamu yararı gözetilerek yazılmıştır.' + | ||
'</p></footer>'; | ||
html = html + footer; | ||
next(html); | ||
}); | ||
}, | ||
window.$docsify.plugins | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,11 @@ | |
<link rel="icon" href="docs/images/icon.png" type="image/png"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple-dark.css" id="theme-style"> | ||
<script src="//cdn.jsdelivr.net/npm/docsify-edit-on-github"></script> | ||
<link rel="stylesheet" href="toc.css"> | ||
<script src="theme-toggle.js"></script> | ||
<style> | ||
:root { | ||
--content-max-width: 80em; | ||
--content-max-width: 85em; | ||
--sidebar-nav-link-color--hover: #0b87da; | ||
--sidebar-nav-link-text-decoration--hover: none; | ||
--selection-color: rgba(11, 135, 218, 0.3); | ||
|
@@ -31,29 +32,33 @@ | |
<div id="app"></div> | ||
<script> | ||
window.$docsify = { | ||
basePath: './docs/', | ||
loadSidebar: true, | ||
sidebar: '_sidebar.md', | ||
themeColor: '#0B87DA', | ||
logo: 'images/logo.svg', | ||
notFoundPage: '404.md', | ||
pagination: { | ||
previousText: 'Önceki Sayfa', | ||
nextText: 'Sonraki Sayfa', | ||
crossChapter: true, | ||
crossChapterText: true, | ||
basePath: './docs/', | ||
loadSidebar: true, | ||
sidebar: '_sidebar.md', | ||
themeColor: '#0B87DA', | ||
logo: 'images/logo.svg', | ||
notFoundPage: '404.md', | ||
pagination: { | ||
previousText: 'Önceki Sayfa', | ||
nextText: 'Sonraki Sayfa', | ||
crossChapter: true, | ||
crossChapterText: true, | ||
toc: { | ||
scope: '.markdown-section', | ||
headings: 'h1, h2, h3, h4,', | ||
title: 'İçerik Tablosu', | ||
}, | ||
}, | ||
plugins: [ | ||
EditOnGithubPlugin.create( | ||
"https://github.com/GuvendeKal/guvendekal.org/tree/main/docs/", | ||
"", | ||
"✏️ Github'da Düzenle") | ||
"📝 Dökümanı Düzenle") | ||
] | ||
}; | ||
</script> | ||
<!-- docsify --> | ||
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script> | ||
<!-- plugins --> | ||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script> <!-- plugins --> | ||
<script src="https://unpkg.com/[email protected]/dist/toc.js"></script> | ||
<script src="footer-plugin.js"></script> | ||
<script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script> | ||
</body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
.content { | ||
display: flex; | ||
flex-direction: row-reverse; | ||
justify-content: center; | ||
} | ||
.markdown-section { | ||
/* flex: 1 1 0%; */ | ||
margin: 0 48px; | ||
} | ||
.nav { | ||
width: var(--toc-width, 700px); | ||
/* align-self: flex-start; | ||
flex: 0 0 auto; */ | ||
} | ||
aside.nav.nothing { | ||
width: 0; | ||
} | ||
|
||
.page_toc { | ||
position: fixed; | ||
border-left-style: solid; | ||
border-left-width: 1px; | ||
border-left-color: rgba(0, 0, 0, 0.07); | ||
border-image-slice: 1; | ||
padding-left: 5px; | ||
} | ||
|
||
.page_toc a > * { | ||
pointer-events: none; | ||
} | ||
|
||
.page_toc code { | ||
background-color: #f8f8f8; | ||
border-radius: 2px; | ||
color: #e96900; | ||
font-family: 'Roboto Mono', Monaco, courier, monospace; | ||
font-size: 0.8rem; | ||
margin: 0 2px; | ||
padding: 3px 5px; | ||
} | ||
|
||
.page_toc p.title { | ||
margin: 0px 0 0px 9px; | ||
padding-bottom: 5px; | ||
font-weight: 600; | ||
font-size: 1.2em; | ||
} | ||
.page_toc .anchor:hover:after { | ||
content: ""; | ||
} | ||
|
||
.page_toc ul { | ||
list-style-type: none; | ||
margin-top: 0px; | ||
padding-left: 10px; | ||
color: var(--text-color-base, black); | ||
text-decoration: none; | ||
font-weight: 300; | ||
line-height: 1.6em; | ||
} | ||
|
||
.page_toc ul a:hover span { | ||
color: var(--text-color-tertiary, white); | ||
border-bottom: none !important; | ||
text-decoration:none !important; | ||
} | ||
|
||
.page_toc ul a { | ||
color: var(--text-color-base, #0b87da); | ||
text-decoration: none; | ||
font-weight: 300; | ||
line-height: 1.6em; | ||
} | ||
|
||
@media screen and (max-width: 1300px) { | ||
.page_toc { | ||
position: relative; | ||
left: 0; | ||
top: -20px; | ||
padding: 10px 0; | ||
border: none; | ||
border-bottom: 1px solid #ddd; | ||
font-size: 1.0em; | ||
} | ||
.page_toc a:before { | ||
content: "- "; | ||
} | ||
.nav { | ||
margin: 0 auto; | ||
width: 800px; | ||
} | ||
.page_toc p.title { | ||
font-weight: 300; | ||
font-size: 1.8em; | ||
} | ||
.content { | ||
display: block; | ||
} | ||
.markdown-section { | ||
margin: 0 auto; | ||
} | ||
} | ||
|
||
.page_toc .active { | ||
border-left: 5px solid; | ||
color: var(--theme-color, #42b983); | ||
padding-left: 10px; | ||
} | ||
|
||
.toc img { | ||
display: none; | ||
} |