started to add docs
This commit is contained in:
parent
59dead5ea5
commit
ab11352ee2
32 changed files with 2444 additions and 0 deletions
1
docs/.gitignore
vendored
Normal file
1
docs/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
public
|
3
docs/content/_index.md
Normal file
3
docs/content/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
+++
|
||||||
|
redirect_to = "introduction"
|
||||||
|
+++
|
8
docs/content/introduction/_index.md
Normal file
8
docs/content/introduction/_index.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
+++
|
||||||
|
title = "About Norg"
|
||||||
|
+++
|
||||||
|
Norg is a simple, portable, wrapper for both the [BorgBackup](https://borgbackup.com) and [Restic](https://restic.net) backup utilities.
|
||||||
|
This website serves as a point of reference for both documentation and
|
||||||
|
assistance when using the `norg` backup utilitiy.
|
||||||
|
Please use the menu on the right-hand side or search box at the top of the page
|
||||||
|
to find information about the `norg` system and how to use it.
|
17
docs/themes/norgbackup/.github/workflows/docs.yml
vendored
Normal file
17
docs/themes/norgbackup/.github/workflows/docs.yml
vendored
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
name: Build and deploy GH Pages
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v3.0.0
|
||||||
|
- name: build_and_deploy
|
||||||
|
uses: shalzz/zola-deploy-action@v0.17.2
|
||||||
|
env:
|
||||||
|
PAGES_BRANCH: gh-pages
|
||||||
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2
docs/themes/norgbackup/.gitignore
vendored
Normal file
2
docs/themes/norgbackup/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
.idea/
|
||||||
|
public
|
21
docs/themes/norgbackup/LICENSE
vendored
Normal file
21
docs/themes/norgbackup/LICENSE
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2017 Vincent Prouillet
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
54
docs/themes/norgbackup/README.md
vendored
Normal file
54
docs/themes/norgbackup/README.md
vendored
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
# book
|
||||||
|
|
||||||
|
A theme based on [Gitbook](https://www.gitbook.com), to write documentation
|
||||||
|
or books.
|
||||||
|
|
||||||
|
![book screenshot](https://github.com/Keats/book/blob/master/screenshot.png?raw=true)
|
||||||
|
|
||||||
|
|
||||||
|
## Contents
|
||||||
|
|
||||||
|
- [Installation](#installation)
|
||||||
|
- [Options](#options)
|
||||||
|
- [Numbered chapters](#numbered-chapters)
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
First download this theme to your `themes` directory:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ cd themes
|
||||||
|
$ git clone https://github.com/getzola/book.git
|
||||||
|
```
|
||||||
|
and then enable it in your `config.toml`:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
theme = "book"
|
||||||
|
# Optional, if you want search
|
||||||
|
build_search_index = true
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
Book will generate a book from the files you place in the `content` directory. Your book
|
||||||
|
can have two levels of hierarchy: chapters and subchapters.
|
||||||
|
|
||||||
|
Each chapter should be a `section` within the Gutenberg site and should have an `_index.md`
|
||||||
|
file that sets its `weight` front-matter variable to its chapter number. For example,
|
||||||
|
chapter 2 should have `weight = 2`. Additionally, each chapter should also set the
|
||||||
|
`sort_by = "weight"` in its front matter.
|
||||||
|
|
||||||
|
Each subchapter should be a `page` and should have its `weight` variable set to the subchapter
|
||||||
|
number. For example, subchapter 3.4 should have `weight = 4`.
|
||||||
|
|
||||||
|
Finally, you should create an `_index.md` file and set the `redirect_to` front-matter variable
|
||||||
|
to redirect to the first section of your content. For example, if your first section has the
|
||||||
|
slug `introduction`, then you would set `redirect_to = "introduction"`.
|
||||||
|
|
||||||
|
## Options
|
||||||
|
|
||||||
|
### Numbered chapters
|
||||||
|
By default, the `book` theme will number the chapters and pages in the left menu.
|
||||||
|
You can disable that by setting the `book_number_chapters` in `extra`:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
book_number_chapters = false
|
||||||
|
```
|
3
docs/themes/norgbackup/content/_index.md
vendored
Normal file
3
docs/themes/norgbackup/content/_index.md
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
+++
|
||||||
|
redirect_to = "chapter1"
|
||||||
|
+++
|
24
docs/themes/norgbackup/content/chapter1/_index.md
vendored
Normal file
24
docs/themes/norgbackup/content/chapter1/_index.md
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
+++
|
||||||
|
title = "Introduction"
|
||||||
|
weight = 1
|
||||||
|
sort_by = "weight"
|
||||||
|
insert_anchor_links = "right"
|
||||||
|
+++
|
||||||
|
|
||||||
|
A theme based on [Gitbook](https://www.gitbook.com/), to write documentation or books.
|
||||||
|
<!-- more -->
|
||||||
|
|
||||||
|
Book will generate a book from the files you place in the `content` directory. Your book
|
||||||
|
can have two levels of hierarchy: chapters and subchapters.
|
||||||
|
|
||||||
|
Each chapter should be a `section` within the Gutenberg site and should have an `_index.md`
|
||||||
|
file that sets its `weight` front-matter variable to its chapter number. For example,
|
||||||
|
chapter 2 should have `weight = 2`. Additionally, each chapter should also set the
|
||||||
|
`sort_by = "weight"` in its front matter.
|
||||||
|
|
||||||
|
Each subchapter should be a `page` and should have its `weight` variable set to the subchapter
|
||||||
|
number. For example, subchapter 3.4 should have `weight = 4`.
|
||||||
|
|
||||||
|
Finally, you should create an `_index.md` file and set the `redirect_to` front-matter variable
|
||||||
|
to redirect to the first section of your content. For example, if your first section has the
|
||||||
|
slug `introduction`, then you would set `redirect_to = "introduction"`.
|
84
docs/themes/norgbackup/content/chapter1/page1.md
vendored
Normal file
84
docs/themes/norgbackup/content/chapter1/page1.md
vendored
Normal file
|
@ -0,0 +1,84 @@
|
||||||
|
+++
|
||||||
|
title = "Page 1"
|
||||||
|
weight = 1
|
||||||
|
+++
|
||||||
|
|
||||||
|
Pages and sections are actually very similar.
|
||||||
|
|
||||||
|
## Page variables
|
||||||
|
Gutenberg will try to load the `templates/page.html` template, the `page.html` template of the theme if one is used
|
||||||
|
or will render the built-in template: a blank page.
|
||||||
|
|
||||||
|
Whichever template you decide to render, you will get a `page` variable in your template
|
||||||
|
with the following fields:
|
||||||
|
|
||||||
|
|
||||||
|
```ts
|
||||||
|
content: String;
|
||||||
|
title: String?;
|
||||||
|
description: String?;
|
||||||
|
date: String?;
|
||||||
|
slug: String;
|
||||||
|
path: String;
|
||||||
|
permalink: String;
|
||||||
|
summary: String?;
|
||||||
|
tags: Array<String>;
|
||||||
|
category: String?;
|
||||||
|
extra: HashMap<String, Any>;
|
||||||
|
// Naive word count, will not work for languages without whitespace
|
||||||
|
word_count: Number;
|
||||||
|
// Based on https://help.medium.com/hc/en-us/articles/214991667-Read-time
|
||||||
|
reading_time: Number;
|
||||||
|
// `previous` and `next` are only filled if the content can be sorted
|
||||||
|
previous: Page?;
|
||||||
|
next: Page?;
|
||||||
|
// See the Table of contents section below for more details
|
||||||
|
toc: Array<Header>;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Section variables
|
||||||
|
By default, Gutenberg will try to load `templates/section.html`. If there isn't
|
||||||
|
one, it will render the built-in template: a blank page.
|
||||||
|
|
||||||
|
Whichever template you decide to render, you will get a `section` variable in your template
|
||||||
|
with the following fields:
|
||||||
|
|
||||||
|
|
||||||
|
```ts
|
||||||
|
content: String;
|
||||||
|
title: String?;
|
||||||
|
description: String?;
|
||||||
|
date: String?;
|
||||||
|
slug: String;
|
||||||
|
path: String;
|
||||||
|
permalink: String;
|
||||||
|
extra: HashMap<String, Any>;
|
||||||
|
// Pages directly in this section, sorted if asked
|
||||||
|
pages: Array<Pages>;
|
||||||
|
// Direct subsections to this section, sorted by subsections weight
|
||||||
|
subsections: Array<Section>;
|
||||||
|
// Naive word count, will not work for languages without whitespace
|
||||||
|
word_count: Number;
|
||||||
|
// Based on https://help.medium.com/hc/en-us/articles/214991667-Read-time
|
||||||
|
reading_time: Number;
|
||||||
|
// See the Table of contents section below for more details
|
||||||
|
toc: Array<Header>;
|
||||||
|
```
|
||||||
|
|
||||||
|
## Table of contents
|
||||||
|
|
||||||
|
Both page and section have a `toc` field which corresponds to an array of `Header`.
|
||||||
|
A `Header` has the following fields:
|
||||||
|
|
||||||
|
```ts
|
||||||
|
// The hX level
|
||||||
|
level: 1 | 2 | 3 | 4 | 5 | 6;
|
||||||
|
// The generated slug id
|
||||||
|
id: String;
|
||||||
|
// The text of the header
|
||||||
|
title: String;
|
||||||
|
// A link pointing directly to the header, using the inserted anchor
|
||||||
|
permalink: String;
|
||||||
|
// All lower level headers below this header
|
||||||
|
children: Array<Header>;
|
||||||
|
```
|
62
docs/themes/norgbackup/content/chapter1/page2.md
vendored
Normal file
62
docs/themes/norgbackup/content/chapter1/page2.md
vendored
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
+++
|
||||||
|
title = "Page 2"
|
||||||
|
weight = 2
|
||||||
|
sort_by = "weight"
|
||||||
|
insert_anchor_links = "right"
|
||||||
|
+++
|
||||||
|
|
||||||
|
Testing every `elements` you can find in [CommonMark](http://commonmark.org).
|
||||||
|
<!-- more -->
|
||||||
|
|
||||||
|
Quisque viverra a eros id auctor. Proin id nibh ut nisl dignissim pellentesque et ac mi. Nullam mattis urna quis consequat bibendum. Donec pretium dui elit, a semper purus tristique et. Mauris euismod nisl eu vehicula facilisis. Maecenas facilisis non massa non scelerisque. Integer malesuada cursus erat eu viverra. Duis ligula mi, eleifend vel justo id, laoreet porttitor ex. Etiam ultricies lacus lorem, sed aliquam nulla blandit in. Maecenas vel facilisis neque, vitae fringilla eros. In justo nibh, pellentesque sed faucibus nec, varius sit amet risus.
|
||||||
|
|
||||||
|
> This is a quote
|
||||||
|
|
||||||
|
- a
|
||||||
|
- bullet
|
||||||
|
- point
|
||||||
|
|
||||||
|
## Some code
|
||||||
|
|
||||||
|
```rust
|
||||||
|
fn main() {
|
||||||
|
let greetings = ["Hello", "Hola", "Bonjour",
|
||||||
|
"Ciao", "こんにちは", "안녕하세요",
|
||||||
|
"Cześć", "Olá", "Здравствуйте",
|
||||||
|
"Chào bạn", "您好", "Hallo",
|
||||||
|
"Hej", "Ahoj", "سلام"];
|
||||||
|
|
||||||
|
for (num, greeting) in greetings.iter().enumerate() {
|
||||||
|
print!("{} : ", greeting);
|
||||||
|
match num {
|
||||||
|
0 => println!("This code is editable and runnable!"),
|
||||||
|
1 => println!("¡Este código es editable y ejecutable!"),
|
||||||
|
2 => println!("Ce code est modifiable et exécutable !"),
|
||||||
|
3 => println!("Questo codice è modificabile ed eseguibile!"),
|
||||||
|
4 => println!("このコードは編集して実行出来ます!"),
|
||||||
|
5 => println!("여기에서 코드를 수정하고 실행할 수 있습니다!"),
|
||||||
|
6 => println!("Ten kod można edytować oraz uruchomić!"),
|
||||||
|
7 => println!("Este código é editável e executável!"),
|
||||||
|
8 => println!("Этот код можно отредактировать и запустить!"),
|
||||||
|
9 => println!("Bạn có thể edit và run code trực tiếp!"),
|
||||||
|
10 => println!("这段代码是可以编辑并且能够运行的!"),
|
||||||
|
11 => println!("Dieser Code kann bearbeitet und ausgeführt werden!"),
|
||||||
|
12 => println!("Den här koden kan redigeras och köras!"),
|
||||||
|
13 => println!("Tento kód můžete upravit a spustit"),
|
||||||
|
14 => println!("این کد قابلیت ویرایش و اجرا دارد!"),
|
||||||
|
_ => {},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## A table
|
||||||
|
|
||||||
|
| a | table | in | markdown | !! |
|
||||||
|
|----|-------|----|----------|---------------------------------|
|
||||||
|
| 1 | 2 | 3 | 4 | 5 |
|
||||||
|
| 1 | we | ew | we | with a longish column inside it |
|
||||||
|
|
||||||
|
## An image
|
||||||
|
|
||||||
|
![a cat](https://i.imgur.com/t6nPdY8.jpg "A cat")
|
6
docs/themes/norgbackup/content/chapter2/_index.md
vendored
Normal file
6
docs/themes/norgbackup/content/chapter2/_index.md
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
+++
|
||||||
|
title = "What is Gutenberg"
|
||||||
|
weight = 2
|
||||||
|
sort_by = "weight"
|
||||||
|
insert_anchor_links = "right"
|
||||||
|
+++
|
14
docs/themes/norgbackup/content/chapter2/page1.md
vendored
Normal file
14
docs/themes/norgbackup/content/chapter2/page1.md
vendored
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
+++
|
||||||
|
title = "Page 1"
|
||||||
|
weight = 1
|
||||||
|
+++
|
||||||
|
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin pulvinar, sem id fermentum sollicitudin, velit sem elementum nisl, at tempus odio lectus eu sapien. Quisque ligula diam, cursus sed nisi et, ultricies rhoncus diam. Integer nec tellus a ante dapibus tincidunt nec id lacus. Quisque eu aliquet dui. Etiam placerat, ex in luctus lobortis, sem augue pellentesque nulla, in gravida lacus dui id arcu. Nam vel metus a ipsum condimentum porta non quis purus. Nullam feugiat vitae felis eu imperdiet. Sed et faucibus ligula.
|
||||||
|
|
||||||
|
Morbi tempus semper tellus eget luctus. Morbi eu dui leo. Aliquam vel neque id risus laoreet pellentesque. In mattis tincidunt nulla, sit amet pharetra tellus facilisis vel. Nulla facilisi. Nunc blandit massa a ante interdum pulvinar. Suspendisse bibendum efficitur gravida. Praesent gravida urna a luctus molestie. Fusce accumsan ipsum elit, quis gravida urna condimentum sed. Aliquam erat volutpat. Quisque eget mollis lorem, sit amet ultricies mauris. Fusce vulputate sollicitudin magna eget facilisis. Nunc id dignissim sapien.
|
||||||
|
|
||||||
|
Nulla pharetra eget ligula vitae auctor. Praesent consectetur consectetur nunc, quis commodo arcu posuere tincidunt. Praesent auctor, augue ut tincidunt semper, dolor ex malesuada justo, sit amet feugiat velit leo a lectus. Curabitur et velit ut magna vulputate vehicula nec sed lorem. Ut rutrum, odio sit amet mollis scelerisque, enim arcu euismod odio, vel faucibus libero ex sit amet nisl. Proin nec orci nec elit vehicula sodales id eget ex. Etiam et aliquet lacus. Cras tortor orci, blandit nec eleifend nec, venenatis at nibh. Vivamus eu feugiat purus. Nam viverra lobortis dui, non eleifend mauris commodo eget. Vestibulum quis erat et turpis maximus pretium. Aenean ac placerat quam. Nulla elit tortor, ornare a libero non, eleifend vestibulum nulla. Donec justo lorem, accumsan a feugiat ullamcorper, fringilla vel augue. Sed convallis et odio rhoncus vestibulum. Vivamus finibus lacinia dui, volutpat tincidunt felis condimentum et.
|
||||||
|
|
||||||
|
Cras accumsan libero sed nulla facilisis varius. Nulla auctor nibh quis mauris tincidunt fermentum. Nulla sed consectetur odio, a fringilla libero. Curabitur tincidunt varius mollis. Cras ornare nec enim in vestibulum. Quisque tempor nunc arcu, eu accumsan tellus pulvinar nec. Donec venenatis cursus est sed gravida. Ut non nisi sit amet ligula facilisis volutpat. Praesent lorem quam, euismod sit amet consequat eu, aliquam at justo. Nunc vel condimentum velit. Duis pharetra laoreet nulla sed consectetur. Pellentesque malesuada mauris id nunc ultricies, quis viverra tellus porttitor.
|
||||||
|
|
||||||
|
Aliquam vitae lectus tortor. Etiam auctor tortor elit, vel scelerisque metus tempor et. Quisque condimentum, massa vel condimentum sagittis, justo risus convallis eros, ac accumsan dolor ante in justo. Quisque et lacus at lectus semper commodo. Cras id viverra sem. Aliquam venenatis, tortor at fringilla semper, metus libero dictum libero, consequat facilisis nunc dolor sed sem. Nulla blandit, justo a condimentum malesuada, mauris mi lacinia orci, at finibus odio mi quis velit. Maecenas vel justo in lorem tristique sodales.
|
6
docs/themes/norgbackup/content/chapter3/_index.md
vendored
Normal file
6
docs/themes/norgbackup/content/chapter3/_index.md
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
+++
|
||||||
|
title = "Chapter 3"
|
||||||
|
weight = 3
|
||||||
|
sort_by = "weight"
|
||||||
|
insert_anchor_links = "right"
|
||||||
|
+++
|
20
docs/themes/norgbackup/content/chapter3/page1.md
vendored
Normal file
20
docs/themes/norgbackup/content/chapter3/page1.md
vendored
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
+++
|
||||||
|
title = "Page 1"
|
||||||
|
weight = 1
|
||||||
|
+++
|
||||||
|
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin pulvinar, sem id fermentum sollicitudin, velit sem elementum nisl, at tempus odio lectus eu sapien. Quisque ligula diam, cursus sed nisi et, ultricies rhoncus diam. Integer nec tellus a ante dapibus tincidunt nec id lacus. Quisque eu aliquet dui. Etiam placerat, ex in luctus lobortis, sem augue pellentesque nulla, in gravida lacus dui id arcu. Nam vel metus a ipsum condimentum porta non quis purus. Nullam feugiat vitae felis eu imperdiet. Sed et faucibus ligula.
|
||||||
|
|
||||||
|
```js
|
||||||
|
function isAllowed(user) {
|
||||||
|
return user.admin || user.staff;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Morbi tempus semper tellus eget luctus. Morbi eu dui leo. Aliquam vel neque id risus laoreet pellentesque. In mattis tincidunt nulla, sit amet pharetra tellus facilisis vel. Nulla facilisi. Nunc blandit massa a ante interdum pulvinar. Suspendisse bibendum efficitur gravida. Praesent gravida urna a luctus molestie. Fusce accumsan ipsum elit, quis gravida urna condimentum sed. Aliquam erat volutpat. Quisque eget mollis lorem, sit amet ultricies mauris. Fusce vulputate sollicitudin magna eget facilisis. Nunc id dignissim sapien.
|
||||||
|
|
||||||
|
Nulla pharetra eget ligula vitae auctor. Praesent consectetur consectetur nunc, quis commodo arcu posuere tincidunt. Praesent auctor, augue ut tincidunt semper, dolor ex malesuada justo, sit amet feugiat velit leo a lectus. Curabitur et velit ut magna vulputate vehicula nec sed lorem. Ut rutrum, odio sit amet mollis scelerisque, enim arcu euismod odio, vel faucibus libero ex sit amet nisl. Proin nec orci nec elit vehicula sodales id eget ex. Etiam et aliquet lacus. Cras tortor orci, blandit nec eleifend nec, venenatis at nibh. Vivamus eu feugiat purus. Nam viverra lobortis dui, non eleifend mauris commodo eget. Vestibulum quis erat et turpis maximus pretium. Aenean ac placerat quam. Nulla elit tortor, ornare a libero non, eleifend vestibulum nulla. Donec justo lorem, accumsan a feugiat ullamcorper, fringilla vel augue. Sed convallis et odio rhoncus vestibulum. Vivamus finibus lacinia dui, volutpat tincidunt felis condimentum et.
|
||||||
|
|
||||||
|
Cras accumsan libero sed nulla facilisis varius. Nulla auctor nibh quis mauris tincidunt fermentum. Nulla sed consectetur odio, a fringilla libero. Curabitur tincidunt varius mollis. Cras ornare nec enim in vestibulum. Quisque tempor nunc arcu, eu accumsan tellus pulvinar nec. Donec venenatis cursus est sed gravida. Ut non nisi sit amet ligula facilisis volutpat. Praesent lorem quam, euismod sit amet consequat eu, aliquam at justo. Nunc vel condimentum velit. Duis pharetra laoreet nulla sed consectetur. Pellentesque malesuada mauris id nunc ultricies, quis viverra tellus porttitor.
|
||||||
|
|
||||||
|
Aliquam vitae lectus tortor. Etiam auctor tortor elit, vel scelerisque metus tempor et. Quisque condimentum, massa vel condimentum sagittis, justo risus convallis eros, ac accumsan dolor ante in justo. Quisque et lacus at lectus semper commodo. Cras id viverra sem. Aliquam venenatis, tortor at fringilla semper, metus libero dictum libero, consequat facilisis nunc dolor sed sem. Nulla blandit, justo a condimentum malesuada, mauris mi lacinia orci, at finibus odio mi quis velit. Maecenas vel justo in lorem tristique sodales.
|
20
docs/themes/norgbackup/content/chapter3/page2.md
vendored
Normal file
20
docs/themes/norgbackup/content/chapter3/page2.md
vendored
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
+++
|
||||||
|
title = "Page 2"
|
||||||
|
weight = 2
|
||||||
|
+++
|
||||||
|
|
||||||
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin pulvinar, sem id fermentum sollicitudin, velit sem elementum nisl, at tempus odio lectus eu sapien. Quisque ligula diam, cursus sed nisi et, ultricies rhoncus diam. Integer nec tellus a ante dapibus tincidunt nec id lacus. Quisque eu aliquet dui. Etiam placerat, ex in luctus lobortis, sem augue pellentesque nulla, in gravida lacus dui id arcu. Nam vel metus a ipsum condimentum porta non quis purus. Nullam feugiat vitae felis eu imperdiet. Sed et faucibus ligula.
|
||||||
|
|
||||||
|
```js
|
||||||
|
function isAllowed(user) {
|
||||||
|
return user.admin || user.staff;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Morbi tempus semper tellus eget luctus. Morbi eu dui leo. Aliquam vel neque id risus laoreet pellentesque. In mattis tincidunt nulla, sit amet pharetra tellus facilisis vel. Nulla facilisi. Nunc blandit massa a ante interdum pulvinar. Suspendisse bibendum efficitur gravida. Praesent gravida urna a luctus molestie. Fusce accumsan ipsum elit, quis gravida urna condimentum sed. Aliquam erat volutpat. Quisque eget mollis lorem, sit amet ultricies mauris. Fusce vulputate sollicitudin magna eget facilisis. Nunc id dignissim sapien.
|
||||||
|
|
||||||
|
Nulla pharetra eget ligula vitae auctor. Praesent consectetur consectetur nunc, quis commodo arcu posuere tincidunt. Praesent auctor, augue ut tincidunt semper, dolor ex malesuada justo, sit amet feugiat velit leo a lectus. Curabitur et velit ut magna vulputate vehicula nec sed lorem. Ut rutrum, odio sit amet mollis scelerisque, enim arcu euismod odio, vel faucibus libero ex sit amet nisl. Proin nec orci nec elit vehicula sodales id eget ex. Etiam et aliquet lacus. Cras tortor orci, blandit nec eleifend nec, venenatis at nibh. Vivamus eu feugiat purus. Nam viverra lobortis dui, non eleifend mauris commodo eget. Vestibulum quis erat et turpis maximus pretium. Aenean ac placerat quam. Nulla elit tortor, ornare a libero non, eleifend vestibulum nulla. Donec justo lorem, accumsan a feugiat ullamcorper, fringilla vel augue. Sed convallis et odio rhoncus vestibulum. Vivamus finibus lacinia dui, volutpat tincidunt felis condimentum et.
|
||||||
|
|
||||||
|
Cras accumsan libero sed nulla facilisis varius. Nulla auctor nibh quis mauris tincidunt fermentum. Nulla sed consectetur odio, a fringilla libero. Curabitur tincidunt varius mollis. Cras ornare nec enim in vestibulum. Quisque tempor nunc arcu, eu accumsan tellus pulvinar nec. Donec venenatis cursus est sed gravida. Ut non nisi sit amet ligula facilisis volutpat. Praesent lorem quam, euismod sit amet consequat eu, aliquam at justo. Nunc vel condimentum velit. Duis pharetra laoreet nulla sed consectetur. Pellentesque malesuada mauris id nunc ultricies, quis viverra tellus porttitor.
|
||||||
|
|
||||||
|
Aliquam vitae lectus tortor. Etiam auctor tortor elit, vel scelerisque metus tempor et. Quisque condimentum, massa vel condimentum sagittis, justo risus convallis eros, ac accumsan dolor ante in justo. Quisque et lacus at lectus semper commodo. Cras id viverra sem. Aliquam venenatis, tortor at fringilla semper, metus libero dictum libero, consequat facilisis nunc dolor sed sem. Nulla blandit, justo a condimentum malesuada, mauris mi lacinia orci, at finibus odio mi quis velit. Maecenas vel justo in lorem tristique sodales.
|
6
docs/themes/norgbackup/content/chapter4/_index.md
vendored
Normal file
6
docs/themes/norgbackup/content/chapter4/_index.md
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
+++
|
||||||
|
title = "A chapter without sub-parts"
|
||||||
|
weight = 4
|
||||||
|
sort_by = "weight"
|
||||||
|
insert_anchor_links = "right"
|
||||||
|
+++
|
6
docs/themes/norgbackup/content/chapter5/_index.md
vendored
Normal file
6
docs/themes/norgbackup/content/chapter5/_index.md
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
+++
|
||||||
|
title = "Another chapter without sub-parts"
|
||||||
|
weight = 5
|
||||||
|
sort_by = "weight"
|
||||||
|
insert_anchor_links = "right"
|
||||||
|
+++
|
231
docs/themes/norgbackup/sass/_content.scss
vendored
Normal file
231
docs/themes/norgbackup/sass/_content.scss
vendored
Normal file
|
@ -0,0 +1,231 @@
|
||||||
|
@use "variables";
|
||||||
|
.page {
|
||||||
|
position: absolute;
|
||||||
|
width: calc(100% - #{variables.$sidebar-width});
|
||||||
|
height: 100%;
|
||||||
|
overflow-y: auto;
|
||||||
|
color: #000;
|
||||||
|
background: #fff;
|
||||||
|
padding-bottom: 20px;
|
||||||
|
transition: 0.5s;
|
||||||
|
|
||||||
|
.zola-anchor {
|
||||||
|
color: #357aba;
|
||||||
|
padding-left: 10px;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: initial;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__content {
|
||||||
|
a {
|
||||||
|
color: #357aba;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
height: 4px;
|
||||||
|
padding: 0;
|
||||||
|
margin: 1.7em 0;
|
||||||
|
overflow: hidden;
|
||||||
|
background-color: #e7e7e7;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
padding: 1rem;
|
||||||
|
|
||||||
|
span {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
margin: 0;
|
||||||
|
margin-bottom: .85em;
|
||||||
|
padding: 0 15px;
|
||||||
|
color: #858585;
|
||||||
|
border-left: 4px solid #e5e5e5;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre code {
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
padding: 0.1em 0.3em;
|
||||||
|
border-radius: 3px;
|
||||||
|
color: #6e6b5e;
|
||||||
|
background: #f1f1f1;
|
||||||
|
font-size: 0.875em;
|
||||||
|
font-family: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
iframe {
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
margin: 0 auto;
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-color: #cccccc;
|
||||||
|
|
||||||
|
td {
|
||||||
|
padding: 3px 20px;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
|
||||||
|
thead {
|
||||||
|
th {
|
||||||
|
padding: 6px 13px;
|
||||||
|
font-weight: bold;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
font-size: 1.6rem;
|
||||||
|
word-wrap: break-word;
|
||||||
|
line-height: 1.7;
|
||||||
|
position: relative;
|
||||||
|
left: 0;
|
||||||
|
max-width: 800px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0 15px 40px;
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0.85em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.previous, .next {
|
||||||
|
position: fixed;
|
||||||
|
display: flex;
|
||||||
|
top: 50px;
|
||||||
|
bottom: 0;
|
||||||
|
font-size: 2.5em;
|
||||||
|
color: #ccc;
|
||||||
|
text-decoration: none;
|
||||||
|
text-align: center;
|
||||||
|
margin: 0;
|
||||||
|
max-width: 150px;
|
||||||
|
min-width: 90px;
|
||||||
|
justify-content: center;
|
||||||
|
align-content: center;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.previous {
|
||||||
|
left: variables.$sidebar-width;
|
||||||
|
float: left;
|
||||||
|
transition: left 0.5s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.next {
|
||||||
|
// not 0 as it goes over the sidebar otherwise
|
||||||
|
right: 15px;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include variables.max-screen(1250px) {
|
||||||
|
.previous, .next {
|
||||||
|
position: static;
|
||||||
|
top: auto;
|
||||||
|
display: inline-block;
|
||||||
|
max-width: 49%;
|
||||||
|
width: 49%;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include variables.min-screen(600px) {
|
||||||
|
.page {
|
||||||
|
left: variables.$sidebar-width;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-without-menu {
|
||||||
|
width: 100%;
|
||||||
|
left: 0;
|
||||||
|
|
||||||
|
.previous {
|
||||||
|
left: 15px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include variables.max-screen(600px) {
|
||||||
|
.page {
|
||||||
|
width: 100%;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-without-menu {
|
||||||
|
left: calc(100% - 100px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-container {
|
||||||
|
display: none;
|
||||||
|
|
||||||
|
&--is-visible {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
#search {
|
||||||
|
width: 100%;
|
||||||
|
padding: 1rem;
|
||||||
|
border: 1px solid #aaa;
|
||||||
|
border-radius: 3px;
|
||||||
|
background-color: #fafafa;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-results {
|
||||||
|
&__header {
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 1rem 0rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__items {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
list-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__item {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__teaser {
|
||||||
|
font-size: 90%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-mode {
|
||||||
|
.prev-link, .next-link {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
18
docs/themes/norgbackup/sass/_document.scss
vendored
Normal file
18
docs/themes/norgbackup/sass/_document.scss
vendored
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-size: 62.5%;
|
||||||
|
}
|
||||||
|
|
||||||
|
body, html {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
text-rendering: optimizeLegibility;
|
||||||
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
font-size: 14px;
|
||||||
|
letter-spacing: 0.2px;
|
||||||
|
}
|
160
docs/themes/norgbackup/sass/_header.scss
vendored
Normal file
160
docs/themes/norgbackup/sass/_header.scss
vendored
Normal file
|
@ -0,0 +1,160 @@
|
||||||
|
@mixin menu-icon() {
|
||||||
|
@keyframes clickfirst {
|
||||||
|
0% {
|
||||||
|
transform: translateY(6px) rotate(0deg);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
transform: translateY(0) rotate(45deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes clickmid {
|
||||||
|
0% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes clicklast {
|
||||||
|
0% {
|
||||||
|
transform: translateY(-6px) rotate(0deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
transform: translateY(0) rotate(-45deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes outfirst {
|
||||||
|
0% {
|
||||||
|
transform: translateY(0) rotate(-45deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
transform: translateY(-6px) rotate(0deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes outmid {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes outlast {
|
||||||
|
0% {
|
||||||
|
transform: translateY(0) rotate(45deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
transform: translateY(6px) rotate(0deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
position: absolute;
|
||||||
|
/* fallback for browsers which still doesn't support for `calc()` */
|
||||||
|
left: 15px;
|
||||||
|
top: 25px;
|
||||||
|
left: calc((100% - 20px) / 2);
|
||||||
|
top: calc((100% - 1px) / 2);
|
||||||
|
width: 20px;
|
||||||
|
height: 2px;
|
||||||
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
|
|
||||||
|
&:nth-child(1) {
|
||||||
|
transform: translateY(6px) rotate(0deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:nth-child(3) {
|
||||||
|
transform: translateY(-6px) rotate(0deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.icon-click {
|
||||||
|
span:nth-child(1) {
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
animation-fill-mode: both;
|
||||||
|
animation-name: clickfirst;
|
||||||
|
}
|
||||||
|
|
||||||
|
span:nth-child(2) {
|
||||||
|
animation-duration: 0.2s;
|
||||||
|
animation-fill-mode: both;
|
||||||
|
animation-name: clickmid;
|
||||||
|
}
|
||||||
|
|
||||||
|
span:nth-child(3) {
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
animation-fill-mode: both;
|
||||||
|
animation-name: clicklast;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.icon-out {
|
||||||
|
span:nth-child(1) {
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
animation-fill-mode: both;
|
||||||
|
animation-name: outfirst;
|
||||||
|
}
|
||||||
|
|
||||||
|
span:nth-child(2) {
|
||||||
|
animation-duration: 0.2s;
|
||||||
|
animation-fill-mode: both;
|
||||||
|
animation-name: outmid;
|
||||||
|
}
|
||||||
|
|
||||||
|
span:nth-child(3) {
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
animation-fill-mode: both;
|
||||||
|
animation-name: outlast;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.page__header {
|
||||||
|
height: 50px;
|
||||||
|
|
||||||
|
.menu-icon {
|
||||||
|
height: 50px;
|
||||||
|
width: 50px;
|
||||||
|
font-size: 24px;
|
||||||
|
text-align: center;
|
||||||
|
float: left;
|
||||||
|
position: relative;
|
||||||
|
transition: background .5s;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
@include menu-icon();
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
span {
|
||||||
|
background-color: black;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-icon {
|
||||||
|
height: 50px;
|
||||||
|
width: 50px;
|
||||||
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 50px;
|
||||||
|
color: rgba(0, 0, 0, 0.5);
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 2rem;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: black
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
57
docs/themes/norgbackup/sass/_navigation.scss
vendored
Normal file
57
docs/themes/norgbackup/sass/_navigation.scss
vendored
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
@use "variables";
|
||||||
|
.menu {
|
||||||
|
height: 100%;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
overflow-y: auto;
|
||||||
|
width: 300px;
|
||||||
|
color: #364149;
|
||||||
|
background: #fafafa;
|
||||||
|
border-right: 1px solid rgba(0, 0, 0, 0.07);
|
||||||
|
transition: 0.5s;
|
||||||
|
|
||||||
|
ul {
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
a {
|
||||||
|
display: block;
|
||||||
|
color: #364149;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-decoration: none;
|
||||||
|
padding: 10px 15px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
li.active > a {
|
||||||
|
color: #0053bc;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
padding-left: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-hidden {
|
||||||
|
width: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include variables.max-screen(600px) {
|
||||||
|
.menu {
|
||||||
|
width: 0;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-hidden {
|
||||||
|
width: calc(100% - 100px);
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
}
|
447
docs/themes/norgbackup/sass/_normalize.scss
vendored
Normal file
447
docs/themes/norgbackup/sass/_normalize.scss
vendored
Normal file
|
@ -0,0 +1,447 @@
|
||||||
|
/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
|
||||||
|
|
||||||
|
/* Document
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct the line height in all browsers.
|
||||||
|
* 2. Prevent adjustments of font size after orientation changes in
|
||||||
|
* IE on Windows Phone and in iOS.
|
||||||
|
*/
|
||||||
|
|
||||||
|
html {
|
||||||
|
line-height: 1.15; /* 1 */
|
||||||
|
-ms-text-size-adjust: 100%; /* 2 */
|
||||||
|
-webkit-text-size-adjust: 100%; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Sections
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the margin in all browsers (opinionated).
|
||||||
|
*/
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the correct display in IE 9-.
|
||||||
|
*/
|
||||||
|
|
||||||
|
article,
|
||||||
|
aside,
|
||||||
|
footer,
|
||||||
|
header,
|
||||||
|
nav,
|
||||||
|
section {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Correct the font size and margin on `h1` elements within `section` and
|
||||||
|
* `article` contexts in Chrome, Firefox, and Safari.
|
||||||
|
*/
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 2em;
|
||||||
|
margin: 0.67em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Grouping content
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the correct display in IE 9-.
|
||||||
|
* 1. Add the correct display in IE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
figcaption,
|
||||||
|
figure,
|
||||||
|
main { /* 1 */
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the correct margin in IE 8.
|
||||||
|
*/
|
||||||
|
|
||||||
|
figure {
|
||||||
|
margin: 1em 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Add the correct box sizing in Firefox.
|
||||||
|
* 2. Show the overflow in Edge and IE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
hr {
|
||||||
|
box-sizing: content-box; /* 1 */
|
||||||
|
height: 0; /* 1 */
|
||||||
|
overflow: visible; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||||
|
* 2. Correct the odd `em` font sizing in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
pre {
|
||||||
|
font-family: monospace, monospace; /* 1 */
|
||||||
|
font-size: 1em; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Text-level semantics
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Remove the gray background on active links in IE 10.
|
||||||
|
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
|
||||||
|
*/
|
||||||
|
|
||||||
|
a {
|
||||||
|
background-color: transparent; /* 1 */
|
||||||
|
-webkit-text-decoration-skip: objects; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Remove the bottom border in Chrome 57- and Firefox 39-.
|
||||||
|
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
||||||
|
*/
|
||||||
|
|
||||||
|
abbr[title] {
|
||||||
|
border-bottom: none; /* 1 */
|
||||||
|
text-decoration: underline; /* 2 */
|
||||||
|
text-decoration: underline dotted; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
|
||||||
|
*/
|
||||||
|
|
||||||
|
b,
|
||||||
|
strong {
|
||||||
|
font-weight: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the correct font weight in Chrome, Edge, and Safari.
|
||||||
|
*/
|
||||||
|
|
||||||
|
b,
|
||||||
|
strong {
|
||||||
|
font-weight: bolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct the inheritance and scaling of font size in all browsers.
|
||||||
|
* 2. Correct the odd `em` font sizing in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
code,
|
||||||
|
kbd,
|
||||||
|
samp {
|
||||||
|
font-family: monospace, monospace; /* 1 */
|
||||||
|
font-size: 1em; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the correct font style in Android 4.3-.
|
||||||
|
*/
|
||||||
|
|
||||||
|
dfn {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the correct background and color in IE 9-.
|
||||||
|
*/
|
||||||
|
|
||||||
|
mark {
|
||||||
|
background-color: #ff0;
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the correct font size in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
small {
|
||||||
|
font-size: 80%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prevent `sub` and `sup` elements from affecting the line height in
|
||||||
|
* all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
sub,
|
||||||
|
sup {
|
||||||
|
font-size: 75%;
|
||||||
|
line-height: 0;
|
||||||
|
position: relative;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub {
|
||||||
|
bottom: -0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
sup {
|
||||||
|
top: -0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Embedded content
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the correct display in IE 9-.
|
||||||
|
*/
|
||||||
|
|
||||||
|
audio,
|
||||||
|
video {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the correct display in iOS 4-7.
|
||||||
|
*/
|
||||||
|
|
||||||
|
audio:not([controls]) {
|
||||||
|
display: none;
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the border on images inside links in IE 10-.
|
||||||
|
*/
|
||||||
|
|
||||||
|
img {
|
||||||
|
border-style: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hide the overflow in IE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
svg:not(:root) {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Forms
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Change the font styles in all browsers (opinionated).
|
||||||
|
* 2. Remove the margin in Firefox and Safari.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button,
|
||||||
|
input,
|
||||||
|
optgroup,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
font-family: sans-serif; /* 1 */
|
||||||
|
font-size: 100%; /* 1 */
|
||||||
|
line-height: 1.15; /* 1 */
|
||||||
|
margin: 0; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the overflow in IE.
|
||||||
|
* 1. Show the overflow in Edge.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button,
|
||||||
|
input { /* 1 */
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
||||||
|
* 1. Remove the inheritance of text transform in Firefox.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button,
|
||||||
|
select { /* 1 */
|
||||||
|
text-transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
|
||||||
|
* controls in Android 4.
|
||||||
|
* 2. Correct the inability to style clickable types in iOS and Safari.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button,
|
||||||
|
html [type="button"], /* 1 */
|
||||||
|
[type="reset"],
|
||||||
|
[type="submit"] {
|
||||||
|
-webkit-appearance: button; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the inner border and padding in Firefox.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button::-moz-focus-inner,
|
||||||
|
[type="button"]::-moz-focus-inner,
|
||||||
|
[type="reset"]::-moz-focus-inner,
|
||||||
|
[type="submit"]::-moz-focus-inner {
|
||||||
|
border-style: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Restore the focus styles unset by the previous rule.
|
||||||
|
*/
|
||||||
|
|
||||||
|
button:-moz-focusring,
|
||||||
|
[type="button"]:-moz-focusring,
|
||||||
|
[type="reset"]:-moz-focusring,
|
||||||
|
[type="submit"]:-moz-focusring {
|
||||||
|
outline: 1px dotted ButtonText;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Correct the padding in Firefox.
|
||||||
|
*/
|
||||||
|
|
||||||
|
fieldset {
|
||||||
|
padding: 0.35em 0.75em 0.625em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct the text wrapping in Edge and IE.
|
||||||
|
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
||||||
|
* 3. Remove the padding so developers are not caught out when they zero out
|
||||||
|
* `fieldset` elements in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
legend {
|
||||||
|
box-sizing: border-box; /* 1 */
|
||||||
|
color: inherit; /* 2 */
|
||||||
|
display: table; /* 1 */
|
||||||
|
max-width: 100%; /* 1 */
|
||||||
|
padding: 0; /* 3 */
|
||||||
|
white-space: normal; /* 1 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Add the correct display in IE 9-.
|
||||||
|
* 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
||||||
|
*/
|
||||||
|
|
||||||
|
progress {
|
||||||
|
display: inline-block; /* 1 */
|
||||||
|
vertical-align: baseline; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the default vertical scrollbar in IE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Add the correct box sizing in IE 10-.
|
||||||
|
* 2. Remove the padding in IE 10-.
|
||||||
|
*/
|
||||||
|
|
||||||
|
[type="checkbox"],
|
||||||
|
[type="radio"] {
|
||||||
|
box-sizing: border-box; /* 1 */
|
||||||
|
padding: 0; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Correct the cursor style of increment and decrement buttons in Chrome.
|
||||||
|
*/
|
||||||
|
|
||||||
|
[type="number"]::-webkit-inner-spin-button,
|
||||||
|
[type="number"]::-webkit-outer-spin-button {
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct the odd appearance in Chrome and Safari.
|
||||||
|
* 2. Correct the outline style in Safari.
|
||||||
|
*/
|
||||||
|
|
||||||
|
[type="search"] {
|
||||||
|
-webkit-appearance: textfield; /* 1 */
|
||||||
|
outline-offset: -2px; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
|
||||||
|
*/
|
||||||
|
|
||||||
|
[type="search"]::-webkit-search-cancel-button,
|
||||||
|
[type="search"]::-webkit-search-decoration {
|
||||||
|
-webkit-appearance: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 1. Correct the inability to style clickable types in iOS and Safari.
|
||||||
|
* 2. Change font properties to `inherit` in Safari.
|
||||||
|
*/
|
||||||
|
|
||||||
|
::-webkit-file-upload-button {
|
||||||
|
-webkit-appearance: button; /* 1 */
|
||||||
|
font: inherit; /* 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Interactive
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Add the correct display in IE 9-.
|
||||||
|
* 1. Add the correct display in Edge, IE, and Firefox.
|
||||||
|
*/
|
||||||
|
|
||||||
|
details, /* 1 */
|
||||||
|
menu {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Add the correct display in all browsers.
|
||||||
|
*/
|
||||||
|
|
||||||
|
summary {
|
||||||
|
display: list-item;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Scripting
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the correct display in IE 9-.
|
||||||
|
*/
|
||||||
|
|
||||||
|
canvas {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the correct display in IE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
template {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Hidden
|
||||||
|
========================================================================== */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the correct display in IE 10-.
|
||||||
|
*/
|
||||||
|
|
||||||
|
[hidden] {
|
||||||
|
display: none;
|
||||||
|
}
|
162
docs/themes/norgbackup/sass/_syntax-charcoal.scss
vendored
Normal file
162
docs/themes/norgbackup/sass/_syntax-charcoal.scss
vendored
Normal file
|
@ -0,0 +1,162 @@
|
||||||
|
@mixin dark {
|
||||||
|
.z-code {
|
||||||
|
color: #cccece;
|
||||||
|
background-color: #191919;
|
||||||
|
}
|
||||||
|
.z-comment, .z-punctuation.z-definition.z-comment {
|
||||||
|
color: #7e8384;
|
||||||
|
}
|
||||||
|
.z-variable {
|
||||||
|
color: #cccece;
|
||||||
|
}
|
||||||
|
.z-keyword, .z-storage.z-type, .z-storage.z-modifier {
|
||||||
|
color: #c594c5;
|
||||||
|
}
|
||||||
|
.z-keyword.z-operator, .z-constant.z-other.z-color, .z-punctuation, .z-meta.z-tag, .z-punctuation.z-definition.z-tag, .z-punctuation.z-separator.z-inheritance.z-php, .z-punctuation.z-definition.z-tag.z-html, .z-punctuation.z-definition.z-tag.z-begin.z-html, .z-punctuation.z-definition.z-tag.z-end.z-html, .z-punctuation.z-section.z-embedded, .z-keyword.z-other.z-template, .z-keyword.z-other.z-substitution {
|
||||||
|
color: #5fb3b3;
|
||||||
|
}
|
||||||
|
.z-entity.z-name.z-tag, .z-meta.z-tag.z-sgml, .z-markup.z-deleted.z-git_gutter {
|
||||||
|
color: #ff7b84;
|
||||||
|
}
|
||||||
|
.z-entity.z-name.z-function, .z-meta.z-function-call, .z-variable.z-function, .z-support.z-function, .z-keyword.z-other.z-special-method, .z-meta.z-block-level {
|
||||||
|
color: #78aade;
|
||||||
|
}
|
||||||
|
.z-support.z-other.z-variable, .z-string.z-other.z-link {
|
||||||
|
color: #fa7e81;
|
||||||
|
}
|
||||||
|
.z-constant.z-numeric, .z-constant.z-language, .z-support.z-constant, .z-constant.z-character, .z-variable.z-parameter, .z-keyword.z-other.z-unit {
|
||||||
|
color: #f99157;
|
||||||
|
}
|
||||||
|
.z-string, .z-constant.z-other.z-symbol, .z-constant.z-other.z-key, .z-entity.z-other.z-inherited-class, .z-markup.z-heading, .z-markup.z-inserted.z-git_gutter, .z-meta.z-group.z-braces.z-curly .z-constant.z-other.z-object.z-key.z-js .z-string.z-unquoted.z-label.z-js {
|
||||||
|
color: #99c794;
|
||||||
|
}
|
||||||
|
.z-entity.z-name.z-class, .z-entity.z-name.z-type.z-class, .z-support.z-type, .z-support.z-class, .z-support.z-orther.z-namespace.z-use.z-php, .z-meta.z-use.z-php, .z-support.z-other.z-namespace.z-php, .z-markup.z-changed.z-git_gutter {
|
||||||
|
color: #fac863;
|
||||||
|
}
|
||||||
|
.z-entity.z-name.z-module.z-js, .z-variable.z-import.z-parameter.z-js, .z-variable.z-other.z-class.z-js {
|
||||||
|
color: #fe7d83;
|
||||||
|
}
|
||||||
|
.z-variable.z-language {
|
||||||
|
color: #fe7d83;
|
||||||
|
}
|
||||||
|
.z-entity.z-name.z-method.z-js {
|
||||||
|
color: #d8dee9;
|
||||||
|
}
|
||||||
|
.z-meta.z-class-method.z-js .z-entity.z-name.z-function.z-js, .z-variable.z-function.z-constructor {
|
||||||
|
color: #d8dee9;
|
||||||
|
}
|
||||||
|
.z-entity.z-other.z-attribute-name {
|
||||||
|
color: #cd91c4;
|
||||||
|
}
|
||||||
|
.z-markup.z-inserted {
|
||||||
|
color: #99c794;
|
||||||
|
}
|
||||||
|
.z-markup.z-deleted {
|
||||||
|
color: #fe7d83;
|
||||||
|
}
|
||||||
|
.z-markup.z-changed {
|
||||||
|
color: #cd91c4;
|
||||||
|
}
|
||||||
|
.z-string.z-regexp {
|
||||||
|
color: #5fb3b3;
|
||||||
|
}
|
||||||
|
.z-constant.z-character.z-escape {
|
||||||
|
color: #5fb3b3;
|
||||||
|
}
|
||||||
|
.z-*url*, .z-*link*, .z-*uri* {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
.z-constant.z-numeric.z-line-number.z-find-in-files {
|
||||||
|
color: #cf9a87;
|
||||||
|
}
|
||||||
|
.z-entity.z-name.z-filename.z-find-in-files {
|
||||||
|
color: #99c794;
|
||||||
|
}
|
||||||
|
.z-tag.z-decorator.z-js .z-entity.z-name.z-tag.z-js, .z-tag.z-decorator.z-js .z-punctuation.z-definition.z-tag.z-js {
|
||||||
|
color: #78aade;
|
||||||
|
}
|
||||||
|
.z-source.z-js .z-constant.z-other.z-object.z-key.z-js .z-string.z-unquoted.z-label.z-js {
|
||||||
|
color: #fe7d83;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@mixin light {
|
||||||
|
.z-code {
|
||||||
|
color: #727373;
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
.z-comment, .z-punctuation.z-definition.z-comment {
|
||||||
|
color: #5f6364;
|
||||||
|
}
|
||||||
|
.z-variable {
|
||||||
|
color: #727373;
|
||||||
|
}
|
||||||
|
.z-keyword, .z-storage.z-type, .z-storage.z-modifier {
|
||||||
|
color: #916392;
|
||||||
|
}
|
||||||
|
.z-keyword.z-operator, .z-constant.z-other.z-color, .z-punctuation, .z-meta.z-tag, .z-punctuation.z-definition.z-tag, .z-punctuation.z-separator.z-inheritance.z-php, .z-punctuation.z-definition.z-tag.z-html, .z-punctuation.z-definition.z-tag.z-begin.z-html, .z-punctuation.z-definition.z-tag.z-end.z-html, .z-punctuation.z-section.z-embedded, .z-keyword.z-other.z-template, .z-keyword.z-other.z-substitution {
|
||||||
|
color: #237e7f;
|
||||||
|
}
|
||||||
|
.z-entity.z-name.z-tag, .z-meta.z-tag.z-sgml, .z-markup.z-deleted.z-git_gutter {
|
||||||
|
color: #ca4251;
|
||||||
|
}
|
||||||
|
.z-entity.z-name.z-function, .z-meta.z-function-call, .z-variable.z-function, .z-support.z-function, .z-keyword.z-other.z-special-method, .z-meta.z-block-level {
|
||||||
|
color: #4076a7;
|
||||||
|
}
|
||||||
|
.z-support.z-other.z-variable, .z-string.z-other.z-link {
|
||||||
|
color: #c14c52;
|
||||||
|
}
|
||||||
|
.z-constant.z-numeric, .z-constant.z-language, .z-support.z-constant, .z-constant.z-character, .z-variable.z-parameter, .z-keyword.z-other.z-unit {
|
||||||
|
color: #b75922;
|
||||||
|
}
|
||||||
|
.z-string, .z-constant.z-other.z-symbol, .z-constant.z-other.z-key, .z-entity.z-other.z-inherited-class, .z-markup.z-heading, .z-markup.z-inserted.z-git_gutter, .z-meta.z-group.z-braces.z-curly .z-constant.z-other.z-object.z-key.z-js .z-string.z-unquoted.z-label.z-js {
|
||||||
|
color: #517c4e;
|
||||||
|
}
|
||||||
|
.z-entity.z-name.z-class, .z-entity.z-name.z-type.z-class, .z-support.z-type, .z-support.z-class, .z-support.z-orther.z-namespace.z-use.z-php, .z-meta.z-use.z-php, .z-support.z-other.z-namespace.z-php, .z-markup.z-changed.z-git_gutter {
|
||||||
|
color: #926c00;
|
||||||
|
}
|
||||||
|
.z-entity.z-name.z-module.z-js, .z-variable.z-import.z-parameter.z-js, .z-variable.z-other.z-class.z-js {
|
||||||
|
color: #cb414d;
|
||||||
|
}
|
||||||
|
.z-variable.z-language {
|
||||||
|
color: #cb414d;
|
||||||
|
}
|
||||||
|
.z-entity.z-name.z-method.z-js {
|
||||||
|
color: #6c727c;
|
||||||
|
}
|
||||||
|
.z-meta.z-class-method.z-js .z-entity.z-name.z-function.z-js, .z-variable.z-function.z-constructor {
|
||||||
|
color: #6c727c;
|
||||||
|
}
|
||||||
|
.z-entity.z-other.z-attribute-name {
|
||||||
|
color: #996091;
|
||||||
|
}
|
||||||
|
.z-markup.z-inserted {
|
||||||
|
color: #517c4e;
|
||||||
|
}
|
||||||
|
.z-markup.z-deleted {
|
||||||
|
color: #cb414d;
|
||||||
|
}
|
||||||
|
.z-markup.z-changed {
|
||||||
|
color: #996091;
|
||||||
|
}
|
||||||
|
.z-string.z-regexp {
|
||||||
|
color: #237e7f;
|
||||||
|
}
|
||||||
|
.z-constant.z-character.z-escape {
|
||||||
|
color: #237e7f;
|
||||||
|
}
|
||||||
|
.z-*url*, .z-*link*, .z-*uri* {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
.z-constant.z-numeric.z-line-number.z-find-in-files {
|
||||||
|
color: #976756;
|
||||||
|
}
|
||||||
|
.z-entity.z-name.z-filename.z-find-in-files {
|
||||||
|
color: #517c4e;
|
||||||
|
}
|
||||||
|
.z-tag.z-decorator.z-js .z-entity.z-name.z-tag.z-js, .z-tag.z-decorator.z-js .z-punctuation.z-definition.z-tag.z-js {
|
||||||
|
color: #4076a7;
|
||||||
|
}
|
||||||
|
.z-source.z-js .z-constant.z-other.z-object.z-key.z-js .z-string.z-unquoted.z-label.z-js {
|
||||||
|
color: #cb414d;
|
||||||
|
}
|
||||||
|
}
|
551
docs/themes/norgbackup/sass/_syntax.scss
vendored
Normal file
551
docs/themes/norgbackup/sass/_syntax.scss
vendored
Normal file
|
@ -0,0 +1,551 @@
|
||||||
|
@mixin dark {
|
||||||
|
.z-code {
|
||||||
|
color: #bfbab0;
|
||||||
|
background-color: #191919;
|
||||||
|
}
|
||||||
|
.z-comment, .z-punctuation.z-definition.z-comment {
|
||||||
|
color: #87929f;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.z-variable {
|
||||||
|
color: #bfbab0;
|
||||||
|
}
|
||||||
|
.z-string, .z-constant.z-other.z-symbol {
|
||||||
|
color: #c2d94c;
|
||||||
|
}
|
||||||
|
.z-constant.z-numeric {
|
||||||
|
color: #f29718;
|
||||||
|
}
|
||||||
|
.z-string.z-regexp, .z-constant.z-character.z-escape {
|
||||||
|
color: #95e6cb;
|
||||||
|
}
|
||||||
|
.z-constant.z-language {
|
||||||
|
color: #f29718;
|
||||||
|
}
|
||||||
|
.z-constant.z-character, .z-constant.z-other {
|
||||||
|
color: #f29718;
|
||||||
|
}
|
||||||
|
.z-variable.z-member {
|
||||||
|
color: #fe7d83;
|
||||||
|
}
|
||||||
|
.z-keyword, .z-keyword.z-operator.z-word {
|
||||||
|
color: #00bbff;
|
||||||
|
}
|
||||||
|
.z-keyword.z-operator {
|
||||||
|
color: #f29668;
|
||||||
|
}
|
||||||
|
.z-punctuation.z-separator, .z-punctuation.z-terminator {
|
||||||
|
color: #bfbab0;
|
||||||
|
}
|
||||||
|
.z-punctuation.z-section {
|
||||||
|
color: #bfbab0;
|
||||||
|
}
|
||||||
|
.z-punctuation.z-accessor {
|
||||||
|
color: #f29668;
|
||||||
|
}
|
||||||
|
.z-punctuation.z-definition.z-annotation {
|
||||||
|
color: #bfbab0;
|
||||||
|
}
|
||||||
|
.z-variable.z-other.z-dollar.z-only.z-js, .z-variable.z-other.z-object.z-dollar.z-only.z-js, .z-variable.z-type.z-dollar.z-only.z-js, .z-support.z-class.z-dollar.z-only.z-js {
|
||||||
|
color: #e6b673;
|
||||||
|
}
|
||||||
|
.z-storage {
|
||||||
|
color: #00bbff;
|
||||||
|
}
|
||||||
|
.z-storage.z-type {
|
||||||
|
color: #00bbff;
|
||||||
|
}
|
||||||
|
.z-entity.z-name.z-function {
|
||||||
|
color: #ffb454;
|
||||||
|
}
|
||||||
|
.z-entity.z-name, .z-entity.z-name.z-tag, .z-entity.z-name.z-label {
|
||||||
|
color: #59c2ff;
|
||||||
|
}
|
||||||
|
.z-entity.z-other.z-inherited-class {
|
||||||
|
color: #59c2ff;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
.z-variable.z-parameter {
|
||||||
|
color: #f29718;
|
||||||
|
}
|
||||||
|
.z-variable.z-language {
|
||||||
|
color: #39bae6;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.z-entity.z-name.z-tag, .z-meta.z-tag.z-sgml {
|
||||||
|
color: #39bae6;
|
||||||
|
}
|
||||||
|
.z-punctuation.z-definition.z-tag.z-end, .z-punctuation.z-definition.z-tag.z-begin, .z-punctuation.z-definition.z-tag {
|
||||||
|
color: #39bae6;
|
||||||
|
}
|
||||||
|
.z-entity.z-other.z-attribute-name {
|
||||||
|
color: #ffb454;
|
||||||
|
}
|
||||||
|
.z-variable.z-function, .z-variable.z-annotation {
|
||||||
|
color: #ffb454;
|
||||||
|
}
|
||||||
|
.z-support.z-function, .z-support.z-macro {
|
||||||
|
color: #fe7d83;
|
||||||
|
}
|
||||||
|
.z-support.z-constant {
|
||||||
|
color: #f29668;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.z-support.z-type, .z-support.z-class {
|
||||||
|
color: #39bae6;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.z-invalid {
|
||||||
|
color: #ff7c6d;
|
||||||
|
}
|
||||||
|
.z-invalid.z-deprecated {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #00bbff;
|
||||||
|
}
|
||||||
|
.z-meta.z-diff, .z-meta.z-diff.z-header {
|
||||||
|
color: #c594c5;
|
||||||
|
}
|
||||||
|
.z-source.z-ruby .z-variable.z-other.z-readwrite {
|
||||||
|
color: #ffb454;
|
||||||
|
}
|
||||||
|
.z-source.z-css .z-entity.z-name.z-tag, .z-source.z-sass .z-entity.z-name.z-tag, .z-source.z-scss .z-entity.z-name.z-tag, .z-source.z-less .z-entity.z-name.z-tag, .z-source.z-stylus .z-entity.z-name.z-tag {
|
||||||
|
color: #59c2ff;
|
||||||
|
}
|
||||||
|
.z-source.z-css .z-support.z-type, .z-source.z-sass .z-support.z-type, .z-source.z-scss .z-support.z-type, .z-source.z-less .z-support.z-type, .z-source.z-stylus .z-support.z-type {
|
||||||
|
color: #798491;
|
||||||
|
}
|
||||||
|
.z-support.z-type.z-property-name {
|
||||||
|
color: #39bae6;
|
||||||
|
}
|
||||||
|
.z-constant.z-numeric.z-line-number.z-find-in-files {
|
||||||
|
color: #798491;
|
||||||
|
}
|
||||||
|
.z-constant.z-numeric.z-line-number.z-match {
|
||||||
|
color: #00bbff;
|
||||||
|
}
|
||||||
|
.z-entity.z-name.z-filename.z-find-in-files {
|
||||||
|
color: #c2d94c;
|
||||||
|
}
|
||||||
|
.z-message.z-error {
|
||||||
|
color: #ff7c6d;
|
||||||
|
}
|
||||||
|
.z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json, .z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-punctuation.z-definition.z-string {
|
||||||
|
color: #39bae6;
|
||||||
|
}
|
||||||
|
.z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json, .z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-punctuation.z-definition.z-string {
|
||||||
|
color: #39bae6;
|
||||||
|
}
|
||||||
|
.z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json, .z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-punctuation.z-definition.z-string {
|
||||||
|
color: #39bae6;
|
||||||
|
}
|
||||||
|
.z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json, .z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-punctuation.z-definition.z-string {
|
||||||
|
color: #39bae6;
|
||||||
|
}
|
||||||
|
.z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json, .z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-punctuation.z-definition.z-string {
|
||||||
|
color: #39bae6;
|
||||||
|
}
|
||||||
|
.z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json, .z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-punctuation.z-definition.z-string {
|
||||||
|
color: #39bae6;
|
||||||
|
}
|
||||||
|
.z-source.z-json .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json, .z-source.z-json .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-punctuation.z-definition.z-string {
|
||||||
|
color: #39bae6;
|
||||||
|
}
|
||||||
|
.z-source.z-json .z-meta .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json, .z-source.z-json .z-meta .z-meta.z-structure.z-dictionary.z-json .z-punctuation.z-definition.z-string {
|
||||||
|
color: #39bae6;
|
||||||
|
}
|
||||||
|
.z-source.z-json .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json, .z-source.z-json .z-meta.z-structure.z-dictionary.z-json .z-punctuation.z-definition.z-string {
|
||||||
|
color: #39bae6;
|
||||||
|
}
|
||||||
|
.z-markup.z-heading {
|
||||||
|
color: #00bbff;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.z-string.z-other.z-link, .z-markup.z-underline.z-link {
|
||||||
|
color: #95e6cb;
|
||||||
|
text-decoration: underline;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.z-punctuation.z-definition.z-image {
|
||||||
|
color: #ffb454;
|
||||||
|
}
|
||||||
|
.z-markup.z-italic {
|
||||||
|
color: #fe7d83;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.z-markup.z-bold {
|
||||||
|
color: #fe7d83;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.z-markup.z-italic .z-markup.z-bold, .z-markup.z-bold .z-markup.z-italic {
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.z-markup.z-raw {
|
||||||
|
background-color: #bfbab0;
|
||||||
|
}
|
||||||
|
.z-markup.z-raw.z-inline {
|
||||||
|
background-color: #bfbab0;
|
||||||
|
}
|
||||||
|
.z-meta.z-separator {
|
||||||
|
color: #798491;
|
||||||
|
background-color: #bfbab0;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.z-markup.z-quote {
|
||||||
|
color: #f29718;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.z-markup.z-list.z-numbered.z-bullet, .z-markup.z-list .z-punctuation.z-definition.z-list_item {
|
||||||
|
color: #95e6cb;
|
||||||
|
}
|
||||||
|
.z-markup.z-inserted {
|
||||||
|
color: #c2d94c;
|
||||||
|
}
|
||||||
|
.z-markup.z-changed {
|
||||||
|
color: #39bae6;
|
||||||
|
}
|
||||||
|
.z-markup.z-deleted {
|
||||||
|
color: #fe7d83;
|
||||||
|
}
|
||||||
|
.z-markup.z-strike {
|
||||||
|
color: #e6b673;
|
||||||
|
}
|
||||||
|
.z-markup.z-table {
|
||||||
|
color: #39bae6;
|
||||||
|
background-color: #bfbab0;
|
||||||
|
}
|
||||||
|
.z-text.z-html.z-markdown .z-markup.z-raw.z-inline {
|
||||||
|
color: #f29668;
|
||||||
|
}
|
||||||
|
.z-text.z-html.z-markdown .z-meta.z-dummy.z-line-break {
|
||||||
|
color: #798491;
|
||||||
|
}
|
||||||
|
.z-markup.z-raw.z-block.z-fenced.z-markdown {
|
||||||
|
color: #bfbab0;
|
||||||
|
background-color: #bfbab0;
|
||||||
|
}
|
||||||
|
.z-punctuation.z-definition.z-fenced.z-markdown, .z-variable.z-language.z-fenced.z-markdown {
|
||||||
|
color: #798491;
|
||||||
|
background-color: #bfbab0;
|
||||||
|
}
|
||||||
|
.z-variable.z-language.z-fenced.z-markdown {
|
||||||
|
color: #798491;
|
||||||
|
}
|
||||||
|
.z-markup.z-inserted.z-git_gutter {
|
||||||
|
color: #c2d94c;
|
||||||
|
}
|
||||||
|
.z-markup.z-changed.z-git_gutter {
|
||||||
|
color: #39bae6;
|
||||||
|
}
|
||||||
|
.z-markup.z-deleted.z-git_gutter {
|
||||||
|
color: #ff7c6d;
|
||||||
|
}
|
||||||
|
.z-markup.z-ignored.z-git_gutter {
|
||||||
|
color: #20272c;
|
||||||
|
}
|
||||||
|
.z-markup.z-untracked.z-git_gutter {
|
||||||
|
color: #20272c;
|
||||||
|
}
|
||||||
|
.z-gutter_color {
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
.z-acejump.z-label.z-blue {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #39bae6;
|
||||||
|
}
|
||||||
|
.z-acejump.z-label.z-green {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #c2d94c;
|
||||||
|
}
|
||||||
|
.z-acejump.z-label.z-orange {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #00bbff;
|
||||||
|
}
|
||||||
|
.z-acejump.z-label.z-purple {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #fe7d83;
|
||||||
|
}
|
||||||
|
.z-sublimelinter.z-mark.z-warning {
|
||||||
|
color: #39bae6;
|
||||||
|
}
|
||||||
|
.z-sublimelinter.z-gutter-mark {
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
.z-sublimelinter.z-mark.z-error {
|
||||||
|
color: #ff7c6d;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@mixin light {
|
||||||
|
.z-code {
|
||||||
|
color: #50565a;
|
||||||
|
background-color: #fafafa;
|
||||||
|
}
|
||||||
|
.z-comment, .z-punctuation.z-definition.z-comment {
|
||||||
|
color: #676c72;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.z-variable {
|
||||||
|
color: #50565a;
|
||||||
|
}
|
||||||
|
.z-string, .z-constant.z-other.z-symbol {
|
||||||
|
color: #497700;
|
||||||
|
}
|
||||||
|
.z-constant.z-numeric {
|
||||||
|
color: #b04e00;
|
||||||
|
}
|
||||||
|
.z-string.z-regexp, .z-constant.z-character.z-escape {
|
||||||
|
color: #007b59;
|
||||||
|
}
|
||||||
|
.z-constant.z-language {
|
||||||
|
color: #b04e00;
|
||||||
|
}
|
||||||
|
.z-constant.z-character, .z-constant.z-other {
|
||||||
|
color: #b04e00;
|
||||||
|
}
|
||||||
|
.z-variable.z-member {
|
||||||
|
color: #c33947;
|
||||||
|
}
|
||||||
|
.z-keyword, .z-keyword.z-operator.z-word {
|
||||||
|
color: #0062e8;
|
||||||
|
}
|
||||||
|
.z-keyword.z-operator {
|
||||||
|
color: #a4552c;
|
||||||
|
}
|
||||||
|
.z-punctuation.z-separator, .z-punctuation.z-terminator {
|
||||||
|
color: #50565a;
|
||||||
|
}
|
||||||
|
.z-punctuation.z-section {
|
||||||
|
color: #50565a;
|
||||||
|
}
|
||||||
|
.z-punctuation.z-accessor {
|
||||||
|
color: #a4552c;
|
||||||
|
}
|
||||||
|
.z-punctuation.z-definition.z-annotation {
|
||||||
|
color: #50565a;
|
||||||
|
}
|
||||||
|
.z-variable.z-other.z-dollar.z-only.z-js, .z-variable.z-other.z-object.z-dollar.z-only.z-js, .z-variable.z-type.z-dollar.z-only.z-js, .z-support.z-class.z-dollar.z-only.z-js {
|
||||||
|
color: #8b6426;
|
||||||
|
}
|
||||||
|
.z-storage {
|
||||||
|
color: #0062e8;
|
||||||
|
}
|
||||||
|
.z-storage.z-type {
|
||||||
|
color: #0062e8;
|
||||||
|
}
|
||||||
|
.z-entity.z-name.z-function {
|
||||||
|
color: #a45600;
|
||||||
|
}
|
||||||
|
.z-entity.z-name, .z-entity.z-name.z-tag, .z-entity.z-name.z-label {
|
||||||
|
color: #0070b3;
|
||||||
|
}
|
||||||
|
.z-entity.z-other.z-inherited-class {
|
||||||
|
color: #0070b3;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
.z-variable.z-parameter {
|
||||||
|
color: #b04e00;
|
||||||
|
}
|
||||||
|
.z-variable.z-language {
|
||||||
|
color: #007492;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.z-entity.z-name.z-tag, .z-meta.z-tag.z-sgml {
|
||||||
|
color: #007492;
|
||||||
|
}
|
||||||
|
.z-punctuation.z-definition.z-tag.z-end, .z-punctuation.z-definition.z-tag.z-begin, .z-punctuation.z-definition.z-tag {
|
||||||
|
color: #007492;
|
||||||
|
}
|
||||||
|
.z-entity.z-other.z-attribute-name {
|
||||||
|
color: #a45600;
|
||||||
|
}
|
||||||
|
.z-variable.z-function, .z-variable.z-annotation {
|
||||||
|
color: #a45600;
|
||||||
|
}
|
||||||
|
.z-support.z-function, .z-support.z-macro {
|
||||||
|
color: #b94046;
|
||||||
|
}
|
||||||
|
.z-support.z-constant {
|
||||||
|
color: #a4552c;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.z-support.z-type, .z-support.z-class {
|
||||||
|
color: #007492;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.z-invalid {
|
||||||
|
color: #da0001;
|
||||||
|
}
|
||||||
|
.z-invalid.z-deprecated {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #0062e8;
|
||||||
|
}
|
||||||
|
.z-source.z-ruby .z-variable.z-other.z-readwrite {
|
||||||
|
color: #a45600;
|
||||||
|
}
|
||||||
|
.z-source.z-css .z-entity.z-name.z-tag, .z-source.z-sass .z-entity.z-name.z-tag, .z-source.z-scss .z-entity.z-name.z-tag, .z-source.z-less .z-entity.z-name.z-tag, .z-source.z-stylus .z-entity.z-name.z-tag {
|
||||||
|
color: #0070b3;
|
||||||
|
}
|
||||||
|
.z-source.z-css .z-support.z-type, .z-source.z-sass .z-support.z-type, .z-source.z-scss .z-support.z-type, .z-source.z-less .z-support.z-type, .z-source.z-stylus .z-support.z-type {
|
||||||
|
color: #676c72;
|
||||||
|
}
|
||||||
|
.z-support.z-type.z-property-name {
|
||||||
|
color: #007492;
|
||||||
|
}
|
||||||
|
.z-constant.z-numeric.z-line-number.z-find-in-files {
|
||||||
|
color: #676c72;
|
||||||
|
}
|
||||||
|
.z-constant.z-numeric.z-line-number.z-match {
|
||||||
|
color: #0062e8;
|
||||||
|
}
|
||||||
|
.z-entity.z-name.z-filename.z-find-in-files {
|
||||||
|
color: #497700;
|
||||||
|
}
|
||||||
|
.z-message.z-error {
|
||||||
|
color: #da0001;
|
||||||
|
}
|
||||||
|
.z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json, .z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-punctuation.z-definition.z-string {
|
||||||
|
color: #007492;
|
||||||
|
}
|
||||||
|
.z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json, .z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-punctuation.z-definition.z-string {
|
||||||
|
color: #007492;
|
||||||
|
}
|
||||||
|
.z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json, .z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-punctuation.z-definition.z-string {
|
||||||
|
color: #007492;
|
||||||
|
}
|
||||||
|
.z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json, .z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-punctuation.z-definition.z-string {
|
||||||
|
color: #007492;
|
||||||
|
}
|
||||||
|
.z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json, .z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-punctuation.z-definition.z-string {
|
||||||
|
color: #007492;
|
||||||
|
}
|
||||||
|
.z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json, .z-source.z-json .z-meta .z-meta .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-punctuation.z-definition.z-string {
|
||||||
|
color: #007492;
|
||||||
|
}
|
||||||
|
.z-source.z-json .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json, .z-source.z-json .z-meta .z-meta .z-meta .z-meta.z-structure.z-dictionary.z-json .z-punctuation.z-definition.z-string {
|
||||||
|
color: #007492;
|
||||||
|
}
|
||||||
|
.z-source.z-json .z-meta .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json, .z-source.z-json .z-meta .z-meta.z-structure.z-dictionary.z-json .z-punctuation.z-definition.z-string {
|
||||||
|
color: #007492;
|
||||||
|
}
|
||||||
|
.z-source.z-json .z-meta.z-structure.z-dictionary.z-json .z-string.z-quoted.z-double.z-json, .z-source.z-json .z-meta.z-structure.z-dictionary.z-json .z-punctuation.z-definition.z-string {
|
||||||
|
color: #007492;
|
||||||
|
}
|
||||||
|
.z-markup.z-heading {
|
||||||
|
color: #0062e8;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.z-string.z-other.z-link, .z-markup.z-underline.z-link {
|
||||||
|
color: #007b59;
|
||||||
|
text-decoration: underline;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.z-punctuation.z-definition.z-image {
|
||||||
|
color: #a45600;
|
||||||
|
}
|
||||||
|
.z-markup.z-italic {
|
||||||
|
color: #b94046;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.z-markup.z-bold {
|
||||||
|
color: #b94046;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.z-markup.z-italic .z-markup.z-bold, .z-markup.z-bold .z-markup.z-italic {
|
||||||
|
font-weight: bold;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.z-markup.z-raw {
|
||||||
|
background-color: #50565a;
|
||||||
|
}
|
||||||
|
.z-markup.z-raw.z-inline {
|
||||||
|
background-color: #50565a;
|
||||||
|
}
|
||||||
|
.z-meta.z-separator {
|
||||||
|
color: #676c72;
|
||||||
|
background-color: #50565a;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.z-markup.z-quote {
|
||||||
|
color: #b04e00;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.z-markup.z-list.z-numbered.z-bullet, .z-markup.z-list .z-punctuation.z-definition.z-list_item {
|
||||||
|
color: #007b59;
|
||||||
|
}
|
||||||
|
.z-markup.z-inserted {
|
||||||
|
color: #497700;
|
||||||
|
}
|
||||||
|
.z-markup.z-changed {
|
||||||
|
color: #007492;
|
||||||
|
}
|
||||||
|
.z-markup.z-deleted {
|
||||||
|
color: #b94046;
|
||||||
|
}
|
||||||
|
.z-markup.z-strike {
|
||||||
|
color: #8b6426;
|
||||||
|
}
|
||||||
|
.z-markup.z-table {
|
||||||
|
color: #007492;
|
||||||
|
background-color: #50565a;
|
||||||
|
}
|
||||||
|
.z-text.z-html.z-markdown .z-markup.z-raw.z-inline {
|
||||||
|
color: #a4552c;
|
||||||
|
}
|
||||||
|
.z-text.z-html.z-markdown .z-meta.z-dummy.z-line-break {
|
||||||
|
color: #676c72;
|
||||||
|
}
|
||||||
|
.z-markup.z-raw.z-block.z-fenced.z-markdown {
|
||||||
|
color: #50565a;
|
||||||
|
background-color: #50565a;
|
||||||
|
}
|
||||||
|
.z-punctuation.z-definition.z-fenced.z-markdown, .z-variable.z-language.z-fenced.z-markdown {
|
||||||
|
color: #676c72;
|
||||||
|
background-color: #50565a;
|
||||||
|
}
|
||||||
|
.z-variable.z-language.z-fenced.z-markdown {
|
||||||
|
color: #676c72;
|
||||||
|
}
|
||||||
|
.z-markup.z-inserted.z-git_gutter {
|
||||||
|
color: #497700;
|
||||||
|
}
|
||||||
|
.z-markup.z-changed.z-git_gutter {
|
||||||
|
color: #007492;
|
||||||
|
}
|
||||||
|
.z-markup.z-deleted.z-git_gutter {
|
||||||
|
color: #da0001;
|
||||||
|
}
|
||||||
|
.z-markup.z-ignored.z-git_gutter {
|
||||||
|
color: #696b6c;
|
||||||
|
}
|
||||||
|
.z-markup.z-untracked.z-git_gutter {
|
||||||
|
color: #696b6c;
|
||||||
|
}
|
||||||
|
.z-gutter_color {
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
.z-acejump.z-label.z-blue {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #007492;
|
||||||
|
}
|
||||||
|
.z-acejump.z-label.z-green {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #497700;
|
||||||
|
}
|
||||||
|
.z-acejump.z-label.z-orange {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #0062e8;
|
||||||
|
}
|
||||||
|
.z-acejump.z-label.z-purple {
|
||||||
|
color: #ffffff;
|
||||||
|
background-color: #b94046;
|
||||||
|
}
|
||||||
|
.z-sublimelinter.z-mark.z-warning {
|
||||||
|
color: #007492;
|
||||||
|
}
|
||||||
|
.z-sublimelinter.z-gutter-mark {
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
.z-sublimelinter.z-mark.z-error {
|
||||||
|
color: #da0001;
|
||||||
|
}
|
||||||
|
}
|
13
docs/themes/norgbackup/sass/_variables.scss
vendored
Normal file
13
docs/themes/norgbackup/sass/_variables.scss
vendored
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
@mixin min-screen($min-width: $body-width) {
|
||||||
|
@media screen and (min-width: $min-width) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin max-screen($max-width: $body-width) {
|
||||||
|
@media screen and (max-width: $max-width) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$sidebar-width: 300px;
|
12
docs/themes/norgbackup/sass/book.scss
vendored
Normal file
12
docs/themes/norgbackup/sass/book.scss
vendored
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
@charset "utf-8";
|
||||||
|
|
||||||
|
@use "normalize";
|
||||||
|
|
||||||
|
@use "variables";
|
||||||
|
@use "document";
|
||||||
|
@use "navigation";
|
||||||
|
@use "content";
|
||||||
|
@use "header";
|
||||||
|
|
||||||
|
@use "syntax" as syntax;
|
||||||
|
@include syntax.light;
|
BIN
docs/themes/norgbackup/screenshot.png
vendored
Normal file
BIN
docs/themes/norgbackup/screenshot.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 142 KiB |
223
docs/themes/norgbackup/static/book.js
vendored
Normal file
223
docs/themes/norgbackup/static/book.js
vendored
Normal file
|
@ -0,0 +1,223 @@
|
||||||
|
function initToggleMenu() {
|
||||||
|
var $menu = document.querySelector(".menu");
|
||||||
|
var $menuIcon = document.querySelector(".menu-icon");
|
||||||
|
var $page = document.querySelector(".page");
|
||||||
|
$menuIcon.addEventListener("click", function() {
|
||||||
|
$menu.classList.toggle("menu-hidden");
|
||||||
|
$page.classList.toggle("page-without-menu");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function debounce(func, wait) {
|
||||||
|
var timeout;
|
||||||
|
|
||||||
|
return function () {
|
||||||
|
var context = this;
|
||||||
|
var args = arguments;
|
||||||
|
clearTimeout(timeout);
|
||||||
|
|
||||||
|
timeout = setTimeout(function () {
|
||||||
|
timeout = null;
|
||||||
|
func.apply(context, args);
|
||||||
|
}, wait);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
// Taken from mdbook
|
||||||
|
// The strategy is as follows:
|
||||||
|
// First, assign a value to each word in the document:
|
||||||
|
// Words that correspond to search terms (stemmer aware): 40
|
||||||
|
// Normal words: 2
|
||||||
|
// First word in a sentence: 8
|
||||||
|
// Then use a sliding window with a constant number of words and count the
|
||||||
|
// sum of the values of the words within the window. Then use the window that got the
|
||||||
|
// maximum sum. If there are multiple maximas, then get the last one.
|
||||||
|
// Enclose the terms in <b>.
|
||||||
|
function makeTeaser(body, terms) {
|
||||||
|
var TERM_WEIGHT = 40;
|
||||||
|
var NORMAL_WORD_WEIGHT = 2;
|
||||||
|
var FIRST_WORD_WEIGHT = 8;
|
||||||
|
var TEASER_MAX_WORDS = 30;
|
||||||
|
|
||||||
|
var stemmedTerms = terms.map(function (w) {
|
||||||
|
return elasticlunr.stemmer(w.toLowerCase());
|
||||||
|
});
|
||||||
|
var termFound = false;
|
||||||
|
var index = 0;
|
||||||
|
var weighted = []; // contains elements of ["word", weight, index_in_document]
|
||||||
|
|
||||||
|
// split in sentences, then words
|
||||||
|
var sentences = body.toLowerCase().split(". ");
|
||||||
|
|
||||||
|
for (var i in sentences) {
|
||||||
|
var words = sentences[i].split(" ");
|
||||||
|
var value = FIRST_WORD_WEIGHT;
|
||||||
|
|
||||||
|
for (var j in words) {
|
||||||
|
var word = words[j];
|
||||||
|
|
||||||
|
if (word.length > 0) {
|
||||||
|
for (var k in stemmedTerms) {
|
||||||
|
if (elasticlunr.stemmer(word).startsWith(stemmedTerms[k])) {
|
||||||
|
value = TERM_WEIGHT;
|
||||||
|
termFound = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
weighted.push([word, value, index]);
|
||||||
|
value = NORMAL_WORD_WEIGHT;
|
||||||
|
}
|
||||||
|
|
||||||
|
index += word.length;
|
||||||
|
index += 1; // ' ' or '.' if last word in sentence
|
||||||
|
}
|
||||||
|
|
||||||
|
index += 1; // because we split at a two-char boundary '. '
|
||||||
|
}
|
||||||
|
|
||||||
|
if (weighted.length === 0) {
|
||||||
|
return body;
|
||||||
|
}
|
||||||
|
|
||||||
|
var windowWeights = [];
|
||||||
|
var windowSize = Math.min(weighted.length, TEASER_MAX_WORDS);
|
||||||
|
// We add a window with all the weights first
|
||||||
|
var curSum = 0;
|
||||||
|
for (var i = 0; i < windowSize; i++) {
|
||||||
|
curSum += weighted[i][1];
|
||||||
|
}
|
||||||
|
windowWeights.push(curSum);
|
||||||
|
|
||||||
|
for (var i = 0; i < weighted.length - windowSize; i++) {
|
||||||
|
curSum -= weighted[i][1];
|
||||||
|
curSum += weighted[i + windowSize][1];
|
||||||
|
windowWeights.push(curSum);
|
||||||
|
}
|
||||||
|
|
||||||
|
// If we didn't find the term, just pick the first window
|
||||||
|
var maxSumIndex = 0;
|
||||||
|
if (termFound) {
|
||||||
|
var maxFound = 0;
|
||||||
|
// backwards
|
||||||
|
for (var i = windowWeights.length - 1; i >= 0; i--) {
|
||||||
|
if (windowWeights[i] > maxFound) {
|
||||||
|
maxFound = windowWeights[i];
|
||||||
|
maxSumIndex = i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var teaser = [];
|
||||||
|
var startIndex = weighted[maxSumIndex][2];
|
||||||
|
for (var i = maxSumIndex; i < maxSumIndex + windowSize; i++) {
|
||||||
|
var word = weighted[i];
|
||||||
|
if (startIndex < word[2]) {
|
||||||
|
// missing text from index to start of `word`
|
||||||
|
teaser.push(body.substring(startIndex, word[2]));
|
||||||
|
startIndex = word[2];
|
||||||
|
}
|
||||||
|
|
||||||
|
// add <em/> around search terms
|
||||||
|
if (word[1] === TERM_WEIGHT) {
|
||||||
|
teaser.push("<b>");
|
||||||
|
}
|
||||||
|
startIndex = word[2] + word[0].length;
|
||||||
|
teaser.push(body.substring(word[2], startIndex));
|
||||||
|
|
||||||
|
if (word[1] === TERM_WEIGHT) {
|
||||||
|
teaser.push("</b>");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
teaser.push("…");
|
||||||
|
return teaser.join("");
|
||||||
|
}
|
||||||
|
|
||||||
|
function formatSearchResultItem(item, terms) {
|
||||||
|
var li = document.createElement("li");
|
||||||
|
li.classList.add("search-results__item");
|
||||||
|
li.innerHTML = `<a href="${item.ref}">${item.doc.title}</a>`;
|
||||||
|
li.innerHTML += `<div class="search-results__teaser">${makeTeaser(item.doc.body, terms)}</div>`;
|
||||||
|
return li;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Go from the book view to the search view
|
||||||
|
function toggleSearchMode() {
|
||||||
|
var $bookContent = document.querySelector(".book-content");
|
||||||
|
var $searchContainer = document.querySelector(".search-container");
|
||||||
|
if ($searchContainer.classList.contains("search-container--is-visible")) {
|
||||||
|
$searchContainer.classList.remove("search-container--is-visible");
|
||||||
|
document.body.classList.remove("search-mode");
|
||||||
|
$bookContent.style.display = "block";
|
||||||
|
} else {
|
||||||
|
$searchContainer.classList.add("search-container--is-visible");
|
||||||
|
document.body.classList.add("search-mode");
|
||||||
|
$bookContent.style.display = "none";
|
||||||
|
document.getElementById("search").focus();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function initSearch() {
|
||||||
|
var $searchInput = document.getElementById("search");
|
||||||
|
if (!$searchInput) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var $searchIcon = document.querySelector(".search-icon");
|
||||||
|
$searchIcon.addEventListener("click", toggleSearchMode);
|
||||||
|
|
||||||
|
var $searchResults = document.querySelector(".search-results");
|
||||||
|
var $searchResultsHeader = document.querySelector(".search-results__header");
|
||||||
|
var $searchResultsItems = document.querySelector(".search-results__items");
|
||||||
|
var MAX_ITEMS = 10;
|
||||||
|
|
||||||
|
var options = {
|
||||||
|
bool: "AND",
|
||||||
|
fields: {
|
||||||
|
title: {boost: 2},
|
||||||
|
body: {boost: 1},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var currentTerm = "";
|
||||||
|
var index = elasticlunr.Index.load(window.searchIndex);
|
||||||
|
|
||||||
|
$searchInput.addEventListener("keyup", debounce(function() {
|
||||||
|
var term = $searchInput.value.trim();
|
||||||
|
if (term === currentTerm || !index) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$searchResults.style.display = term === "" ? "none" : "block";
|
||||||
|
$searchResultsItems.innerHTML = "";
|
||||||
|
if (term === "") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var results = index.search(term, options).filter(function (r) {
|
||||||
|
return r.doc.body !== "";
|
||||||
|
});
|
||||||
|
if (results.length === 0) {
|
||||||
|
$searchResultsHeader.innerText = `No search results for '${term}'.`;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
currentTerm = term;
|
||||||
|
$searchResultsHeader.innerText = `${results.length} search results for '${term}':`;
|
||||||
|
for (var i = 0; i < Math.min(results.length, MAX_ITEMS); i++) {
|
||||||
|
if (!results[i].doc.body) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
// var item = document.createElement("li");
|
||||||
|
// item.innerHTML = formatSearchResultItem(results[i], term.split(" "));
|
||||||
|
console.log(results[i]);
|
||||||
|
$searchResultsItems.appendChild(formatSearchResultItem(results[i], term.split(" ")));
|
||||||
|
}
|
||||||
|
}, 150));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.readyState === "complete" ||
|
||||||
|
(document.readyState !== "loading" && !document.documentElement.doScroll)
|
||||||
|
) {
|
||||||
|
initToggleMenu();
|
||||||
|
} else {
|
||||||
|
document.addEventListener("DOMContentLoaded", function () {
|
||||||
|
initToggleMenu();
|
||||||
|
initSearch();
|
||||||
|
});
|
||||||
|
}
|
121
docs/themes/norgbackup/templates/index.html
vendored
Normal file
121
docs/themes/norgbackup/templates/index.html
vendored
Normal file
|
@ -0,0 +1,121 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||||
|
|
||||||
|
<!-- Enable responsiveness on mobile devices-->
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
{% if page %}
|
||||||
|
{% if page.description %}
|
||||||
|
<meta name="description" content="{{ page.description }}" />
|
||||||
|
{% elif config.description %}
|
||||||
|
<meta name="description" content="{{ config.description }}" />
|
||||||
|
{% endif %}
|
||||||
|
{% elif config.description %}
|
||||||
|
<meta name="description" content="{{ config.description }}" />
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
|
||||||
|
|
||||||
|
{% block js %}
|
||||||
|
{% endblock js %}
|
||||||
|
|
||||||
|
<!-- CSS -->
|
||||||
|
{% block css %}
|
||||||
|
<link rel="stylesheet" href="{{ get_url(path="book.css") | safe }}">
|
||||||
|
{% endblock css %}
|
||||||
|
|
||||||
|
{% block extra_head %}
|
||||||
|
{% endblock extra_head %}
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<header>
|
||||||
|
<h1><a href="/">{{ config.title }}</a> <sub>{{ config.description }}</sub></h1>
|
||||||
|
</header>
|
||||||
|
<div class="menu">
|
||||||
|
{% block before_menu %}
|
||||||
|
{% endblock before_menu %}
|
||||||
|
<nav role="navigation">
|
||||||
|
<ul>
|
||||||
|
{% block menu %}
|
||||||
|
{% set index = get_section(path="_index.md") %}
|
||||||
|
{% for s in index.subsections %}
|
||||||
|
{% set subsection = get_section(path=s) %}
|
||||||
|
<li {% if current_path == subsection.path %}class="active"{% endif %}>
|
||||||
|
{% set chapter_num = loop.index %}
|
||||||
|
<a href="{{ subsection.permalink | safe }}">
|
||||||
|
{% if config.extra.book_number_chapters %}<strong>{{ chapter_num }}.</strong>{% endif %}
|
||||||
|
{{ subsection.title }}
|
||||||
|
</a>
|
||||||
|
{% if subsection.pages %}
|
||||||
|
<ul>
|
||||||
|
{% for page in subsection.pages %}
|
||||||
|
<li {% if current_path == page.path %}class="active"{% endif %}>
|
||||||
|
<a href="{{ page.permalink | safe }}">
|
||||||
|
{% if config.extra.book_number_chapters %}<strong>{{ chapter_num }}.{{ loop.index }}.</strong>{% endif %}
|
||||||
|
{{ page.title }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
{% endblock menu %}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
{% block after_menu %}
|
||||||
|
{% endblock after_menu %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="page">
|
||||||
|
<div class="page__header">
|
||||||
|
<div class="menu-icon">
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
</div>
|
||||||
|
{% if config.build_search_index %}
|
||||||
|
<span class="search-icon">🔎</span>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="page__content">
|
||||||
|
{% if config.build_search_index %}
|
||||||
|
<div class="search-container">
|
||||||
|
<input id="search" type="search" placeholder="Search..">
|
||||||
|
<div class="search-results">
|
||||||
|
<div class="search-results__header"></div>
|
||||||
|
<ul class="search-results__items"></ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
<div class="book-content">
|
||||||
|
{% block content %}
|
||||||
|
{% endblock content %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="prev-link">
|
||||||
|
{% block prev_link %}
|
||||||
|
{% endblock prev_link %}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="next-link">
|
||||||
|
{% block next_link %}
|
||||||
|
{% endblock next_link %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% block js_body %}
|
||||||
|
{% if config.build_search_index %}
|
||||||
|
<script type="text/javascript" src="{{ get_url(path="elasticlunr.min.js") | safe }}"></script>
|
||||||
|
<script type="text/javascript" src="{{ get_url(path="search_index.en.js") | safe }}"></script>
|
||||||
|
{% endif %}
|
||||||
|
<script type="text/javascript" src="{{ get_url(path="book.js") | safe }}"></script>
|
||||||
|
{% endblock js_body %}
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
40
docs/themes/norgbackup/templates/page.html
vendored
Normal file
40
docs/themes/norgbackup/templates/page.html
vendored
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
{% extends "index.html" %}
|
||||||
|
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<h1>{{ page.title }}</h1>
|
||||||
|
{{ page.content | safe }}
|
||||||
|
{% endblock content %}
|
||||||
|
|
||||||
|
{% block prev_link %}
|
||||||
|
{% if page.smaller %}
|
||||||
|
<a class="previous" href="{{ page.smaller.permalink | safe }}"><</a>
|
||||||
|
{% else %}
|
||||||
|
{# No page before, find the link for the section it's in if there is one #}
|
||||||
|
{% set parent = get_section(path=page.ancestors | reverse | first) %}
|
||||||
|
<a class="previous" href="{{ parent.permalink | safe }}"><</a>
|
||||||
|
{% endif %}
|
||||||
|
{% endblock prev_link %}
|
||||||
|
|
||||||
|
{% block next_link %}
|
||||||
|
{% if page.higher %}
|
||||||
|
<a class="next" href="{{ page.higher.permalink | safe }}">></a>
|
||||||
|
{% else %}
|
||||||
|
{# No page after, find the link for the following section #}
|
||||||
|
{% set index = get_section(path="_index.md") %}
|
||||||
|
{% set found_current = false %}
|
||||||
|
{% for s in index.subsections %}
|
||||||
|
{% set subsection = get_section(path=s) %}
|
||||||
|
{% if found_current %}
|
||||||
|
<a class="next" href="{{ subsection.permalink | safe }}">></a>
|
||||||
|
{# no break #}
|
||||||
|
{% set_global found_current = false %}
|
||||||
|
{% endif %}
|
||||||
|
{% for p in subsection.pages %}
|
||||||
|
{% if p.permalink == page.permalink %}
|
||||||
|
{% set_global found_current = true %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% endblock next_link %}
|
52
docs/themes/norgbackup/templates/section.html
vendored
Normal file
52
docs/themes/norgbackup/templates/section.html
vendored
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
{% extends "index.html" %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<h1>{{ section.title }}</h1>
|
||||||
|
{{ section.content | safe }}
|
||||||
|
{% endblock content %}
|
||||||
|
|
||||||
|
{% block prev_link %}
|
||||||
|
{# need to find the last page of the previous section or the previous section directly
|
||||||
|
if there isn't any pages in it #}
|
||||||
|
{% set index = get_section(path="_index.md") %}
|
||||||
|
{% set found_current = false %}
|
||||||
|
{% for s in index.subsections | reverse %}
|
||||||
|
{% set subsection = get_section(path=s) %}
|
||||||
|
{% if subsection.permalink == section.permalink %}
|
||||||
|
{% set_global found_current = true %}
|
||||||
|
{% else %}
|
||||||
|
{% if found_current %}
|
||||||
|
{% if subsection.pages %}
|
||||||
|
{% set last_page = subsection.pages | last %}
|
||||||
|
<a class="previous" href="{{ last_page.permalink | safe }}"><</a>
|
||||||
|
{% else %}
|
||||||
|
<a class="previous" href="{{ subsection.permalink | safe }}"><</a>
|
||||||
|
{% endif %}
|
||||||
|
{# no break #}
|
||||||
|
{% set_global found_current = false %}
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endblock prev_link %}
|
||||||
|
|
||||||
|
{% block next_link %}
|
||||||
|
{% if section.pages %}
|
||||||
|
{% set next_page = section.pages | first %}
|
||||||
|
<a class="next" href="{{ next_page.permalink | safe }}">></a>
|
||||||
|
{% else %}
|
||||||
|
{# No page in the section, find the link for the following section #}
|
||||||
|
{% set index = get_section(path="_index.md") %}
|
||||||
|
{% set found_current = false %}
|
||||||
|
{% for s in index.subsections %}
|
||||||
|
{% set subsection = get_section(path=s) %}
|
||||||
|
{% if found_current %}
|
||||||
|
<a class="next" href="{{ subsection.permalink | safe }}">></a>
|
||||||
|
{# no break #}
|
||||||
|
{% set_global found_current = false %}
|
||||||
|
{% endif %}
|
||||||
|
{% if subsection.permalink == section.permalink %}
|
||||||
|
{% set_global found_current = true %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% endblock next_link %}
|
Loading…
Reference in a new issue