Skip to content
Open
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
48 changes: 48 additions & 0 deletions .liquidrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"engine": "shopify",
"files": {
"settings": "",
"locales": "",
"sections": [],
"snippets": []
},
"format": {
"ignore": [],
"wrap": 80,
"indentSize": 2,
"preserveLine": 2,
"endNewline": true,
"liquid": {
"indentAttribute": true,
"lineBreakSeparator": "before",
"normalizeSpacing": true,
"quoteConvert": "single",
"ignoreTagList": []
},
"markup": {
"quoteConvert": "double",
"selfCloseSpace": true,
"delimiterTerminus": "inline",
"stripAttributeLines": true,
"commentNewline": false,
"forceIndent": true,
"commentIndent": true,
"ignoreJS": true,
"ignoreCSS": false,
"ignoreJSON": false,
"forceAttribute": 3
},
"json": {
"bracePadding": false,
"braceAllman": true,
"arrayFormat": "indent",
"objectIndent": "indent",
"objectSort": false
},
"style": {
"noLeadZero": true,
"quoteConvert": "single",
"atRuleSpace": true
}
}
}
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.2.2
23 changes: 11 additions & 12 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@

## => Site Settings
##############################
text_skin: default # "default" (default), "dark", "forest", "ocean", "chocolate", "orange"
highlight_theme: default # "default" (default), "tomorrow", "tomorrow-night", "tomorrow-night-eighties", "tomorrow-night-blue", "tomorrow-night-bright"
url : # the base hostname & protocol for your site e.g. https://www.someone.com
text_skin: orange #dark "default" (default), "dark", "forest", "ocean", "chocolate", "orange"
highlight_theme: "tomorrow-night" # "default" (default), "tomorrow", "tomorrow-night", "tomorrow-night-eighties", "tomorrow-night-blue", "tomorrow-night-bright"
url : "https://project-sundial.github.io" # the base hostname & protocol for your site e.g. https://www.someone.com
baseurl : # does not include hostname
title : Your Site Title
description: > # this means to ignore newlines until "Language & timezone"
Your Site Description
title : Sundial
description: "Sundial is a self-hosted, open-source cron job monitoring and management system that can be operated across one or multiple nodes." # this means to ignore newlines until "Language & timezone"


## => Language and Timezone
Expand All @@ -34,10 +33,10 @@ timezone: # see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones for
## => Author and Social
##############################
author:
type : # "person" (default), "organization"
name : Your Name
type : "organization" # "person" (default), "organization"
name : "Sundial"
url :
avatar : # path or url of avatar image (square)
avatar : /assets/favicon.ico # path or url of avatar image (square)
bio : I am an amazing person.
email :
facebook : # "user_name" the last part of your profile url, e.g. https://www.facebook.com/user_name
Expand All @@ -55,7 +54,7 @@ author:

## => GitHub Repository (if the site is hosted by GitHub)
##############################
repository: user_name/repo_name
repository: Project-Sundial/Project-Sundial.github.io
repository_tree: master


Expand All @@ -78,13 +77,13 @@ license: CC-BY-NC-4.0 # "CC-BY-4.0", "CC-BY-SA-4.0", "CC-BY-NC-4.0", "CC-BY-ND-4

## TOC
toc:
selectors: # "h1,h2,h3" (default)
selectors: "h1,h2,h3,h4"


## => Markdown Enhancements
##############################
## Mathjax
mathjax: # false (default), true
mathjax: true # false (default), true
mathjax_autoNumber: # false (default), true

## Mermaid
Expand Down
59 changes: 8 additions & 51 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,9 @@
header:
- titles:
# @start locale config
en : &EN Archive
en-GB : *EN
en-US : *EN
en-CA : *EN
en-AU : *EN
zh-Hans : &ZH_HANS 归档
zh : *ZH_HANS
zh-CN : *ZH_HANS
zh-SG : *ZH_HANS
zh-Hant : &ZH_HANT 歸檔
zh-TW : *ZH_HANT
zh-HK : *ZH_HANT
ko : &KO 아카이브
ko-KR : *KO
fr : &FR Archives
fr-BE : *FR
fr-CA : *FR
fr-CH : *FR
fr-FR : *FR
fr-LU : *FR
tr : &TR Arşivdekiler
# @end locale config
url: /archive.html

