Added MKDOCS Material and Snippets, Commands and Shortcuts pages

This commit is contained in:
Xeovalyte 2024-01-18 11:28:55 +01:00
parent 703911efe7
commit 745f4f83a0
4 changed files with 94 additions and 0 deletions

14
docs/homelab/snippets.md Normal file
View File

@ -0,0 +1,14 @@
# Snippets
## Traefik
```yaml
labels:
- traefik.enable=true
- traefik.http.routers.service.entrypoints=websecure
- traefik.http.routers.service.rule=HOST(`service.local.xeovalyte.dev`)
- traefik.http.services.service.loadbalancer.server.port=80
networks:
default:
external: true
name: proxy
```

16
docs/linux/commands.md Normal file
View File

@ -0,0 +1,16 @@
# Commands
## NixOS
Update system
```bash
sudo nixos-rebuild switch --flake ~/system/#xv-desktop
```
Update home manager
```bash
home-manager --flake ~/system/#xeovalyte@xv-desktop switch
```
Refresh input URL's
```bash
nix flake update
```

43
docs/linux/shortcuts.md Normal file
View File

@ -0,0 +1,43 @@
# Keyboard Shortcuts
## Neovim
**Basic**
- ++ctrl+h++/++j++/++k++/++l++ : move to left / down / up / right window
- ++alt+up++/++down++/++left++/++right++ : increase / decrease -> height / width
- ++alt+h++/++j++/++k++/++l++ : move lines to left / down / up / right
- ++n++/++shift+n++ : next / previous search result
- ++ctrl+s++ : save file
- ++space+f+n++ : new file
**Neotree**
- ++space+e++ : toggle neotree
- ++period++ : change root to directory
- ++a++ : add file
- ++d++ : delete file
- ++r++ : rename file
- ++shift+h++ : toggle hidden
- ++shift+i++ : toggle gitignore
**Telescope**
- ++space+f+f++ : find files
- ++space+f+g++ : search files
- ++space+f+b++ : switch buffers
**LSP**
- ++g+l++ : show diagnostics
- ++g+d++ : go to definition
- ++g+d++ : go to declaration
- ++shift+k++ : preview
**Spell**
- ++z+equal++ : list suggestions
- ++z+g++ : mark word as good
- ++z+w++ : mark word as bad
## Minecraft

21
mkdocs.yml Normal file
View File

@ -0,0 +1,21 @@
site_name: Notes from Timo Boomers
theme:
name: material
palette:
scheme: slate
primary: blue
accent: light blue
features:
- navigation.tabs
- content.code.copy
markdown_extensions:
- def_list
- pymdownx.keys
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences