Updated documentation process
This commit is contained in:
@@ -36,13 +36,13 @@ jobs:
|
|||||||
|
|
||||||
- run: nix build .#docs
|
- run: nix build .#docs
|
||||||
|
|
||||||
- run: nix run .#hugo
|
- run: nix run .#pandoc
|
||||||
|
|
||||||
- name: Store hugo
|
- name: Store pandoc
|
||||||
uses: ./.github/actions/upload-artifact
|
uses: ./.github/actions/upload-artifact
|
||||||
with:
|
with:
|
||||||
name: hugo
|
name: pandoc
|
||||||
path: ./hugo/public
|
path: ./out
|
||||||
|
|
||||||
deploy-docs:
|
deploy-docs:
|
||||||
needs: generate-doc-options
|
needs: generate-doc-options
|
||||||
@@ -57,7 +57,7 @@ jobs:
|
|||||||
- name: Get nix build output
|
- name: Get nix build output
|
||||||
uses: ./.github/actions/download-artifact
|
uses: ./.github/actions/download-artifact
|
||||||
with:
|
with:
|
||||||
name: hugo
|
name: pandoc
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v3
|
uses: actions/configure-pages@v3
|
||||||
@@ -65,7 +65,7 @@ jobs:
|
|||||||
- name: Upload GH pages artifact
|
- name: Upload GH pages artifact
|
||||||
uses: actions/upload-pages-artifact@v1
|
uses: actions/upload-pages-artifact@v1
|
||||||
with:
|
with:
|
||||||
path: './hugo/public'
|
path: './out'
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
|
|||||||
+1
-2
@@ -1,3 +1,2 @@
|
|||||||
result
|
result
|
||||||
hugo/public
|
out
|
||||||
hugo/content/index.md
|
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
|
|
||||||
packages = {
|
packages = {
|
||||||
docs = pkgs.callPackage ./mkDocs.nix {inherit inputs;};
|
docs = pkgs.callPackage ./mkDocs.nix {inherit inputs;};
|
||||||
hugo = pkgs.callPackage ./mkHugo.nix {inherit inputs;};
|
pandoc = pkgs.callPackage ./mkPandoc.nix {inherit inputs;};
|
||||||
};
|
};
|
||||||
|
|
||||||
devshells.default = {
|
devshells.default = {
|
||||||
|
|||||||
+225
@@ -0,0 +1,225 @@
|
|||||||
|
{
|
||||||
|
"text-color": "#282828",
|
||||||
|
"background-color": "#fbf1c7",
|
||||||
|
"line-number-color": "#3c3836",
|
||||||
|
"line-number-background-color": "#fbf1c7",
|
||||||
|
"text-styles": {
|
||||||
|
"Alert": {
|
||||||
|
"text-color": "#9d0006",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": true,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"Annotation": {
|
||||||
|
"text-color": "#b16286",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"Attribute": {
|
||||||
|
"text-color": "#076678",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"BaseN": {
|
||||||
|
"text-color": "#b57614",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"BuiltIn": {
|
||||||
|
"text-color": "#8f3f71",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": true,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"Char": {
|
||||||
|
"text-color": "#98971a",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"Comment": {
|
||||||
|
"text-color": "#7c6f64",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"CommentVar": {
|
||||||
|
"text-color": "#7c6f64",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"Constant": {
|
||||||
|
"text-color": "#cc241d",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"ControlFlow": {
|
||||||
|
"text-color": "#282828",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": true,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"DataType": {
|
||||||
|
"text-color": "#458588",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"DecVal": {
|
||||||
|
"text-color": "#458588",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"Documentation": {
|
||||||
|
"text-color": "#98971a",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"Error": {
|
||||||
|
"text-color": "#9d0006",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": true
|
||||||
|
},
|
||||||
|
"Extension": {
|
||||||
|
"text-color": "#458588",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": true,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"Float": {
|
||||||
|
"text-color": "#b57614",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"Function": {
|
||||||
|
"text-color": "#b16286",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"Import": {
|
||||||
|
"text-color": "#d65d0e",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"Information": {
|
||||||
|
"text-color": "#d65d0e",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"Keyword": {
|
||||||
|
"text-color": "#282828",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": true,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"Normal": {
|
||||||
|
"text-color": "#282828",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"Operator": {
|
||||||
|
"text-color": "#282828",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"Other": {
|
||||||
|
"text-color": "#79740e",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"Preprocessor": {
|
||||||
|
"text-color": "#79740e",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"RegionMarker": {
|
||||||
|
"text-color": "#076678",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"SpecialChar": {
|
||||||
|
"text-color": "#79740e",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"SpecialString": {
|
||||||
|
"text-color": "#79740e",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"String": {
|
||||||
|
"text-color": "#98971a",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"Variable": {
|
||||||
|
"text-color": "#076678",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"VerbatimString": {
|
||||||
|
"text-color": "#9d0006",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
},
|
||||||
|
"Warning": {
|
||||||
|
"text-color": "#b57614",
|
||||||
|
"background-color": null,
|
||||||
|
"bold": false,
|
||||||
|
"italic": false,
|
||||||
|
"underline": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
title: "{{ replace .Name "-" " " | title }}"
|
|
||||||
date: {{ .Date }}
|
|
||||||
draft: true
|
|
||||||
---
|
|
||||||
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
theme = 'risotto'
|
|
||||||
languageCode = 'en-us'
|
|
||||||
title = "Option Documentation for Rasmus Kirk's Nix Modules"
|
|
||||||
baseURL = 'https://rasmus-kirk.github.io/nix-modules/'
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
title: Options Documentation
|
|
||||||
author: Rasmus Kirk
|
|
||||||
date: DATE-TIMESTAMP
|
|
||||||
---
|
|
||||||
|
|
||||||
@@ -1,624 +0,0 @@
|
|||||||
---
|
|
||||||
title: Options Documentation
|
|
||||||
author: Rasmus Kirk
|
|
||||||
date: 2023-12-07
|
|
||||||
---
|
|
||||||
|
|
||||||
## kirk.fonts.enable
|
|
||||||
Whether to enable Enable my fonts, namely fira-code with nerdfonts. Note that this is required for kirk modules that use the nerdfont icons to function properly..
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
false
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
*_Example_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.foot.alpha
|
|
||||||
Alpha value of the foot terminal.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
floating point number
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
0.85
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.foot.colorscheme
|
|
||||||
A colorscheme attribute set.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
attribute set
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
{"bg":"282828","black":"1d2021","blue":"458588","bright":{"black":"928374","blue":"83a598","green":"b8bb26","orange":"fe8019","purple":"d3869b","red":"fb4934","teal":"8ec07c","white":"fbf1c7","yellow":"fabd2f"},"fg":"ebdbb2","green":"98971a","orange":"d65d0e","purple":"b16286","red":"cc241d","teal":"689d6a","white":"d5c4a1","yellow":"d79921"}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.foot.enable
|
|
||||||
Whether to enable foot terminal emulator.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
false
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
*_Example_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.foot.enableKeyBindings
|
|
||||||
Whether or not to enable my keybindings.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.foot.fontSize
|
|
||||||
Font size of the terminal.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
signed integer
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
15
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.fzf.colorscheme
|
|
||||||
A colorscheme attribute set.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
attribute set
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
{"bg":"282828","black":"1d2021","blue":"458588","bright":{"black":"928374","blue":"83a598","green":"b8bb26","orange":"fe8019","purple":"d3869b","red":"fb4934","teal":"8ec07c","white":"fbf1c7","yellow":"fabd2f"},"fg":"ebdbb2","green":"98971a","orange":"d65d0e","purple":"b16286","red":"cc241d","teal":"689d6a","white":"d5c4a1","yellow":"d79921"}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.fzf.enable
|
|
||||||
Whether to enable foot terminal emulator.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
false
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
*_Example_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.fzf.enableZshIntegration
|
|
||||||
Whether to enable zsh integration.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.git.enable
|
|
||||||
Whether to enable git.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
false
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
*_Example_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.git.userEmail
|
|
||||||
What email address to use for git.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
string
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.git.userName
|
|
||||||
Username to use for git.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
string
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.gruvbox.colorscheme
|
|
||||||
A definition for the gruvbox theme.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
attribute set
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
{"bg":"282828","black":"1d2021","blue":"458588","bright":{"black":"928374","blue":"83a598","green":"b8bb26","orange":"fe8019","purple":"d3869b","red":"fb4934","teal":"8ec07c","white":"fbf1c7","yellow":"fabd2f"},"fg":"ebdbb2","green":"98971a","orange":"d65d0e","purple":"b16286","red":"cc241d","teal":"689d6a","white":"d5c4a1","yellow":"d79921"}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.helix.enable
|
|
||||||
Whether to enable helix text editor.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
false
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
*_Example_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.helix.extraPackages
|
|
||||||
Extra packages to install, for example LSP's.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
list of package
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
[]
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.helix.installMostLsps
|
|
||||||
Whether or not to install most of the LSP's that helix supports.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.homeManagerScripts.configDir
|
|
||||||
Path to the home-manager configuration.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
null or path
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
null
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.homeManagerScripts.enable
|
|
||||||
Whether to enable home manager scripts.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
false
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
*_Example_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.homeManagerScripts.machine
|
|
||||||
Path to the home-manager configuration.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
null or string
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.jiten.dailyWord
|
|
||||||
Enable daily japanese word prompt.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.jiten.enable
|
|
||||||
Whether to enable jiten japanese dictionary.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
false
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
*_Example_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.joshuto.enable
|
|
||||||
Whether to enable joshuto file manager.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
false
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
*_Example_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.joshuto.enableZshIntegration
|
|
||||||
Adds the auto-cd `j` command to zsh.
|
|
||||||
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.kakoune.enable
|
|
||||||
Whether to enable kakoune text editor.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
false
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
*_Example_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.ssh.enable
|
|
||||||
Whether to enable ssh with extra config.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
false
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
*_Example_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.ssh.identityPath
|
|
||||||
The directory containing the path to the identity file.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
null or path
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
null
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.terminalTools.autoUpdateTealdeer
|
|
||||||
Whether to auto-update tealdeer.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.terminalTools.enable
|
|
||||||
Whether to enable Quality of life terminal tools.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
false
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
*_Example_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.terminalTools.enableZshIntegration
|
|
||||||
Whether to enable zsh integration for bat.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.terminalTools.theme
|
|
||||||
What syntax highlighting colorscheme to use.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
string
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
"gruvbox-dark"
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.terminalTools.trashCleaner.enable
|
|
||||||
Enable the trash-cli cleanup script
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.terminalTools.trashCleaner.persistance
|
|
||||||
How many days a file stays in trash before getting cleaned up.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
signed integer or floating point number
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
30
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.userDirs.autoSortDownloads
|
|
||||||
Whether or not to auto-sort downloads.
|
|
||||||
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.userDirs.enable
|
|
||||||
Whether to enable userDirs.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
false
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
*_Example_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.zathura.colorscheme
|
|
||||||
A colorscheme attribute set.
|
|
||||||
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
attribute set
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
{"bg":"282828","black":"1d2021","blue":"458588","bright":{"black":"928374","blue":"83a598","green":"b8bb26","orange":"fe8019","purple":"d3869b","red":"fb4934","teal":"8ec07c","white":"fbf1c7","yellow":"fabd2f"},"fg":"ebdbb2","green":"98971a","orange":"d65d0e","purple":"b16286","red":"cc241d","teal":"689d6a","white":"d5c4a1","yellow":"d79921"}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.zathura.enable
|
|
||||||
Whether to enable foot terminal emulator.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
false
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
*_Example_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.zathura.enableKeyBindings
|
|
||||||
Whether or not to enable my keybindings.
|
|
||||||
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.zsh.enable
|
|
||||||
Whether to enable zsh configuration..
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
false
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
*_Example_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,411 +0,0 @@
|
|||||||
---
|
|
||||||
title: Options Documentation
|
|
||||||
author: Rasmus Kirk
|
|
||||||
date: 2023-12-07
|
|
||||||
---
|
|
||||||
|
|
||||||
## kirk.nixosScripts.configDir
|
|
||||||
Path to the nixos configuration.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
path
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
"/etc/nixos"
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.nixosScripts.enable
|
|
||||||
Whether to enable Nixos scripts
|
|
||||||
|
|
||||||
Required options:
|
|
||||||
- `machine`
|
|
||||||
.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
false
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
*_Example_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.nixosScripts.machine
|
|
||||||
REQUIRED! The machine to run on.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
null or string
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
null
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.acmeMail
|
|
||||||
REQUIRED! The ACME mail.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
null or string
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
null
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.domainName
|
|
||||||
REQUIRED! The domain name to host jellyfin on.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
null or string
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
null
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.enable
|
|
||||||
Whether to enable My servarr setup. Hosts Jellyfin on the given domain (remember domain
|
|
||||||
records/port forwarding) and hosts the following services on localhost
|
|
||||||
through a mullvad VPN:
|
|
||||||
|
|
||||||
- Prowlarr
|
|
||||||
- Sonarr
|
|
||||||
- Radarr
|
|
||||||
- Flood/Rtorrnet
|
|
||||||
|
|
||||||
Required options for this module:
|
|
||||||
|
|
||||||
- `domainName`
|
|
||||||
- `acmeMail`
|
|
||||||
- `mullvadAcc`
|
|
||||||
|
|
||||||
Remember to read the options.
|
|
||||||
|
|
||||||
NOTE: The docker service to manage this executes the command `docker
|
|
||||||
container prune -f` on startup for reproducibility, may cause issues
|
|
||||||
depending on your setup.
|
|
||||||
|
|
||||||
NOTE: This nixos module only supports the mullvad VPN, if you need
|
|
||||||
another VPN, create a PR or fork this repo!
|
|
||||||
.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
false
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
*_Example_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.gluetun.extraConfig
|
|
||||||
Extra config for the service.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
attribute set
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
{}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.jellyfin.extraConfig
|
|
||||||
Extra config for the service.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
attribute set
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
{}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.jellyfin.port
|
|
||||||
Port of Jellyfin.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
8096
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.mediaDir
|
|
||||||
The location of the media directory for the services.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
path
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
"~/servarr"
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.mullvadAcc
|
|
||||||
REQUIRED! The location the file containing your mullvad account key.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
null or path
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
null
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.prowlarr.extraConfig
|
|
||||||
Extra config for the service.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
attribute set
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
{}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.prowlarr.port
|
|
||||||
Port of prowlarr.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
6002
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.radarr.extraConfig
|
|
||||||
Extra config for the service.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
attribute set
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
{}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.radarr.port
|
|
||||||
Port of radarr.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
6004
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.rflood.extraConfig
|
|
||||||
Extra config for the service.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
attribute set
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
{}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.rflood.port
|
|
||||||
Port of rflood.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
6001
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.rflood.ulimits.enable
|
|
||||||
Whether to enable Enable rtorrent ulimits. I had a bug that caused rtorrent to fail
|
|
||||||
and log `std::bad_alloc`. Setting ulimits for this service fixed
|
|
||||||
the issue. You probably don't want to set this unless you have
|
|
||||||
similar issues.See link below for more info:
|
|
||||||
|
|
||||||
https://stackoverflow.com/questions/75536471/rtorrent-docker-container-failing-to-start-saying-stdbad-alloc
|
|
||||||
.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
boolean
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
false
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
*_Example_*
|
|
||||||
```
|
|
||||||
true
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.rflood.ulimits.hard
|
|
||||||
The hard limit.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
unsigned integer, meaning >=0
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
1024
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.rflood.ulimits.soft
|
|
||||||
The soft limit.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
unsigned integer, meaning >=0
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
1024
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.sonarr.extraConfig
|
|
||||||
Extra config for the service.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
attribute set
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
{}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.sonarr.port
|
|
||||||
Port of sonarr.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
16 bit unsigned integer; between 0 and 65535 (both inclusive)
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
6003
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.stateDir
|
|
||||||
The location of the state directory for the services.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
path
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
"~/.local/state"
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## kirk.servarr.timezone
|
|
||||||
Your timezone, used for logging purposes.
|
|
||||||
|
|
||||||
*_Type_*:
|
|
||||||
string
|
|
||||||
|
|
||||||
|
|
||||||
*_Default_*
|
|
||||||
```
|
|
||||||
"Etc/UTC"
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
[Nixos options](./nixos)
|
|
||||||
[Home manager options](./home-manager)
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
name: github pages
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
|
||||||
path: risotto
|
|
||||||
|
|
||||||
- name: Setup Hugo
|
|
||||||
uses: peaceiris/actions-hugo@v2
|
|
||||||
with:
|
|
||||||
hugo-version: '0.85.0'
|
|
||||||
# extended: true
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
working-directory: ./risotto/exampleSite
|
|
||||||
run: hugo --minify --themesDir="../.." -t risotto
|
|
||||||
|
|
||||||
- name: Deploy
|
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
publish_dir: ./risotto/exampleSite/public
|
|
||||||
cname: risotto.joeroe.io
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
.hugo_build.lock
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2021 Joe Roe
|
|
||||||
|
|
||||||
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.
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
# risotto (development version)
|
|
||||||
|
|
||||||
# risotto 0.2.0
|
|
||||||
|
|
||||||
* **Breaking change** – new framework for colour palettes:
|
|
||||||
* Palettes are defined using CSS variables following the [base16](https://github.com/chriskempson/base16) system
|
|
||||||
* Added 14 new palettes: `apprentice`, `base16-dark`, `base16-light`, `dracula`, `material`, `papercolor-dark`, `papercolor-light`, `solarized-dark`, `solarized-light`, `tender`, `tokyo-night-dark`, `tokyo-night-light`, `windows-95` and `windows-95-light`.
|
|
||||||
* The default palette is `base16-dark`
|
|
||||||
* The `mode` parameter is no longer needed
|
|
||||||
* If you were using one of the old named palettes (`gruvbox-dark` or `gruvbox-light`), the change will be seamless.
|
|
||||||
* If you were using a custom palette, you will need to redefine it using the new framework. See README for further details.
|
|
||||||
* Added a table of contents (thanks @dashv, #47)
|
|
||||||
* Added multilanguage support with a language switcher (thanks @bedefaced)
|
|
||||||
* Made the site header and nav wrap more efficiently on narrow screens (thanks @m-dev672, #32)
|
|
||||||
* Added a changelog
|
|
||||||
|
|
||||||
# risotto 0.1.0
|
|
||||||
|
|
||||||
First named release, including:
|
|
||||||
|
|
||||||
* `gruvbox-dark` and `gruvbox-light` colour palettes
|
|
||||||
* FontAwesome6 and Academicons icon sets
|
|
||||||
@@ -1,74 +0,0 @@
|
|||||||
# risotto
|
|
||||||
|
|
||||||
risotto is a minimalist, responsive [hugo](https://gohugo.io) theme inspired by terminal ricing aesthetics.
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## Install
|
|
||||||
|
|
||||||
The easiest way to install the theme is to clone this repository into your site's `themes` directory:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
git clone https://github.com/joeroe/risotto themes/risotto
|
|
||||||
```
|
|
||||||
|
|
||||||
If your site is already a git repository, you can add the theme as a submodule instead:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
git submodule add https://github.com/joeroe/risotto.git themes/risotto
|
|
||||||
```
|
|
||||||
|
|
||||||
## Update
|
|
||||||
|
|
||||||
If you installed the theme using `git clone`, pull the repository to get the latest version:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
cd themes/risotto
|
|
||||||
git pull
|
|
||||||
```
|
|
||||||
|
|
||||||
Or, if you added it as a git submodule:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
git submodule update --remote
|
|
||||||
```
|
|
||||||
|
|
||||||
## Configure
|
|
||||||
|
|
||||||
To use the theme, add `theme = 'risotto'` to your site's `config.toml`, or `theme: risotto` to your `config.yaml` respectively.
|
|
||||||
|
|
||||||
See `exampleSite/config.toml` for the theme-specific parameters you need to add to your site's `config.toml` or `config.yaml` to configure the theme.
|
|
||||||
|
|
||||||
### Colour palettes
|
|
||||||
|
|
||||||
risotto uses the [base16 framework](https://github.com/chriskempson/base16) to define colour schemes that can be used with the `theme.palette` parameter.
|
|
||||||
A selection of 16 palettes (10 dark, 6 light) are bundled with the theme: `apprentice`, `base16-dark`, `base16-light`, `dracula`, `gruvbox-dark`, `gruvbox-light`, `material`, `papercolor-dark`, `papercolor-light`, `solarized-dark`, `solarized-light`, `tender`, `tokyo-night-dark`, `tokyo-night-light`, `windows-95` and `windows-95-light`.
|
|
||||||
The default is `base16-dark`.
|
|
||||||
|
|
||||||
<!-- TODO: add screenshots of default themes -->
|
|
||||||
|
|
||||||
The easiest way to use other base16 styles is to place .css file from https://github.com/monicfenga/base16-styles/tree/master/css-variables and place it in your `static/css/palettes` directory.
|
|
||||||
|
|
||||||
Or to define a wholly custom theme, you will need to define the following CSS variables for the following base16 colours (see [base16-dark.css](blob/main/static/css/palettes/base16-dark.css) for an example):
|
|
||||||
|
|
||||||
| Base | Default colour | Used for | Examples |
|
|
||||||
| ---- | -------------- | -------- | -------- |
|
|
||||||
| 00 | Dark | Background | Page background |
|
|
||||||
| 01 | │ | Alt. background | Content background |
|
|
||||||
| 02 | │ | In-text backgrounds | `<pre>`, `<code>`, `<kbd>`, `<samp>` |
|
|
||||||
| 03 | │ | Muted text | `:before` & `:marker` symbols |
|
|
||||||
| 04 | │ | Alt. foreground | Aside text |
|
|
||||||
| 05 | │ | Foreground | Content text |
|
|
||||||
| 06 | │ | | |
|
|
||||||
| 07 | Light | | |
|
|
||||||
| 08 | Red | | |
|
|
||||||
| 09 | Orange | | |
|
|
||||||
| 0A | Yellow | Highlights | Selected text, `<mark>` |
|
|
||||||
| 0B | Green | Primary accent | Logo |
|
|
||||||
| 0C | Cyan | Active links | `a:active`, `a:hover` |
|
|
||||||
| 0D | Blue | Links | `a:link`, `a:visited` |
|
|
||||||
| 0E | Magenta | | |
|
|
||||||
| 0F | Brown | | |
|
|
||||||
|
|
||||||
For light mode palettes, the sequence of 00–07 should be reversed (light to dark, not dark to light).
|
|
||||||
Note that not all colours are currently used in the theme.
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
+++
|
|
||||||
+++
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
[module]
|
|
||||||
[module.hugoVersion]
|
|
||||||
min = "0.41.0"
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2014 Steve Francia
|
|
||||||
|
|
||||||
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.
|
|
||||||
@@ -1,100 +0,0 @@
|
|||||||
baseURL = "https://risotto.joeroe.io"
|
|
||||||
theme = "risotto"
|
|
||||||
title = "risotto demo"
|
|
||||||
author = "Joe Roe"
|
|
||||||
copyright = "© 2021–2022 [Joe Roe](https://joeroe.io) & [risotto contributors](https://github.com/joeroe/risotto/graphs/contributors)."
|
|
||||||
paginate = 3
|
|
||||||
languageCode = "en"
|
|
||||||
DefaultContentLanguage = "en"
|
|
||||||
enableInlineShortcodes = true
|
|
||||||
# prevent build failures when using Hugo's Instagram shortcode due to deprecated Instagram API.
|
|
||||||
# See https://github.com/gohugoio/hugo/issues/7228#issuecomment-714490456
|
|
||||||
ignoreErrors = ["error-remote-getjson"]
|
|
||||||
|
|
||||||
# Automatically add content sections to main menu
|
|
||||||
sectionPagesMenu = "main"
|
|
||||||
|
|
||||||
[params]
|
|
||||||
noindex = false
|
|
||||||
|
|
||||||
[params.theme]
|
|
||||||
palette = "base16-dark"
|
|
||||||
|
|
||||||
# Sidebar: about/bio
|
|
||||||
[params.about]
|
|
||||||
title = "risotto"
|
|
||||||
description = "A [hugo](https://gohugo.io) theme inspired by terminal ricing."
|
|
||||||
logo = "images/rice.svg"
|
|
||||||
|
|
||||||
# Sidebar: social links
|
|
||||||
# Available icon sets:
|
|
||||||
# * FontAwesome 6 <https://fontawesome.com/> ('fa-brands', 'fa-normal', or 'fa-solid' for brands)
|
|
||||||
# * Academicons <https://jpswalsh.github.io/academicons> ('ai ai-')
|
|
||||||
|
|
||||||
[[params.socialLinks]]
|
|
||||||
icon = "fa-brands fa-github"
|
|
||||||
title = "GitHub"
|
|
||||||
url = "https://github.com/joeroe/risotto"
|
|
||||||
|
|
||||||
[[params.socialLinks]]
|
|
||||||
icon = "fa-solid fa-envelope"
|
|
||||||
title = "Email"
|
|
||||||
url = "mailto:example@example.com"
|
|
||||||
|
|
||||||
[[params.socialLinks]]
|
|
||||||
icon = "ai ai-orcid"
|
|
||||||
title = "ORCID"
|
|
||||||
url = "https://orcid.org/0000-0001-2345-6789"
|
|
||||||
|
|
||||||
[menu]
|
|
||||||
|
|
||||||
[[menu.main]]
|
|
||||||
identifier = "about"
|
|
||||||
name = "About"
|
|
||||||
url = "/about/"
|
|
||||||
weight = 10
|
|
||||||
|
|
||||||
[taxonomies]
|
|
||||||
category = "categories"
|
|
||||||
tag = "tags"
|
|
||||||
series = "series"
|
|
||||||
|
|
||||||
# For hugo >= 0.60.0, enable inline HTML
|
|
||||||
[markup.goldmark.renderer]
|
|
||||||
unsafe = true
|
|
||||||
|
|
||||||
[markup]
|
|
||||||
|
|
||||||
# Table of contents
|
|
||||||
# Add toc = true to content front matter to enable
|
|
||||||
[markup.tableOfContents]
|
|
||||||
startLevel = 2
|
|
||||||
endLevel = 3
|
|
||||||
ordered = true
|
|
||||||
|
|
||||||
[privacy]
|
|
||||||
|
|
||||||
[privacy.vimeo]
|
|
||||||
disabled = false
|
|
||||||
simple = true
|
|
||||||
|
|
||||||
[privacy.twitter]
|
|
||||||
disabled = false
|
|
||||||
enableDNT = true
|
|
||||||
simple = true
|
|
||||||
|
|
||||||
[privacy.instagram]
|
|
||||||
disabled = false
|
|
||||||
simple = true
|
|
||||||
|
|
||||||
[privacy.youtube]
|
|
||||||
disabled = false
|
|
||||||
privacyEnhanced = true
|
|
||||||
|
|
||||||
[services]
|
|
||||||
|
|
||||||
[services.instagram]
|
|
||||||
disableInlineCSS = true
|
|
||||||
|
|
||||||
[services.twitter]
|
|
||||||
disableInlineCSS = true
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
timeout = 30000
|
|
||||||
enableInlineShortcodes = true
|
|
||||||
|
|
||||||
[taxonomies]
|
|
||||||
category = "categories"
|
|
||||||
tag = "tags"
|
|
||||||
series = "series"
|
|
||||||
|
|
||||||
[privacy]
|
|
||||||
|
|
||||||
[privacy.vimeo]
|
|
||||||
disabled = false
|
|
||||||
simple = true
|
|
||||||
|
|
||||||
[privacy.twitter]
|
|
||||||
disabled = false
|
|
||||||
enableDNT = true
|
|
||||||
simple = true
|
|
||||||
disableInlineCSS = true
|
|
||||||
|
|
||||||
[privacy.instagram]
|
|
||||||
disabled = false
|
|
||||||
simple = true
|
|
||||||
|
|
||||||
[privacy.youtube]
|
|
||||||
disabled = false
|
|
||||||
privacyEnhanced = true
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../../README.md
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
+++
|
|
||||||
author = "Hugo Authors"
|
|
||||||
+++
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
+++
|
|
||||||
title = "About"
|
|
||||||
description = "Hugo, the world's fastest framework for building websites"
|
|
||||||
date = "2019-02-28"
|
|
||||||
aliases = ["about-us", "about-hugo", "contact"]
|
|
||||||
author = "Hugo Authors"
|
|
||||||
+++
|
|
||||||
|
|
||||||
Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
|
|
||||||
|
|
||||||
Hugo makes use of a variety of open source projects including:
|
|
||||||
|
|
||||||
* https://github.com/yuin/goldmark
|
|
||||||
* https://github.com/alecthomas/chroma
|
|
||||||
* https://github.com/muesli/smartcrop
|
|
||||||
* https://github.com/spf13/cobra
|
|
||||||
* https://github.com/spf13/viper
|
|
||||||
|
|
||||||
Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages.
|
|
||||||
|
|
||||||
Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.
|
|
||||||
|
|
||||||
Websites built with Hugo are extremely fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.
|
|
||||||
|
|
||||||
Learn more and contribute on [GitHub](https://github.com/gohugoio).
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
date: 2019-05-28
|
|
||||||
type: section
|
|
||||||
layout: "archives"
|
|
||||||
---
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
title: 'Our Difference'
|
|
||||||
button: 'About us'
|
|
||||||
weight: 2
|
|
||||||
---
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Ipsum dolor sit amet, et essent mediocritatem quo.
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
---
|
|
||||||
headless: true
|
|
||||||
---
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
title: 'We Help Business Grow'
|
|
||||||
button: 'Our Work'
|
|
||||||
weight: 1
|
|
||||||
---
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. Numquam dolores mel eu, mea docendi omittantur et, mea ea duis erat. Elit melius cu ius. Per ex novum tantas putant, ei his nullam aliquam apeirian. Aeterno quaestio constituto sea an, no eum intellegat assueverit.
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
+++
|
|
||||||
aliases = ["posts", "articles", "blog", "showcase", "docs"]
|
|
||||||
title = "Posts"
|
|
||||||
author = "Hugo Authors"
|
|
||||||
tags = ["index"]
|
|
||||||
+++
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
+++
|
|
||||||
author = "Hugo Authors"
|
|
||||||
title = "Emoji Support"
|
|
||||||
date = "2019-03-05"
|
|
||||||
description = "Guide to emoji usage in Hugo"
|
|
||||||
tags = [
|
|
||||||
"emoji",
|
|
||||||
]
|
|
||||||
+++
|
|
||||||
|
|
||||||
Emoji can be enabled in a Hugo project in a number of ways.
|
|
||||||
<!--more-->
|
|
||||||
The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
|
|
||||||
|
|
||||||
To enable emoji globally, set `enableEmoji` to `true` in your site's [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
|
|
||||||
|
|
||||||
<p><span class="nowrap"><span class="emojify">🙈</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙉</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">🙊</span> <code>:speak_no_evil:</code></span></p>
|
|
||||||
<br>
|
|
||||||
|
|
||||||
The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes.
|
|
||||||
|
|
||||||
***
|
|
||||||
|
|
||||||
**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.
|
|
||||||
|
|
||||||
{{< highlight html >}}
|
|
||||||
.emoji {
|
|
||||||
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
|
|
||||||
}
|
|
||||||
{{< /highlight >}}
|
|
||||||
|
|
||||||
{{< css.inline >}}
|
|
||||||
<style>
|
|
||||||
.emojify {
|
|
||||||
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
|
|
||||||
font-size: 2rem;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
||||||
@media screen and (max-width:650px) {
|
|
||||||
.nowrap {
|
|
||||||
display: block;
|
|
||||||
margin: 25px 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
{{< /css.inline >}}
|
|
||||||
@@ -1,148 +0,0 @@
|
|||||||
+++
|
|
||||||
author = "Hugo Authors"
|
|
||||||
title = "Markdown Syntax Guide"
|
|
||||||
date = "2019-03-11"
|
|
||||||
description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
|
|
||||||
tags = [
|
|
||||||
"markdown",
|
|
||||||
"css",
|
|
||||||
"html",
|
|
||||||
]
|
|
||||||
categories = [
|
|
||||||
"themes",
|
|
||||||
"syntax",
|
|
||||||
]
|
|
||||||
series = ["Themes Guide"]
|
|
||||||
aliases = ["migrate-from-jekyl"]
|
|
||||||
+++
|
|
||||||
|
|
||||||
This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
|
|
||||||
<!--more-->
|
|
||||||
|
|
||||||
## Headings
|
|
||||||
|
|
||||||
The following HTML `<h1>`—`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
|
|
||||||
|
|
||||||
# H1
|
|
||||||
## H2
|
|
||||||
### H3
|
|
||||||
#### H4
|
|
||||||
##### H5
|
|
||||||
###### H6
|
|
||||||
|
|
||||||
## Paragraph
|
|
||||||
|
|
||||||
Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
|
|
||||||
|
|
||||||
Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
|
|
||||||
|
|
||||||
## Blockquotes
|
|
||||||
|
|
||||||
The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
|
|
||||||
|
|
||||||
#### Blockquote without attribution
|
|
||||||
|
|
||||||
> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
|
|
||||||
> **Note** that you can use *Markdown syntax* within a blockquote.
|
|
||||||
|
|
||||||
#### Blockquote with attribution
|
|
||||||
|
|
||||||
> Don't communicate by sharing memory, share memory by communicating.<br>
|
|
||||||
> — <cite>Rob Pike[^1]</cite>
|
|
||||||
|
|
||||||
[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
|
|
||||||
|
|
||||||
## Tables
|
|
||||||
|
|
||||||
Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
|
|
||||||
|
|
||||||
Name | Age
|
|
||||||
--------|------
|
|
||||||
Bob | 27
|
|
||||||
Alice | 23
|
|
||||||
|
|
||||||
#### Inline Markdown within tables
|
|
||||||
|
|
||||||
| Italics | Bold | Code |
|
|
||||||
| -------- | -------- | ------ |
|
|
||||||
| *italics* | **bold** | `code` |
|
|
||||||
|
|
||||||
## Code Blocks
|
|
||||||
|
|
||||||
#### Code block with backticks
|
|
||||||
|
|
||||||
```html
|
|
||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Example HTML5 Document</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<p>Test</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Code block indented with four spaces
|
|
||||||
|
|
||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Example HTML5 Document</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<p>Test</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
||||||
#### Code block with Hugo's internal highlight shortcode
|
|
||||||
{{< highlight html >}}
|
|
||||||
<!doctype html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Example HTML5 Document</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<p>Test</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
{{< /highlight >}}
|
|
||||||
|
|
||||||
## List Types
|
|
||||||
|
|
||||||
#### Ordered List
|
|
||||||
|
|
||||||
1. First item
|
|
||||||
2. Second item
|
|
||||||
3. Third item
|
|
||||||
|
|
||||||
#### Unordered List
|
|
||||||
|
|
||||||
* List item
|
|
||||||
* Another item
|
|
||||||
* And another item
|
|
||||||
|
|
||||||
#### Nested list
|
|
||||||
|
|
||||||
* Fruit
|
|
||||||
* Apple
|
|
||||||
* Orange
|
|
||||||
* Banana
|
|
||||||
* Dairy
|
|
||||||
* Milk
|
|
||||||
* Cheese
|
|
||||||
|
|
||||||
## Other Elements — abbr, sub, sup, kbd, mark
|
|
||||||
|
|
||||||
<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
|
|
||||||
|
|
||||||
H<sub>2</sub>O
|
|
||||||
|
|
||||||
X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
|
|
||||||
|
|
||||||
Press <kbd><kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd></kbd> to end the session.
|
|
||||||
|
|
||||||
Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures.
|
|
||||||
@@ -1,49 +0,0 @@
|
|||||||
---
|
|
||||||
author: Hugo Authors
|
|
||||||
title: Math Typesetting
|
|
||||||
date: 2019-03-08
|
|
||||||
description: A brief guide to setup KaTeX
|
|
||||||
math: true
|
|
||||||
---
|
|
||||||
|
|
||||||
Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.
|
|
||||||
<!--more-->
|
|
||||||
|
|
||||||
In this example we will be using [KaTeX](https://katex.org/)
|
|
||||||
|
|
||||||
- Create a partial under `/layouts/partials/math.html`
|
|
||||||
- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally.
|
|
||||||
- Include the partial in your templates like so:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
{{ if or .Params.math .Site.Params.math }}
|
|
||||||
{{ partial "math.html" . }}
|
|
||||||
{{ end }}
|
|
||||||
```
|
|
||||||
|
|
||||||
- To enable KaTex globally set the parameter `math` to `true` in a project's configuration
|
|
||||||
- To enable KaTex on a per page basis include the parameter `math: true` in content files
|
|
||||||
|
|
||||||
**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
|
|
||||||
|
|
||||||
{{< math.inline >}}
|
|
||||||
{{ if or .Page.Params.math .Site.Params.math }}
|
|
||||||
<!-- KaTeX -->
|
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
|
|
||||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
|
|
||||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
|
|
||||||
{{ end }}
|
|
||||||
{{</ math.inline >}}
|
|
||||||
|
|
||||||
### Examples
|
|
||||||
|
|
||||||
{{< math.inline >}}
|
|
||||||
<p>
|
|
||||||
Inline math: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\)
|
|
||||||
</p>
|
|
||||||
{{</ math.inline >}}
|
|
||||||
|
|
||||||
Block math:
|
|
||||||
$$
|
|
||||||
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
|
|
||||||
$$
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
+++
|
|
||||||
author = "Hugo Authors"
|
|
||||||
title = "Placeholder Text"
|
|
||||||
date = "2019-03-09"
|
|
||||||
description = "Lorem Ipsum Dolor Si Amet"
|
|
||||||
tags = [
|
|
||||||
"markdown",
|
|
||||||
"text",
|
|
||||||
]
|
|
||||||
+++
|
|
||||||
|
|
||||||
Lorem est tota propiore conpellat pectoribus de pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum.
|
|
||||||
|
|
||||||
1. Exierant elisi ambit vivere dedere
|
|
||||||
2. Duce pollice
|
|
||||||
3. Eris modo
|
|
||||||
4. Spargitque ferrea quos palude
|
|
||||||
|
|
||||||
Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis.
|
|
||||||
|
|
||||||
1. Comas hunc haec pietate fetum procerum dixit
|
|
||||||
2. Post torum vates letum Tiresia
|
|
||||||
3. Flumen querellas
|
|
||||||
4. Arcanaque montibus omnes
|
|
||||||
5. Quidem et
|
|
||||||
|
|
||||||
# Vagus elidunt
|
|
||||||
|
|
||||||
<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>
|
|
||||||
|
|
||||||
[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon)
|
|
||||||
|
|
||||||
## Mane refeci capiebant unda mulcebat
|
|
||||||
|
|
||||||
Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.
|
|
||||||
|
|
||||||
Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et.
|
|
||||||
|
|
||||||
Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**.
|
|
||||||
|
|
||||||
{{< css.inline >}}
|
|
||||||
<style>
|
|
||||||
.canon { background: white; width: 100%; height: auto; }
|
|
||||||
</style>
|
|
||||||
{{< /css.inline >}}
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
+++
|
|
||||||
author = "Hugo Authors"
|
|
||||||
title = "Rich Content"
|
|
||||||
date = "2019-03-10"
|
|
||||||
description = "A brief description of Hugo Shortcodes"
|
|
||||||
tags = [
|
|
||||||
"shortcodes",
|
|
||||||
"privacy",
|
|
||||||
]
|
|
||||||
+++
|
|
||||||
|
|
||||||
Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds.
|
|
||||||
<!--more-->
|
|
||||||
---
|
|
||||||
|
|
||||||
## YouTube Privacy Enhanced Shortcode
|
|
||||||
|
|
||||||
{{< youtube ZJthWmvUzzc >}}
|
|
||||||
|
|
||||||
<br>
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Twitter Simple Shortcode
|
|
||||||
|
|
||||||
{{< twitter_simple 1085870671291310081 >}}
|
|
||||||
|
|
||||||
<br>
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Vimeo Simple Shortcode
|
|
||||||
|
|
||||||
{{< vimeo_simple 48912912 >}}
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 181 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 154 KiB |
@@ -1,36 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="{{- site.Language.Lang -}}">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
{{- partial "head.html" . -}}
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div class="page">
|
|
||||||
|
|
||||||
<header class="page__header">
|
|
||||||
{{- partial "header.html" . -}}
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<section class="page__body">
|
|
||||||
{{- block "main" . }}{{- end }}
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section class="page__aside">
|
|
||||||
<div class="aside__about">
|
|
||||||
{{- partial "about.html" . -}}
|
|
||||||
</div>
|
|
||||||
<hr>
|
|
||||||
<div class="aside__content">
|
|
||||||
{{- block "aside" . }}{{- end }}
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<footer class="page__footer">
|
|
||||||
{{- partial "footer.html" . -}}
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
<li><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></li>
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{{ define "main" }}
|
|
||||||
<h1 id="{{ .Title | urlize }}">{{ .Title | markdownify }}</h1>
|
|
||||||
|
|
||||||
{{ .Content }}
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
{{ range .Pages }}
|
|
||||||
{{ .Render "li" }}
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
{{ end }}
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
{{ define "main" }}
|
|
||||||
<header class="content__header">
|
|
||||||
<h1>{{ .Title | markdownify }}</h1>
|
|
||||||
</header>
|
|
||||||
{{ if .Params.toc }}
|
|
||||||
<aside>
|
|
||||||
</aside>
|
|
||||||
{{ end }}
|
|
||||||
<div class="content__body">
|
|
||||||
{{ .Content }}
|
|
||||||
</div>
|
|
||||||
<footer class="content__footer"></footer>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{define "aside" }}
|
|
||||||
{{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }}
|
|
||||||
{{ if or (.Params.author) (.Params.date) }}
|
|
||||||
<p>
|
|
||||||
{{ if .Params.author }}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{ end }}
|
|
||||||
{{ if .Date }}{{ .Date.Format "2006-01-02" }}{{ end }}
|
|
||||||
</p>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ if and (.Params.toc) (.TableOfContents) }}
|
|
||||||
<hr>
|
|
||||||
On this page:
|
|
||||||
{{ .TableOfContents }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
{{ define "main" }}
|
|
||||||
{{ .Content }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
{{ with .Site.Params.about }}
|
|
||||||
<div class="aside__about">
|
|
||||||
{{ with .logo }}<img class="about__logo" src="{{ . | absURL }}" alt="Logo">{{ end }}
|
|
||||||
<h1 class="about__title">{{ .title }}</h1>
|
|
||||||
{{ with .description }}<p class="about__description">{{ . | markdownify }}</p>{{ end }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<ul class="aside__social-links">
|
|
||||||
{{ range $item := .Site.Params.socialLinks }}
|
|
||||||
<li>
|
|
||||||
<a href="{{ $item.url }}" rel="me" aria-label="{{ $item.title }}" title="{{ $item.title }}"><i class="{{ $item.icon }}" aria-hidden="true"></i></a>
|
|
||||||
</li>
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{{- partial "lang.html" . -}}
|
|
||||||
<p class="copyright">{{ .Site.Copyright | markdownify }}</p>
|
|
||||||
<p class="advertisement">Powered by <a href="https://gohugo.io/">hugo</a> and <a href="https://github.com/joeroe/risotto">risotto</a>.</p>
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
<title>{{ with .Title }}{{ . }} – {{end}}{{ .Site.Title }}</title>
|
|
||||||
{{ with .Site.Params.about }}<meta name="description" content="{{ .description }}">{{ end }}
|
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta charset="UTF-8"/>
|
|
||||||
{{ if .Site.Params.noindex }}<meta name="robots" content="noindex" /> {{ end }}
|
|
||||||
|
|
||||||
<!-- FontAwesome <https://fontawesome.com/> -->
|
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/all.min.css" integrity="sha512-1sCRPdkRXhBV2PBLUdRb4tMg1w2YPf37qatUFeS7zlBy7jJI8Lf4VHwWfZZfpXtYSLy85pkm9GaYVYMfw5BC1A==" crossorigin="anonymous" />
|
|
||||||
|
|
||||||
<!-- Academicons <https://jpswalsh.github.io/academicons/> -->
|
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/academicons/1.9.1/css/academicons.min.css" integrity="sha512-b1ASx0WHgVFL5ZQhTgiPWX+68KjS38Jk87jg7pe+qC7q9YkEtFq0z7xCglv7qGIs/68d3mAp+StfC8WKC5SSAg==" crossorigin="anonymous" />
|
|
||||||
|
|
||||||
<!-- risotto theme -->
|
|
||||||
<link rel="stylesheet" href="{{ printf "css/palettes/%s.css" (.Site.Params.theme.palette | default "base16-dark") | absURL }}">
|
|
||||||
<link rel="stylesheet" href="{{ "css/risotto.css" | absURL }}">
|
|
||||||
<link rel="stylesheet" href="{{ "css/custom.css" | absURL }}">
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<nav class="page__nav main-nav">
|
|
||||||
<ul>
|
|
||||||
<h1 class="page__logo"><a href="{{ .Site.BaseURL }}" class="page__logo-inner">{{ .Site.Title }}</a></h1>
|
|
||||||
{{ $currentPage := . }}
|
|
||||||
{{ range .Site.Menus.main }}
|
|
||||||
<li class="main-nav__item"><a class="nav-main-item{{ if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) (eq ($currentPage.Permalink) (.URL | absLangURL)) }} active{{end}}" href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a></li>
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
<p>
|
|
||||||
{{ $siteLanguages := .Site.Languages }}
|
|
||||||
{{ $pageLang := .Page.Lang }}
|
|
||||||
|
|
||||||
{{ $currentPage := . }}
|
|
||||||
{{ $pageName := "" }}
|
|
||||||
{{ range .Site.Menus.main }}
|
|
||||||
{{ if eq ($currentPage.Permalink) (.URL | absLangURL) }}
|
|
||||||
{{ $pageName = .Name }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ range .Page.AllTranslations }}
|
|
||||||
{{ $translation := .}}
|
|
||||||
{{ range $siteLanguages }}
|
|
||||||
{{ if eq $translation.Lang .Lang }}
|
|
||||||
{{ $selected := false }}
|
|
||||||
{{ if eq $pageLang .Lang }}
|
|
||||||
<br/><span class="active">$ echo $LANG<br/><b>{{ .LanguageName }}</b></span><br/>
|
|
||||||
|
|
||||||
{{ else }}
|
|
||||||
<br/><a href="{{ $translation.Permalink }}">export LANG={{ .LanguageName }}; ./{{ $pageName }}</a><br/>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
</p>
|
|
||||||
<br /><br />
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
{{ define "main" }}
|
|
||||||
<header class="content__header">
|
|
||||||
<h1>{{ .Title | markdownify }}</h1>
|
|
||||||
{{ .Content }}
|
|
||||||
</header>
|
|
||||||
|
|
||||||
{{ range .Pages }}
|
|
||||||
<article class="post">
|
|
||||||
<header class="post__header">
|
|
||||||
<h1><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
|
|
||||||
<p class="post__meta">
|
|
||||||
{{ .Params.author }},
|
|
||||||
<span class="date">{{ .Date.Format "2 January 2006" }}</span>
|
|
||||||
</p>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<section class="post__summary">
|
|
||||||
{{ .Summary }}
|
|
||||||
</section>
|
|
||||||
</article>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
/* About/bio section */
|
|
||||||
.about__logo {
|
|
||||||
height: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about__title {
|
|
||||||
display: inline;
|
|
||||||
vertical-align: top;
|
|
||||||
}
|
|
||||||
|
|
||||||
.about__title::before {
|
|
||||||
content: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Social media links */
|
|
||||||
.aside__social-links {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.aside__social-links li {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.aside__social-links li::marker {
|
|
||||||
content: none;
|
|
||||||
}
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
:root {
|
|
||||||
/* Background */
|
|
||||||
--bg: var(--base00);
|
|
||||||
--off-bg: var(--base01);
|
|
||||||
--inner-bg: var(--base02);
|
|
||||||
|
|
||||||
/* Text */
|
|
||||||
--fg: var(--base05);
|
|
||||||
--off-fg: var(--base04);
|
|
||||||
--muted: var(--base03);
|
|
||||||
--link: var(--base0D);
|
|
||||||
--hover: var(--base0C);
|
|
||||||
--highlight: var(--base0A);
|
|
||||||
|
|
||||||
/* Logo */
|
|
||||||
--logo: var(--base0B);
|
|
||||||
}
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
/* Override this file to customise the theme's CSS for your site */
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
.page__footer {
|
|
||||||
color: var(--off-fg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.page__footer p {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
/* Main menu */
|
|
||||||
.main-nav ul {
|
|
||||||
display: flex;
|
|
||||||
flex-flow: row wrap;
|
|
||||||
justify-content: flex-start;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0 0 0.25rem 0;
|
|
||||||
gap: 0rem 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.main-nav li {
|
|
||||||
padding-top: 0.25rem;
|
|
||||||
margin-left: 1rem;
|
|
||||||
text-transform: lowercase;
|
|
||||||
}
|
|
||||||
|
|
||||||
.main-nav li::marker {
|
|
||||||
content: "./";
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
/* 1rem = 16px by default */
|
|
||||||
|
|
||||||
.page {
|
|
||||||
max-width: 64rem;
|
|
||||||
margin: 1rem auto;
|
|
||||||
display: grid;
|
|
||||||
grid-template-areas:
|
|
||||||
"header"
|
|
||||||
"body"
|
|
||||||
"aside"
|
|
||||||
"footer";
|
|
||||||
grid-template-columns: minmax(0, 1fr); /* https://css-tricks.com/preventing-a-grid-blowout/ */
|
|
||||||
grid-row-gap: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 45rem) {
|
|
||||||
.page {
|
|
||||||
grid-template-areas:
|
|
||||||
"header header"
|
|
||||||
"body aside"
|
|
||||||
"footer footer";
|
|
||||||
grid-template-columns: minmax(0, 1fr) 15rem;
|
|
||||||
grid-column-gap: 2rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Header */
|
|
||||||
.page__header {
|
|
||||||
grid-area: header;
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page__logo {
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page__nav {
|
|
||||||
flex-grow: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Body + aside */
|
|
||||||
.page__body {
|
|
||||||
grid-area: body;
|
|
||||||
background-color: var(--off-bg);
|
|
||||||
box-shadow: 0 0 0 1rem var(--off-bg);
|
|
||||||
overflow-wrap: break-word;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page__aside {
|
|
||||||
grid-area: aside;
|
|
||||||
color: var(--off-fg);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Footer */
|
|
||||||
.page__footer {
|
|
||||||
grid-area: footer;
|
|
||||||
}
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
.page__logo {
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
font-weight: inherit;
|
|
||||||
color: var(--bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.page__logo:before {
|
|
||||||
content: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page__logo-inner {
|
|
||||||
display: block;
|
|
||||||
background: var(--logo);
|
|
||||||
opacity: 0.90;
|
|
||||||
padding: 0.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
a.page__logo-inner:link, a.page__logo-inner:visited {
|
|
||||||
color: inherit;
|
|
||||||
text-decoration: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
a.page__logo-inner:hover,
|
|
||||||
a.page__logo-inner:active {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page__logo-inner:before {
|
|
||||||
content: "[";
|
|
||||||
color: var(--bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.page__logo-inner:after {
|
|
||||||
content: "] $";
|
|
||||||
color: var(--bg);
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
/* Apprentice by romainl */
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--base00: #262626;
|
|
||||||
--base01: #AF5F5F;
|
|
||||||
--base02: #5F875F;
|
|
||||||
--base03: #87875F;
|
|
||||||
--base04: #5F87AF;
|
|
||||||
--base05: #5F5F87;
|
|
||||||
--base06: #5F8787;
|
|
||||||
--base07: #6C6C6C;
|
|
||||||
--base08: #444444;
|
|
||||||
--base09: #FF8700;
|
|
||||||
--base0A: #87AF87;
|
|
||||||
--base0B: #FFFFAF;
|
|
||||||
--base0C: #87AFD7;
|
|
||||||
--base0D: #8787AF;
|
|
||||||
--base0E: #5FAFAF;
|
|
||||||
--base0F: #BCBCBC;
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
/* base16 default dark
|
|
||||||
* https://github.com/chriskempson/base16-default-schemes
|
|
||||||
*/
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--base00: #181818;
|
|
||||||
--base01: #282828;
|
|
||||||
--base02: #383838;
|
|
||||||
--base03: #585858;
|
|
||||||
--base04: #b8b8b8;
|
|
||||||
--base05: #d8d8d8;
|
|
||||||
--base06: #e8e8e8;
|
|
||||||
--base07: #f8f8f8;
|
|
||||||
--base08: #ab4642;
|
|
||||||
--base09: #dc9656;
|
|
||||||
--base0A: #f7ca88;
|
|
||||||
--base0B: #a1b56c;
|
|
||||||
--base0C: #86c1b9;
|
|
||||||
--base0D: #7cafc2;
|
|
||||||
--base0E: #ba8baf;
|
|
||||||
--base0F: #a16946;
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
/* base16 default light
|
|
||||||
* https://github.com/chriskempson/base16-default-schemes
|
|
||||||
*/
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--base00: #f8f8f8;
|
|
||||||
--base01: #e8e8e8;
|
|
||||||
--base02: #d8d8d8;
|
|
||||||
--base03: #b8b8b8;
|
|
||||||
--base04: #585858;
|
|
||||||
--base05: #383838;
|
|
||||||
--base06: #282828;
|
|
||||||
--base07: #181818;
|
|
||||||
--base08: #ab4642;
|
|
||||||
--base09: #dc9656;
|
|
||||||
--base0A: #f7ca88;
|
|
||||||
--base0B: #a1b56c;
|
|
||||||
--base0C: #86c1b9;
|
|
||||||
--base0D: #7cafc2;
|
|
||||||
--base0E: #ba8baf;
|
|
||||||
--base0F: #a16946;
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
/* Dracula by Mike Barkmin (http://github.com/mikebarkmin) based on Dracula Theme (http://github.com/dracula) */
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--base00: #282936;
|
|
||||||
--base01: #3a3c4e;
|
|
||||||
--base02: #4d4f68;
|
|
||||||
--base03: #626483;
|
|
||||||
--base04: #62d6e8;
|
|
||||||
--base05: #e9e9f4;
|
|
||||||
--base06: #f1f2f8;
|
|
||||||
--base07: #f7f7fb;
|
|
||||||
--base08: #ea51b2;
|
|
||||||
--base09: #b45bcf;
|
|
||||||
--base0A: #00f769;
|
|
||||||
--base0B: #ebff87;
|
|
||||||
--base0C: #a1efe4;
|
|
||||||
--base0D: #62d6e8;
|
|
||||||
--base0E: #b45bcf;
|
|
||||||
--base0F: #00f769;
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
/* gruvbox dark
|
|
||||||
* https://github.com/morhetz/gruvbox
|
|
||||||
* base16: https://github.com/dawikur/base16-gruvbox-scheme
|
|
||||||
*/
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--base00: #282828;
|
|
||||||
--base01: #3c3836;
|
|
||||||
--base02: #504945;
|
|
||||||
--base03: #665c54;
|
|
||||||
--base04: #bdae93;
|
|
||||||
--base05: #d5c4a1;
|
|
||||||
--base06: #ebdbb2;
|
|
||||||
--base07: #fbf1c7;
|
|
||||||
--base08: #fb4934;
|
|
||||||
--base09: #fe8019;
|
|
||||||
--base0A: #fabd2f;
|
|
||||||
--base0B: #b8bb26;
|
|
||||||
--base0C: #8ec07c;
|
|
||||||
--base0D: #83a598;
|
|
||||||
--base0E: #d3869b;
|
|
||||||
--base0F: #d65d0e;
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
/* gruvbox light
|
|
||||||
* https://github.com/morhetz/gruvbox
|
|
||||||
* base16: https://github.com/dawikur/base16-gruvbox-scheme
|
|
||||||
*/
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--base00: #fbf1c7;
|
|
||||||
--base01: #ebdbb2;
|
|
||||||
--base02: #d5c4a1;
|
|
||||||
--base03: #bdae93;
|
|
||||||
--base04: #665c54;
|
|
||||||
--base05: #504945;
|
|
||||||
--base06: #3c3836;
|
|
||||||
--base07: #282828;
|
|
||||||
--base08: #9d0006;
|
|
||||||
--base09: #af3a03;
|
|
||||||
--base0A: #b57614;
|
|
||||||
--base0B: #79740e;
|
|
||||||
--base0C: #427b58;
|
|
||||||
--base0D: #076678;
|
|
||||||
--base0E: #8f3f71;
|
|
||||||
--base0F: #d65d0e;
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
/* Material by Nate Peterson */
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--base00: #263238;
|
|
||||||
--base01: #2E3C43;
|
|
||||||
--base02: #314549;
|
|
||||||
--base03: #546E7A;
|
|
||||||
--base04: #B2CCD6;
|
|
||||||
--base05: #EEFFFF;
|
|
||||||
--base06: #EEFFFF;
|
|
||||||
--base07: #FFFFFF;
|
|
||||||
--base08: #F07178;
|
|
||||||
--base09: #F78C6C;
|
|
||||||
--base0A: #FFCB6B;
|
|
||||||
--base0B: #C3E88D;
|
|
||||||
--base0C: #89DDFF;
|
|
||||||
--base0D: #82AAFF;
|
|
||||||
--base0E: #C792EA;
|
|
||||||
--base0F: #FF5370;
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
/* PaperColor Dark by Jon Leopard (http://github.com/jonleopard) based on PaperColor Theme (https://github.com/NLKNguyen/papercolor-theme) */
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--base00: #1c1c1c;
|
|
||||||
--base01: #af005f;
|
|
||||||
--base02: #5faf00;
|
|
||||||
--base03: #d7af5f;
|
|
||||||
--base04: #5fafd7;
|
|
||||||
--base05: #808080;
|
|
||||||
--base06: #d7875f;
|
|
||||||
--base07: #d0d0d0;
|
|
||||||
--base08: #585858;
|
|
||||||
--base09: #5faf5f;
|
|
||||||
--base0A: #afd700;
|
|
||||||
--base0B: #af87d7;
|
|
||||||
--base0C: #ffaf00;
|
|
||||||
--base0D: #ff5faf;
|
|
||||||
--base0E: #00afaf;
|
|
||||||
--base0F: #5f8787;
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
/* PaperColor Light by Jon Leopard (http://github.com/jonleopard) based on PaperColor Theme (https://github.com/NLKNguyen/papercolor-theme) */
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--base00: #eeeeee;
|
|
||||||
--base01: #af0000;
|
|
||||||
--base02: #008700;
|
|
||||||
--base03: #5f8700;
|
|
||||||
--base04: #0087af;
|
|
||||||
--base05: #444444;
|
|
||||||
--base06: #005f87;
|
|
||||||
--base07: #878787;
|
|
||||||
--base08: #bcbcbc;
|
|
||||||
--base09: #d70000;
|
|
||||||
--base0A: #d70087;
|
|
||||||
--base0B: #8700af;
|
|
||||||
--base0C: #d75f00;
|
|
||||||
--base0D: #d75f00;
|
|
||||||
--base0E: #005faf;
|
|
||||||
--base0F: #005f87;
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
/* Solarized Dark by Ethan Schoonover (modified by aramisgithub) */
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--base00: #002b36;
|
|
||||||
--base01: #073642;
|
|
||||||
--base02: #586e75;
|
|
||||||
--base03: #657b83;
|
|
||||||
--base04: #839496;
|
|
||||||
--base05: #93a1a1;
|
|
||||||
--base06: #eee8d5;
|
|
||||||
--base07: #fdf6e3;
|
|
||||||
--base08: #dc322f;
|
|
||||||
--base09: #cb4b16;
|
|
||||||
--base0A: #b58900;
|
|
||||||
--base0B: #859900;
|
|
||||||
--base0C: #2aa198;
|
|
||||||
--base0D: #268bd2;
|
|
||||||
--base0E: #6c71c4;
|
|
||||||
--base0F: #d33682;
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
/* Solarized Light by Ethan Schoonover (modified by aramisgithub) */
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--base00: #fdf6e3;
|
|
||||||
--base01: #eee8d5;
|
|
||||||
--base02: #93a1a1;
|
|
||||||
--base03: #839496;
|
|
||||||
--base04: #657b83;
|
|
||||||
--base05: #586e75;
|
|
||||||
--base06: #073642;
|
|
||||||
--base07: #002b36;
|
|
||||||
--base08: #dc322f;
|
|
||||||
--base09: #cb4b16;
|
|
||||||
--base0A: #b58900;
|
|
||||||
--base0B: #859900;
|
|
||||||
--base0C: #2aa198;
|
|
||||||
--base0D: #268bd2;
|
|
||||||
--base0E: #6c71c4;
|
|
||||||
--base0F: #d33682;
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
/* tender by Jacobo Tabernero (https://github/com/jacoborus/tender.vim) */
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--base00: #282828;
|
|
||||||
--base01: #383838;
|
|
||||||
--base02: #484848;
|
|
||||||
--base03: #4c4c4c;
|
|
||||||
--base04: #b8b8b8;
|
|
||||||
--base05: #eeeeee;
|
|
||||||
--base06: #e8e8e8;
|
|
||||||
--base07: #feffff;
|
|
||||||
--base08: #f43753;
|
|
||||||
--base09: #dc9656;
|
|
||||||
--base0A: #ffc24b;
|
|
||||||
--base0B: #c9d05c;
|
|
||||||
--base0C: #73cef4;
|
|
||||||
--base0D: #b3deef;
|
|
||||||
--base0E: #d3b987;
|
|
||||||
--base0F: #a16946;
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
/* Tokyo Night Dark by Michaël Ball */
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--base00: #1A1B26;
|
|
||||||
--base01: #16161E;
|
|
||||||
--base02: #2F3549;
|
|
||||||
--base03: #444B6A;
|
|
||||||
--base04: #787C99;
|
|
||||||
--base05: #A9B1D6;
|
|
||||||
--base06: #CBCCD1;
|
|
||||||
--base07: #D5D6DB;
|
|
||||||
--base08: #C0CAF5;
|
|
||||||
--base09: #A9B1D6;
|
|
||||||
--base0A: #0DB9D7;
|
|
||||||
--base0B: #9ECE6A;
|
|
||||||
--base0C: #B4F9F8;
|
|
||||||
--base0D: #2AC3DE;
|
|
||||||
--base0E: #BB9AF7;
|
|
||||||
--base0F: #F7768E;
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
/* Tokyo Night Light by Michaël Ball */
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--base00: #D5D6DB;
|
|
||||||
--base01: #CBCCD1;
|
|
||||||
--base02: #DFE0E5;
|
|
||||||
--base03: #9699A3;
|
|
||||||
--base04: #4C505E;
|
|
||||||
--base05: #343B59;
|
|
||||||
--base06: #1A1B26;
|
|
||||||
--base07: #1A1B26;
|
|
||||||
--base08: #343B58;
|
|
||||||
--base09: #965027;
|
|
||||||
--base0A: #166775;
|
|
||||||
--base0B: #485E30;
|
|
||||||
--base0C: #3E6968;
|
|
||||||
--base0D: #34548A;
|
|
||||||
--base0E: #5A4A78;
|
|
||||||
--base0F: #8C4351;
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
/* Windows 95 Light by Fergus Collins (https://github.com/C-Fergus) */
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--base00: #fcfcfc;
|
|
||||||
--base01: #e0e0e0;
|
|
||||||
--base02: #c4c4c4;
|
|
||||||
--base03: #a8a8a8;
|
|
||||||
--base04: #7e7e7e;
|
|
||||||
--base05: #545454;
|
|
||||||
--base06: #2a2a2a;
|
|
||||||
--base07: #000000;
|
|
||||||
--base08: #a80000;
|
|
||||||
--base09: #fcfc54;
|
|
||||||
--base0A: #a85400;
|
|
||||||
--base0B: #00a800;
|
|
||||||
--base0C: #00a8a8;
|
|
||||||
--base0D: #0000a8;
|
|
||||||
--base0E: #a800a8;
|
|
||||||
--base0F: #54fc54;
|
|
||||||
}
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
/* Windows 95 by Fergus Collins (https://github.com/C-Fergus) */
|
|
||||||
|
|
||||||
:root {
|
|
||||||
--base00: #000000;
|
|
||||||
--base01: #1C1C1C;
|
|
||||||
--base02: #383838;
|
|
||||||
--base03: #545454;
|
|
||||||
--base04: #7e7e7e;
|
|
||||||
--base05: #a8a8a8;
|
|
||||||
--base06: #d2d2d2;
|
|
||||||
--base07: #fcfcfc;
|
|
||||||
--base08: #fc5454;
|
|
||||||
--base09: #a85400;
|
|
||||||
--base0A: #fcfc54;
|
|
||||||
--base0B: #54fc54;
|
|
||||||
--base0C: #54fcfc;
|
|
||||||
--base0D: #5454fc;
|
|
||||||
--base0E: #fc54fc;
|
|
||||||
--base0F: #00a800;
|
|
||||||
}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
@import 'colours.css';
|
|
||||||
@import 'typography.css';
|
|
||||||
@import 'layout.css';
|
|
||||||
@import 'header.css';
|
|
||||||
@import 'logo.css';
|
|
||||||
@import 'about.css';
|
|
||||||
@import 'footer.css';
|
|
||||||
|
|
||||||
body {
|
|
||||||
background-color: var(--bg);
|
|
||||||
color: var(--fg);
|
|
||||||
}
|
|
||||||
@@ -1,215 +0,0 @@
|
|||||||
/* Fonts */
|
|
||||||
:root {
|
|
||||||
--font-monospace: "Fira Mono", monospace;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
font-family: var(--font-monospace);
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Headings */
|
|
||||||
h1,
|
|
||||||
h2,
|
|
||||||
h3,
|
|
||||||
h4,
|
|
||||||
h5,
|
|
||||||
h6 {
|
|
||||||
font-size: 1rem;
|
|
||||||
margin: 1.5rem 0 0 0;
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1+h2,
|
|
||||||
h1+h3,
|
|
||||||
h1+h4,
|
|
||||||
h1+h5,
|
|
||||||
h1+h6,
|
|
||||||
h2+h3,
|
|
||||||
h2+h4,
|
|
||||||
h2+h5,
|
|
||||||
h2+h6,
|
|
||||||
h3+h4,
|
|
||||||
h3+h5,
|
|
||||||
h3+h6,
|
|
||||||
h4+h5,
|
|
||||||
h4+h6,
|
|
||||||
h5+h6 {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1:before { content: "# "; }
|
|
||||||
h2:before { content: "## "; }
|
|
||||||
h3:before { content: "### "; }
|
|
||||||
h4:before { content: "#### "; }
|
|
||||||
h5:before { content: "##### "; }
|
|
||||||
h6:before { content: "###### "; }
|
|
||||||
|
|
||||||
h1:before,
|
|
||||||
h2:before,
|
|
||||||
h3:before,
|
|
||||||
h4:before,
|
|
||||||
h5:before,
|
|
||||||
h6:before {
|
|
||||||
color: var(--muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
h1:first-child {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Paragraphs */
|
|
||||||
p {
|
|
||||||
margin: 0 0 1.5rem 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Links */
|
|
||||||
|
|
||||||
a:link, a:visited {
|
|
||||||
color: var(--link);
|
|
||||||
}
|
|
||||||
|
|
||||||
a:hover, a:active, a.active {
|
|
||||||
color: var(--hover);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Lists */
|
|
||||||
ul {
|
|
||||||
margin: 0 0 1.5rem 0;
|
|
||||||
padding-left: 1.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
ol {
|
|
||||||
margin: 0 0 1.5rem 0;
|
|
||||||
padding-left: 1.75rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul ul,
|
|
||||||
ul ol,
|
|
||||||
ol ul,
|
|
||||||
ol ol {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul li::marker {
|
|
||||||
content: '∗\00A0';
|
|
||||||
color: var(--muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
ol li::marker {
|
|
||||||
color: var(--muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
dt {
|
|
||||||
margin: 0;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
dd {
|
|
||||||
margin: 0 0 0 1.5rem;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
dd + dt {
|
|
||||||
margin-top: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
dl {
|
|
||||||
margin: 0 0 1.5rem 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Blockquotes */
|
|
||||||
blockquote {
|
|
||||||
position: relative;
|
|
||||||
margin: 0 0 1.5rem 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
blockquote::before {
|
|
||||||
position: absolute;
|
|
||||||
left: -1.5rem;
|
|
||||||
content: ">";
|
|
||||||
color: var(--muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.twitter-tweet::before {
|
|
||||||
content: "\f099";
|
|
||||||
font-family: "Font Awesome 5 Brands";
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Code */
|
|
||||||
pre,
|
|
||||||
code,
|
|
||||||
kbd,
|
|
||||||
samp {
|
|
||||||
background: var(--inner-bg) !important;
|
|
||||||
font-family: var(--font-monospace);
|
|
||||||
color: var(--off-fg);
|
|
||||||
}
|
|
||||||
|
|
||||||
pre {
|
|
||||||
overflow-x: auto;
|
|
||||||
padding: 1.5rem;
|
|
||||||
margin: 0 0 1.5rem 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Emphasis */
|
|
||||||
b,
|
|
||||||
strong {
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Highlighting */
|
|
||||||
::selection,
|
|
||||||
mark {
|
|
||||||
background-color: var(--highlight);
|
|
||||||
color: var(--bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Other typographic elements */
|
|
||||||
hr {
|
|
||||||
border: 0;
|
|
||||||
margin-bottom: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
hr:after {
|
|
||||||
content: '---';
|
|
||||||
color: var(--muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Prevent super/sub from affecting line height */
|
|
||||||
sup, sub {
|
|
||||||
vertical-align: baseline;
|
|
||||||
position: relative;
|
|
||||||
top: -0.25rem;
|
|
||||||
font-size: unset;
|
|
||||||
}
|
|
||||||
sub {
|
|
||||||
top: 0.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Tables */
|
|
||||||
table {
|
|
||||||
border-spacing: 0;
|
|
||||||
margin: 0 0 1.5rem 0;
|
|
||||||
overflow-wrap: anywhere;
|
|
||||||
}
|
|
||||||
th, td {
|
|
||||||
padding: 0 .75rem;
|
|
||||||
vertical-align: top;
|
|
||||||
}
|
|
||||||
th:first-child, td:first-child {
|
|
||||||
padding-left: 0;
|
|
||||||
}
|
|
||||||
th {
|
|
||||||
text-align: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Figures */
|
|
||||||
img {
|
|
||||||
max-width: 100%;
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
<svg height='100px' width='100px' fill="#000000" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 100 80.944" enable-background="new 0 0 100 80.944" xml:space="preserve"><path d="M49.674,40.911c-2.018-6.836,8.971-10.963,8.841-4.075c1.016,3.678,1.302,5.808-2.448,6.511 C52.754,43.964,50.684,44.329,49.674,40.911z"></path><path d="M57.63,18.274c-1.094,3.718,4.311,4.251,2.91,8.359c2.819,0,1.999-2.246,3.054-4.095c1.523-2.656,5.052-3.301,4.792-6.96 c0.267,6.726,4.004-0.495,6.523-0.762c0.137-1.256-0.449-2.819-0.586-3.665c-1.237-2.656-1.127-5.248-4.531-3.379 c-2.429,1.321-5.547,3.88-2.507,6.185C64.206,14.407,58.763,14.381,57.63,18.274z"></path><path d="M49.74,8.586c-1.4,0.794-2.129,3.861-2.448,5.312c-0.586,2.689-0.41,11.211,4.108,9.824 c2.558-0.774,2.103-4.674,3.092-6.719c0.671-1.36,1.634-1.139,1.992-2.584c0.261-1.061-0.345-2.721-0.508-3.802 c1.719,4.427,8.366,2.429,6.731-2.031c-1.341-1.224-3.965-1.985-5.696-1.074c-2.52,1.335-0.222,2.793-2.148,2.865 C53.542,10.416,52.487,7.037,49.74,8.586z"></path><path d="M57.012,27.454c-1.843-6.126-12.884,2.767-10.768,6.576c1.543,2.793,4.056-1.959,5.612-2.76 C53.991,30.175,57.474,31.158,57.012,27.454z"></path><path d="M61.179,4.993c1.692,0.697,3.633,0.599,3.053-1.907C61.726,1.061,54.7,0.5,54.929,5.117 C56.888,4.869,59.258,4.192,61.179,4.993z"></path><path d="M65.925,28.938c1.861-1.282,4.961-1.087,4.466-4.192c-3.093-7.058-8.854,6.973-9.343,9.381 C63.269,33.176,63.913,30.312,65.925,28.938z"></path><path d="M79.069,38.092c1.061,2.057,5.67,0.749,7.994-0.41c3.041-1.498,3.75-3.529,3.034-6.934 C88.008,22.115,76.165,32.467,79.069,38.092z"></path><path d="M71.973,41.536c2.571-2.161,1.96-9.167,1.536-12.024c-2.682-0.423-5.924,0.749-7.832,2.682 c-1.38,1.419-5.286,8.08-3.73,10.04C62.995,43.554,71.042,42.331,71.973,41.536z"></path><path d="M86.979,24.596c2.076-0.423,1.295-3.691,0.95-5.586c-0.163-5.026-5.527-0.996-4.577,2.617 C83.73,23.04,85.247,24.947,86.979,24.596z"></path><path d="M72.949,24.622c0.808,1.511,2.864,1.523,3.405,4.193c0.618,3.014-0.71,6.198-0.312,9.264 c1.939-1.582,1.621-7.285,3.326-9.941c0.99-1.556,2.155-1.784,2.188-3.613c0.026-1.276-1.224-2.942-1.861-3.991 c1.973-0.091,3.965-7.135,1.172-6.999c-1.433-2.097-3.054-2.422-3.764-0.137c-0.742,2.396,2.155,4.713,2.891,6.712 C76.556,18.15,70.319,19.674,72.949,24.622z"></path><path d="M31.172,23.834c1.374-0.072,1.152,1.224,2.506,0.651c1.374-0.573,2.331-3.079,3.21-4.225 c1.432-6.348-11.517-5.365-10.404,2.142C26.927,25.383,28.229,24.01,31.172,23.834z"></path><path d="M25.319,16.438c-0.352-2.656-4.29-3.405-5.391-0.833C19.121,17.486,24.844,22.779,25.319,16.438z"></path><path d="M23.945,31.992c-0.866,1.797-1.185,4.017-1.029,6.002c0.28,3.502,0.684,2.715,3.171,3.516 c1.354,0.423,3.613,1.705,5.039,1.484c2.91-0.476,1.569-1.322,1.022-3.354c-0.449-1.686-1.517-3.47-1.498-5.254 c0.026-2.454,2.097-4.127,1.855-6.647C30.586,22.167,25.02,29.726,23.945,31.992z"></path><path d="M13.366,25.019c1.302,0.553,1.784,2.786,3.027,3.105c1.087,0.267,2.312-1.309,4.102-1.022 c1.537,0.254,1.816,3.119,3.418,0.677c0.964-1.484,0.664-3.119,0.104-4.727c-3.281-3.197-7.409-4.844-11.589-2.708 c-0.872,0.449-4.453,1.445-2.799,2.956C11.367,24.882,11.881,24.387,13.366,25.019z"></path><path d="M52.259,2.773C50.13-1.082,39.557-1.368,41.595,4.804C42.91,8.782,52.969,7.675,52.259,2.773z"></path><path d="M12.845,26.803c-2.396,1.348-4.876,3.607-3.503,6.712c2.461,5.54,3.379,2.493,4.902-0.996 c0.417,2.317-0.091,4.739,2.351,5.898c2.649,1.243,3.737-0.078,4.017-2.78c0.189-1.784,1.387-6.289-0.957-6.862 c-1.673-0.397-3.561,2.467-5.137,2.904c0.267-0.794,0.41-1.758,0.833-2.48C14.876,28.04,13.854,27.454,12.845,26.803z"></path><path d="M40.176,17.089c0.508,2.454-2.838,5.963-4.037,7.793c0.97-0.449,0.931-0.098,1.693-0.859 c0.098,1.25,0.195,2.493,0.299,3.743c3.425-0.475,4.316,3.19,6.999-1.159c2.513-4.056-0.072-5.924-4.193-5.377 c0.794-2.331,2.956-0.163,3.49-2.708c0.527-2.494,0.514-5.039,1.028-7.533c-1.048-1.23-3.574-2.891-5.149-2.428 c-1.12,0.345-3.809,3.705-3.659,4.688C36.947,15.195,39.72,14.921,40.176,17.089z"></path><path d="M34.023,34.211c-2.474,3.418,0.912,3.457,2.201,4.916c1.341,1.51,0.866,3.62,2.624,3.939 c1.302,0.228,4.049,1.36,5.326,0.403c2.604-1.946-0.697-7.35-1.953-9.557C40.566,31.542,35.729,31.868,34.023,34.211z"></path><path d="M100,34.075c0-3.613-2.07-6.973-5.605-9.974c-1.491,0.983-3.093,1.842-4.739,2.532c2.291,1.719,3.574,3.613,3.574,5.612 c0,7.806-19.355,14.128-43.229,14.128c-23.874,0-43.229-6.322-43.229-14.128c0-2.201,1.614-4.291,4.388-6.152l-4.492-2.891 C2.455,26.406,0,30.11,0,34.075c0,0.215,0.013,0.437,0.026,0.651H0c0.326,8.444,2.943,17.298,7.259,25.579 c0,0,10.462,20.639,42.741,20.639c32.278,0,42.565-20.814,42.565-20.814c4.303-8.242,7.109-17.174,7.422-25.403h-0.014 C99.987,34.511,100,34.29,100,34.075z"></path><path d="M38.027,7.122c1.68-5.872-12.305-0.124-9.863,5.99C29.948,17.564,36.706,9.205,38.027,7.122z"></path></svg>
|
|
||||||
|
Before Width: | Height: | Size: 4.8 KiB |
@@ -1,16 +0,0 @@
|
|||||||
name = "risotto"
|
|
||||||
license = "MIT"
|
|
||||||
licenselink = "https://github.com/joeroe/risotto/blob/master/LICENSE"
|
|
||||||
description = "A minimalist, responsive theme inspired by terminal ricing aesthetics."
|
|
||||||
|
|
||||||
homepage = "https://github.com/joeroe/risotto"
|
|
||||||
demosite = "https://risotto.joeroe.io"
|
|
||||||
|
|
||||||
tags = ["responsive", "minimal", "dark mode"]
|
|
||||||
features = []
|
|
||||||
min_version = "0.41.0"
|
|
||||||
|
|
||||||
[author]
|
|
||||||
name = "Joe Roe"
|
|
||||||
homepage = "https://joeroe.io"
|
|
||||||
|
|
||||||
-10
@@ -1,10 +0,0 @@
|
|||||||
{pkgs, ...}:
|
|
||||||
pkgs.writeShellApplication {
|
|
||||||
name = "my-script";
|
|
||||||
runtimeInputs = with pkgs; [hugo];
|
|
||||||
text = ''
|
|
||||||
cat hugo/content/header.md result/nixos.md | sed "s/DATE-TIMESTAMP/$(date -u +%Y-%m-%d)/g" > hugo/content/index.md
|
|
||||||
cd hugo
|
|
||||||
hugo
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
{pkgs, ...}:
|
||||||
|
pkgs.writeShellApplication {
|
||||||
|
name = "my-script";
|
||||||
|
runtimeInputs = with pkgs; [ pandoc ];
|
||||||
|
text = ''
|
||||||
|
tmpdir=$(mktemp -d)
|
||||||
|
|
||||||
|
# Code blocks to nix code blocks
|
||||||
|
# shellcheck disable=SC2016
|
||||||
|
awk '
|
||||||
|
/^```$/ {
|
||||||
|
if (!block) {
|
||||||
|
print "```nix"; # Start of a code block
|
||||||
|
block = 1;
|
||||||
|
} else {
|
||||||
|
print "```"; # End of a code block
|
||||||
|
block = 0;
|
||||||
|
}
|
||||||
|
next;
|
||||||
|
}
|
||||||
|
{ print } # Print all lines, including those inside code blocks
|
||||||
|
' block=0 result/nixos.md > "$tmpdir"/pre.md
|
||||||
|
# inline code "blocks" to nix code blocks
|
||||||
|
# shellcheck disable=SC2016
|
||||||
|
sed '/^`[^`]*`$/s/`\(.*\)`/```nix\n\1\n```/g' "$tmpdir"/pre.md > "$tmpdir"/done.md
|
||||||
|
|
||||||
|
mkdir -p out
|
||||||
|
cp styling.css out
|
||||||
|
pandoc \
|
||||||
|
--standalone \
|
||||||
|
--highlight-style gruvbox.theme \
|
||||||
|
--metadata title="Nixarr" \
|
||||||
|
--metadata date="$(date -u '+%Y-%m-%d - %H:%M:%S %Z')" \
|
||||||
|
--css=styling.css \
|
||||||
|
-V lang=en \
|
||||||
|
-V --mathjax \
|
||||||
|
-f markdown+smart \
|
||||||
|
-o out/index.html \
|
||||||
|
"$tmpdir"/done.md
|
||||||
|
'';
|
||||||
|
}
|
||||||
+352
@@ -0,0 +1,352 @@
|
|||||||
|
/*
|
||||||
|
* I add this to html files generated with pandoc.
|
||||||
|
*/
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--bg: #fbf1c7;
|
||||||
|
--bgt: #fbf1c7;
|
||||||
|
--bge: #fbf8e4;
|
||||||
|
--bg0: #f9f5d7;
|
||||||
|
--fg0: #282828;
|
||||||
|
--ltred: #cc241d;
|
||||||
|
--ltgreen: #98971a;
|
||||||
|
--ltyellow: #d79921;
|
||||||
|
--ltblue: #458588;
|
||||||
|
--ltpurple: #b16286;
|
||||||
|
--ltaqua: #689da6;
|
||||||
|
--ltorange: #d65d0e;
|
||||||
|
--ltgrey: #7c6f64;
|
||||||
|
--dkred: #9d0006;
|
||||||
|
--dkgreen: #79740e;
|
||||||
|
--dkyellow: #b57614;
|
||||||
|
--dkblue: #076678;
|
||||||
|
--dkpurple: #8f3f71;
|
||||||
|
--dkaqua: #427b58;
|
||||||
|
--dkgrey: #3c3836;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-size: 100%;
|
||||||
|
overflow-y: scroll;
|
||||||
|
-webkit-text-size-adjust: 100%;
|
||||||
|
-ms-text-size-adjust: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
color: var(--fg0);
|
||||||
|
font-family: Georgia, Palatino, 'Palatino Linotype', Times, 'Times New Roman', serif;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 1.7;
|
||||||
|
padding: 1em;
|
||||||
|
margin: auto;
|
||||||
|
max-width: 38em;
|
||||||
|
background: var(--bg0);
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: var(--ltblue);
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:visited {
|
||||||
|
color: var(--dkblue);
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
color: var(--ltblue);
|
||||||
|
}
|
||||||
|
|
||||||
|
a:active {
|
||||||
|
color: var(--ltblue);
|
||||||
|
}
|
||||||
|
|
||||||
|
a:focus {
|
||||||
|
outline: thin dotted;
|
||||||
|
}
|
||||||
|
|
||||||
|
*::-moz-selection {
|
||||||
|
/* background: var(--ltred); */
|
||||||
|
background: rgba(255, 255, 0, 0.3);
|
||||||
|
color: var(--fg0);
|
||||||
|
}
|
||||||
|
|
||||||
|
*::selection {
|
||||||
|
background: rgba(255, 255, 0, 0.3);
|
||||||
|
color: var(--fg0);
|
||||||
|
}
|
||||||
|
|
||||||
|
a::-moz-selection {
|
||||||
|
background: rgba(255, 255, 0, 0.3);
|
||||||
|
color: var(--ltblue);
|
||||||
|
}
|
||||||
|
|
||||||
|
a::selection {
|
||||||
|
background: rgba(255, 255, 0, 0.3);
|
||||||
|
color: var(--ltblue);
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
color: var(--fg0);
|
||||||
|
line-height: 125%;
|
||||||
|
margin-top: 1em;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4, h5, h6 {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 2.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h5 {
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h6 {
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
color: var(--ltgrey);
|
||||||
|
margin: 0;
|
||||||
|
padding-left: 3em;
|
||||||
|
border-left: 0.5em var(--fg0) solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
display: block;
|
||||||
|
height: 2px;
|
||||||
|
border: 0;
|
||||||
|
border-top: 1px solid #aaa;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
margin: 1em 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre, code, kbd, samp {
|
||||||
|
color: var(--fg0);
|
||||||
|
font-family: monospace, monospace;
|
||||||
|
_font-family: 'courier new', monospace;
|
||||||
|
font-size: 0.98em;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
white-space: pre;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
b, strong {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
dfn {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
ins {
|
||||||
|
background: #ff9;
|
||||||
|
color: #000;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
mark {
|
||||||
|
background: #ff0;
|
||||||
|
color: #000;
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub, sup {
|
||||||
|
font-size: 75%;
|
||||||
|
line-height: 0;
|
||||||
|
position: relative;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
|
||||||
|
sup {
|
||||||
|
top: -0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
sub {
|
||||||
|
bottom: -0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul, ol {
|
||||||
|
margin: 1em 0;
|
||||||
|
padding: 0 0 0 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
li p:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul ul, ol ol {
|
||||||
|
margin: .3em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
dl {
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
dt {
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: .8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
dd {
|
||||||
|
margin: 0 0 .8em 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
dd:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
border: 0;
|
||||||
|
-ms-interpolation-mode: bicubic;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
figure {
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
margin: 1em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
figure img {
|
||||||
|
border: none;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
figcaption {
|
||||||
|
font-size: 0.8em;
|
||||||
|
font-style: italic;
|
||||||
|
margin: 0 0 .8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
margin-bottom: 2em;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
border-right: 1px solid #ddd;
|
||||||
|
border-spacing: 0;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
|
table th {
|
||||||
|
padding: .2em 1em;
|
||||||
|
background-color: #eee;
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
border-left: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
table td {
|
||||||
|
padding: .2em 1em;
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
border-left: 1px solid #ddd;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
.author {
|
||||||
|
font-size: 1.2em;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 480px) {
|
||||||
|
body {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media only screen and (min-width: 768px) {
|
||||||
|
body {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media print {
|
||||||
|
* {
|
||||||
|
background: transparent !important;
|
||||||
|
color: black !important;
|
||||||
|
filter: none !important;
|
||||||
|
-ms-filter: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-size: 12pt;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
a, a:visited {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
height: 1px;
|
||||||
|
border: 0;
|
||||||
|
border-bottom: 1px solid black;
|
||||||
|
}
|
||||||
|
|
||||||
|
a[href]:after {
|
||||||
|
content: " (" attr(href) ")";
|
||||||
|
}
|
||||||
|
|
||||||
|
abbr[title]:after {
|
||||||
|
content: " (" attr(title) ")";
|
||||||
|
}
|
||||||
|
|
||||||
|
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after {
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
pre, blockquote {
|
||||||
|
border: 1px solid #999;
|
||||||
|
padding-right: 1em;
|
||||||
|
page-break-inside: avoid;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr, img {
|
||||||
|
page-break-inside: avoid;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
max-width: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
@page :left {
|
||||||
|
margin: 15mm 20mm 15mm 10mm;
|
||||||
|
}
|
||||||
|
|
||||||
|
@page :right {
|
||||||
|
margin: 15mm 10mm 15mm 20mm;
|
||||||
|
}
|
||||||
|
|
||||||
|
p, h2, h3 {
|
||||||
|
orphans: 3;
|
||||||
|
widows: 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2, h3 {
|
||||||
|
page-break-after: avoid;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user