- titles:
# @start locale config
en : &EN About
en-GB : *EN
en-US : *EN
en-CA : *EN
en-AU : *EN
zh-Hans : &ZH_HANS 关于
zh : *ZH_HANS
zh-CN : *ZH_HANS
zh-SG : *ZH_HANS
zh-Hant : &ZH_HANT 關於
zh-TW : *ZH_HANT
zh-HK : *ZH_HANT
ko : &KO 소개
ko-KR : *KO
fr : &FR À propos
fr-BE : *FR
fr-CA : *FR
fr-CH : *FR
fr-FR : *FR
fr-LU : *FR
tr : &TR Hakkında
# @end locale config
url: /about.html
- title: Case-Study
url: /case-study
- title: Tech Talk
url: https://www.youtube.com/watch?v=O-mJKlJGk6w
- title: Docs
url: https://sundial-docs.notion.site/sundial-docs/Documentation-30c6f3cb1290473687ef55f8e4142e2e
- title: GitHub
url: https://github.com/Project-Sundial
4 changes: 2 additions & 2 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
<li class="navigation__item"><a href="{{ _nav_url }}">{%- if _item.title -%}{{ _item.title }}{%- else -%}{{ __return }}{%- endif -%}</a></li>
{%- endif -%}
{%- endfor -%}
{%- if site.search.provider -%}
<!-- {%- if site.search.provider -%}
<li><button class="button button--secondary button--circle search-button js-search-toggle"><i class="fas fa-search"></i></button></li>
{%- endif -%}
{%- endif -%} -->
</ul>
</nav>
{%- endif -%}
Expand Down
87 changes: 87 additions & 0 deletions _includes/scripts/aside/toc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,63 @@
function waitForElm(selector) {
return new Promise(resolve => {
if (document.querySelector(selector)) {
return resolve(document.querySelector(selector));
}

const observer = new MutationObserver(mutations => {
if (document.querySelector(selector)) {
observer.disconnect();
resolve(document.querySelector(selector));
}
});

observer.observe(document.body, {
childList: true,
subtree: true
});
});
}




class ClassWatcher {

constructor(targetNode, classToWatch, classAddedCallback) {
this.targetNode = targetNode
this.classToWatch = classToWatch
this.classAddedCallback = classAddedCallback
this.observer = null
this.init()
}

init() {
this.observer = new MutationObserver(this.mutationCallback)
this.observe()
}

observe() {
this.observer.observe(this.targetNode, { attributes: true, childList: true, subtree: true })
}

disconnect() {
this.observer.disconnect()
}

mutationCallback = mutationsList => {
for(let mutation of mutationsList) {
if (mutation.target.nodeName === 'LI') {
if (mutation.type === 'attributes' && mutation.attributeName === 'class') {
let currentClassState = mutation.target.classList.contains(this.classToWatch)
if(currentClassState) {
this.classAddedCallback(mutation.target);
}
}
}
}
}
}

(function() {
var SOURCES = window.TEXT_VARIABLES.sources;
var TOC_SELECTOR = window.TEXT_VARIABLES.site.toc.selectors;
Expand Down Expand Up @@ -32,4 +92,31 @@
}, 100));

});

document.addEventListener('DOMContentLoaded', () => {
waitForElm('ul.toc').then((toc) => {
let onAddActive = (target) => {
const isH4 = target.classList.contains('toc-h4');
if (isH4 && target.classList.contains('visible')) {
return;
}

const h4s = toc.querySelectorAll('.toc-h4');
h4s.forEach(h4 => h4.classList.remove('visible'));

while (target.classList.contains('toc-h4')) {
console.log(target);
target = target.previousSibling;
}

target = target.nextSibling;
while (target && target.classList.contains('toc-h4')) {
target.classList.add('visible');
target = target.nextSibling;
}
};

let activeWatcher = new ClassWatcher(toc, 'active', onAddActive);
})
});
})();
9 changes: 1 addition & 8 deletions _includes/svg/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 0 additions & 12 deletions _posts/2018-06-01-header-image.md

This file was deleted.

16 changes: 0 additions & 16 deletions _posts/2018-07-01-welcome.md

This file was deleted.

26 changes: 13 additions & 13 deletions _sass/common/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ $base: (
font-size-root: 16px,
font-size-root-sm: 14px,

font-size-xl: 1.5rem,
font-size-lg: 1.25rem,
font-size: 1rem,
font-size-sm: .85rem,
font-size-xs: .7rem,
font-size-xl: 1.75rem,
font-size-lg: 1.5rem,
font-size: 1.25rem,
font-size-sm: 1.0rem,
font-size-xs: 1.0rem,

font-size-h1-xl: 3.5rem,
font-size-h2-xl: 2.5rem,
Expand All @@ -25,12 +25,12 @@ $base: (
font-size-h5-lg: 1.25rem,
font-size-h6-lg: 1.25rem,

font-size-h1: 2.5rem,
font-size-h2: 1.9rem,
font-size-h3: 1.5rem,
font-size-h4: 1.2rem,
font-size-h5: 1rem,
font-size-h6: 1rem,
font-size-h1: 3rem,
font-size-h2: 2.5rem,
font-size-h3: 2.0rem,
font-size-h4: 1.75rem,
font-size-h5: 1.5rem,
font-size-h6: 1.5rem,

font-size-h1-sm: 2rem,
font-size-h2-sm: 1.5rem,
Expand All @@ -46,8 +46,8 @@ $base: (
font-size-h5-xs: .85rem,
font-size-h6-xs: .85rem,

font-weight: 400,
font-weight-bold: 700,
font-weight: 300,
font-weight-bold: 600,

line-height-xl: 2,
line-height-lg: 1.8,
Expand Down
Loading