Compare commits

...

10 Commits

Author SHA1 Message Date
ea842de5d2 Убрал заглушку с главной
All checks were successful
Build MkDocs / build-and-deploy (push) Successful in 0s
2025-01-11 20:55:09 +03:00
cce9be20c3 Добавил GitHub 2025-01-11 20:53:46 +03:00
3fae528fc6 Копирайт и ссылка на гитхаб 2025-01-11 20:15:03 +03:00
f218c03b26 Всё равно на русском пишу 2025-01-11 20:05:32 +03:00
c2282ee0a3 Алиасы в Git 2025-01-11 20:00:31 +03:00
8dc4a3ef55 Возможность копировать ссылки на раздел 2025-01-11 19:41:15 +03:00
b384aa2d77 .obsidian в .gitignore 2025-01-11 19:33:17 +03:00
fba1962578 Настройка блоков с кодом 2025-01-11 19:32:26 +03:00
770ea1f496 Настройки горизонтального меню 2025-01-11 19:00:07 +03:00
da5d1b1c96 theme toggle 2025-01-11 18:10:24 +03:00
6 changed files with 99 additions and 22 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
site/ site/
.obsidian/

3
docs/README.md Normal file
View File

@@ -0,0 +1,3 @@
Просто склад моих заметок доступный всем.
Можно предлагать правки и дополнения на [GitHub](https://github.com/Arity-T/knowledge-base).

39
docs/git/aliases.md Normal file
View File

@@ -0,0 +1,39 @@
# Алиасы команд в Git
## Полезные ссылки
- [Раздел](https://githowto.com/ru/aliases) в GitHowTo
## Мои алиасы
Просто выполнить в терминале:
```sh
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.cim "commit -m"
git config --global alias.st status
git config --global alias.br branch
git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short"
git config --global alias.histt "log --pretty=format:'%h %cd | %s%d [%an]' --graph --date=iso"
git config --global alias.ad "add -A"
```
Пример использования:
```sh
git st # git status
git co main # git checkout main
git cim "Some changes" # git commit -m
```
## Создание алиасов
```sh
git config --global alias.<alias> <command>
```
## Вывести список алиасов
```sh
git config --global --get-regexp alias
```
## Удаление алиасов
[Вопрос](https://stackoverflow.com/a/48110875/17341937) на StatckOverflow
```sh
git config --global --unset-all alias.your-alias
```

View File

@@ -1,20 +0,0 @@
# Welcome to MkDocs
For full documentation visit [mkdocs.org](https://www.mkdocs.org).
## Commands
* `mkdocs new [dir-name]` - Create a new project.
* `mkdocs serve` - Start the live-reloading docs server.
* `mkdocs build` - Build the documentation site.
* `mkdocs -h` - Print help message and exit.
## Project layout
mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.
Gitea actions testing
Final test

View File

@@ -0,0 +1,3 @@
.md-source__facts {
display: none;
}

View File

@@ -1,7 +1,58 @@
site_name: Tishenko's knowledge base site_name: Tishenko's knowledge base
site_url: https://kb.tishenko.dev site_url: https://kb.tishenko.dev
copyright: Copyright &copy; 2025
repo_url: https://github.com/Arity-T/knowledge-base
repo_name: Arity-T/knowledge-base
edit_uri: edit/main/docs/
theme: theme:
name: material name: material
language: ru
favicon: assets/favicon.ico favicon: assets/favicon.ico
icon:
repo: fontawesome/brands/github
features:
- navigation.instant
- navigation.tabs
- content.code.copy
- content.action.edit
- content.action.view
palette:
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: black
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: black
toggle:
icon: material/brightness-4
name: Switch to light mode
extra: extra:
generator: false generator: false
social:
- icon: fontawesome/brands/github
link: https://github.com/Arity-T
markdown_extensions:
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences
- toc:
permalink: "#"
slugify: !!python/object/apply:pymdownx.slugs.slugify
kwds:
case: lower
extra_css:
- stylesheets/extra.css