remove mdbook

main
haunt98 2020-07-25 01:21:12 +07:00
parent 3dc187f4ac
commit 63808a772e
68 changed files with 17 additions and 80 deletions

View File

@ -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
.gitignore vendored
View File

@ -1 +0,0 @@
book/

View File

@ -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`:

View File

@ -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).

View File

@ -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)

View File

@ -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)

View File

@ -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"

View File

@ -1 +0,0 @@
# Today I learned

View File

@ -1,3 +0,0 @@
# Summary
- [Chapter 1](./chapter_1.md)

View File

@ -1 +0,0 @@
# Chapter 1