remove mdbook
parent
3dc187f4ac
commit
63808a772e
|
@ -1,26 +0,0 @@
|
|||
name: GitHub Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: master
|
||||
|
||||
jobs:
|
||||
github-pages:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup mdBook
|
||||
uses: peaceiris/actions-mdbook@v1
|
||||
with:
|
||||
mdbook-version: "latest"
|
||||
|
||||
- name: Build using mdBook
|
||||
run: mdbook build
|
||||
|
||||
- name: GitHub Pages action
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./book
|
|
@ -1 +0,0 @@
|
|||
book/
|
|
@ -25,26 +25,6 @@ Shebang:
|
|||
| `CTRL-Left` | move backward a word |
|
||||
| `CTRL-W` | clear the word behind |
|
||||
|
||||
## Bash completion
|
||||
|
||||
| Distribution | Package |
|
||||
| ------------ | ----------------- |
|
||||
| Arch Linux | `bash-completion` |
|
||||
| Ubuntu | `bash-completion` |
|
||||
| Homebrew | `bash-completion` |
|
||||
|
||||
Add to `~/.bashrc`:
|
||||
|
||||
```bash
|
||||
# Arch Linux, Ubuntu
|
||||
[[ -f /usr/share/bash-completion/bash_completion ]] && \
|
||||
source /usr/share/bash-completion/bash_completion
|
||||
|
||||
# Homebrew
|
||||
[[ -f /usr/local/etc/bash_completion ]] && \
|
||||
source /usr/local/etc/bash_completion
|
||||
```
|
||||
|
||||
## macOS
|
||||
|
||||
In macOS, Bash read `~/.bash_profile` not `~/.bashrc`, so edit `~/.bash_profile`:
|
|
@ -0,0 +1,16 @@
|
|||
# Bash completion
|
||||
|
||||
| Distribution | Package |
|
||||
| ------------ | ----------------- |
|
||||
| Arch Linux | `bash-completion` |
|
||||
| Ubuntu | `bash-completion` |
|
||||
| Homebrew | `bash-completion` |
|
||||
|
||||
With Arch Linux, Ubuntu, add to `~/.bashrc`:
|
||||
|
||||
```bash
|
||||
[[ -f /usr/share/bash-completion/bash_completion ]] && \
|
||||
source /usr/share/bash-completion/bash_completion
|
||||
```
|
||||
|
||||
With Homebrew, read [Homebrew Shell Completion](https://docs.brew.sh/Shell-Completion).
|
15
README.md
15
README.md
|
@ -1,16 +1 @@
|
|||
# Today I learned
|
||||
|
||||
## Local
|
||||
|
||||
Use [mdBook](https://github.com/rust-lang/mdBook):
|
||||
|
||||
```sh
|
||||
mdbook build --open
|
||||
|
||||
mdbook watch --open
|
||||
```
|
||||
|
||||
## Deploy on GitHub
|
||||
|
||||
Use [GitHub Actions for GitHub Pages](https://github.com/peaceiris/actions-gh-pages)
|
||||
and [GitHub Actions for mdBook](https://www.youtube.com/watch?v=6Pj_AKbRD3E)
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
- [Essential](Applications/Essential/README.md)
|
||||
- [Bash](Applications/Essential/Bash.md)
|
||||
- [Neovim](Applications/Essential/Neovim.md)
|
||||
- [bash-completion](Applications/Essential/bash-completion.md)
|
||||
- [fd](Applications/Essential/fd.md)
|
||||
- [fzf](Applications/Essential/fzf.md)
|
||||
- [git](Applications/Essential/git.md)
|
13
book.toml
13
book.toml
|
@ -1,13 +0,0 @@
|
|||
[book]
|
||||
authors = ["Nguyen Tran Hau"]
|
||||
language = "en"
|
||||
multilingual = false
|
||||
src = "src"
|
||||
title = "Today I learned"
|
||||
|
||||
[build]
|
||||
create-missing = false
|
||||
|
||||
[output.html]
|
||||
default-theme = "ayu"
|
||||
preferred-dark-theme = "ayu"
|
|
@ -1 +0,0 @@
|
|||
# Today I learned
|
|
@ -1,3 +0,0 @@
|
|||
# Summary
|
||||
|
||||
- [Chapter 1](./chapter_1.md)
|
|
@ -1 +0,0 @@
|
|||
# Chapter 1
|
Loading…
Reference in New Issue