From 63808a772ed27f711c4d84798cb353023de14edf Mon Sep 17 00:00:00 2001 From: haunt98 Date: Sat, 25 Jul 2020 01:21:12 +0700 Subject: [PATCH] remove mdbook --- .github/workflows/github-pages.yml | 26 ------------------- .gitignore | 1 - .../Essential/Bash.md | 20 -------------- .../Essential/Neovim.md | 0 .../Essential/README.md | 0 Applications/Essential/bash-completion.md | 16 ++++++++++++ .../Essential/fd.md | 0 .../Essential/fzf.md | 0 .../Essential/git.md | 0 .../Essential/ripgrep.md | 0 .../Essential/rsync.md | 0 .../Essential/tldr.md | 0 .../Essential/tmux.md | 0 .../Essential/zsh.md | 0 .../Misc/Cheat.md | 0 .../Misc/Instaloader.md | 0 .../Misc/Prettier.md | 0 .../Misc/README.md | 0 .../Misc/Steam.md | 0 .../Misc/Ventoy.md | 0 .../Misc/bucklespring.md | 0 .../Misc/lazydocker.md | 0 .../Misc/mdBook.md | 0 .../Applications => Applications}/Misc/mpv.md | 0 .../Misc/ncdu.md | 0 .../Misc/redli.md | 0 .../Network/HTTPie.md | 0 .../Network/OpenSSH.md | 0 .../Network/OpenVPN.md | 0 .../Network/README.md | 0 .../Network/Telnet.md | 0 .../Network/sshuttle.md | 0 {src/Applications => Applications}/README.md | 0 .../System/Blueman.md | 0 .../System/README.md | 0 .../System/Xinput.md | 0 .../System/dnscrypt-proxy.md | 0 .../System/fstrim.md | 0 .../System/systemd-boot.md | 0 .../System/systemd-swap.md | 0 .../System/systemdJournal.md | 0 .../ANTLR/Condition.md | 0 .../ANTLR/README.md | 0 {src/Development => Development}/Docker.md | 0 {src/Development => Development}/Go/README.md | 0 {src/Development => Development}/Go/errors.md | 0 .../Development => Development}/Go/strings.md | 0 .../Development => Development}/Go/testing.md | 0 {src/Development => Development}/Go/time.md | 0 .../Python/README.md | 0 .../Python/argparse.md | 0 .../Python/black.md | 0 .../Python/main.md | 0 .../Python/subprocess.md | 0 .../Python/tarfile.md | 0 .../Python/venv.md | 0 {src/Development => Development}/README.md | 0 {src/Knowledge => Knowledge}/README.md | 0 {src/Knowledge => Knowledge}/regex.md | 0 {src/Knowledge => Knowledge}/tdop.md | 0 README.md | 15 ----------- src/SUMMARY.md => SUMMARY.md | 1 + src/appearance.md => appearance.md | 0 book.toml | 13 ---------- ...stall-archlinux.md => install-archlinux.md | 0 src/README.md | 1 - src/src/SUMMARY.md | 3 --- src/src/chapter_1.md | 1 - 68 files changed, 17 insertions(+), 80 deletions(-) delete mode 100644 .github/workflows/github-pages.yml delete mode 100644 .gitignore rename {src/Applications => Applications}/Essential/Bash.md (64%) rename {src/Applications => Applications}/Essential/Neovim.md (100%) rename {src/Applications => Applications}/Essential/README.md (100%) create mode 100644 Applications/Essential/bash-completion.md rename {src/Applications => Applications}/Essential/fd.md (100%) rename {src/Applications => Applications}/Essential/fzf.md (100%) rename {src/Applications => Applications}/Essential/git.md (100%) rename {src/Applications => Applications}/Essential/ripgrep.md (100%) rename {src/Applications => Applications}/Essential/rsync.md (100%) rename {src/Applications => Applications}/Essential/tldr.md (100%) rename {src/Applications => Applications}/Essential/tmux.md (100%) rename {src/Applications => Applications}/Essential/zsh.md (100%) rename {src/Applications => Applications}/Misc/Cheat.md (100%) rename {src/Applications => Applications}/Misc/Instaloader.md (100%) rename {src/Applications => Applications}/Misc/Prettier.md (100%) rename {src/Applications => Applications}/Misc/README.md (100%) rename {src/Applications => Applications}/Misc/Steam.md (100%) rename {src/Applications => Applications}/Misc/Ventoy.md (100%) rename {src/Applications => Applications}/Misc/bucklespring.md (100%) rename {src/Applications => Applications}/Misc/lazydocker.md (100%) rename {src/Applications => Applications}/Misc/mdBook.md (100%) rename {src/Applications => Applications}/Misc/mpv.md (100%) rename {src/Applications => Applications}/Misc/ncdu.md (100%) rename {src/Applications => Applications}/Misc/redli.md (100%) rename {src/Applications => Applications}/Network/HTTPie.md (100%) rename {src/Applications => Applications}/Network/OpenSSH.md (100%) rename {src/Applications => Applications}/Network/OpenVPN.md (100%) rename {src/Applications => Applications}/Network/README.md (100%) rename {src/Applications => Applications}/Network/Telnet.md (100%) rename {src/Applications => Applications}/Network/sshuttle.md (100%) rename {src/Applications => Applications}/README.md (100%) rename {src/Applications => Applications}/System/Blueman.md (100%) rename {src/Applications => Applications}/System/README.md (100%) rename {src/Applications => Applications}/System/Xinput.md (100%) rename {src/Applications => Applications}/System/dnscrypt-proxy.md (100%) rename {src/Applications => Applications}/System/fstrim.md (100%) rename {src/Applications => Applications}/System/systemd-boot.md (100%) rename {src/Applications => Applications}/System/systemd-swap.md (100%) rename {src/Applications => Applications}/System/systemdJournal.md (100%) rename {src/Development => Development}/ANTLR/Condition.md (100%) rename {src/Development => Development}/ANTLR/README.md (100%) rename {src/Development => Development}/Docker.md (100%) rename {src/Development => Development}/Go/README.md (100%) rename {src/Development => Development}/Go/errors.md (100%) rename {src/Development => Development}/Go/strings.md (100%) rename {src/Development => Development}/Go/testing.md (100%) rename {src/Development => Development}/Go/time.md (100%) rename {src/Development => Development}/Python/README.md (100%) rename {src/Development => Development}/Python/argparse.md (100%) rename {src/Development => Development}/Python/black.md (100%) rename {src/Development => Development}/Python/main.md (100%) rename {src/Development => Development}/Python/subprocess.md (100%) rename {src/Development => Development}/Python/tarfile.md (100%) rename {src/Development => Development}/Python/venv.md (100%) rename {src/Development => Development}/README.md (100%) rename {src/Knowledge => Knowledge}/README.md (100%) rename {src/Knowledge => Knowledge}/regex.md (100%) rename {src/Knowledge => Knowledge}/tdop.md (100%) rename src/SUMMARY.md => SUMMARY.md (97%) rename src/appearance.md => appearance.md (100%) delete mode 100644 book.toml rename src/install-archlinux.md => install-archlinux.md (100%) delete mode 100644 src/README.md delete mode 100644 src/src/SUMMARY.md delete mode 100644 src/src/chapter_1.md diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml deleted file mode 100644 index 17e9e84..0000000 --- a/.github/workflows/github-pages.yml +++ /dev/null @@ -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 diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 3006b27..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -book/ diff --git a/src/Applications/Essential/Bash.md b/Applications/Essential/Bash.md similarity index 64% rename from src/Applications/Essential/Bash.md rename to Applications/Essential/Bash.md index faa4548..236c64e 100644 --- a/src/Applications/Essential/Bash.md +++ b/Applications/Essential/Bash.md @@ -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`: diff --git a/src/Applications/Essential/Neovim.md b/Applications/Essential/Neovim.md similarity index 100% rename from src/Applications/Essential/Neovim.md rename to Applications/Essential/Neovim.md diff --git a/src/Applications/Essential/README.md b/Applications/Essential/README.md similarity index 100% rename from src/Applications/Essential/README.md rename to Applications/Essential/README.md diff --git a/Applications/Essential/bash-completion.md b/Applications/Essential/bash-completion.md new file mode 100644 index 0000000..a6cdb0c --- /dev/null +++ b/Applications/Essential/bash-completion.md @@ -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). diff --git a/src/Applications/Essential/fd.md b/Applications/Essential/fd.md similarity index 100% rename from src/Applications/Essential/fd.md rename to Applications/Essential/fd.md diff --git a/src/Applications/Essential/fzf.md b/Applications/Essential/fzf.md similarity index 100% rename from src/Applications/Essential/fzf.md rename to Applications/Essential/fzf.md diff --git a/src/Applications/Essential/git.md b/Applications/Essential/git.md similarity index 100% rename from src/Applications/Essential/git.md rename to Applications/Essential/git.md diff --git a/src/Applications/Essential/ripgrep.md b/Applications/Essential/ripgrep.md similarity index 100% rename from src/Applications/Essential/ripgrep.md rename to Applications/Essential/ripgrep.md diff --git a/src/Applications/Essential/rsync.md b/Applications/Essential/rsync.md similarity index 100% rename from src/Applications/Essential/rsync.md rename to Applications/Essential/rsync.md diff --git a/src/Applications/Essential/tldr.md b/Applications/Essential/tldr.md similarity index 100% rename from src/Applications/Essential/tldr.md rename to Applications/Essential/tldr.md diff --git a/src/Applications/Essential/tmux.md b/Applications/Essential/tmux.md similarity index 100% rename from src/Applications/Essential/tmux.md rename to Applications/Essential/tmux.md diff --git a/src/Applications/Essential/zsh.md b/Applications/Essential/zsh.md similarity index 100% rename from src/Applications/Essential/zsh.md rename to Applications/Essential/zsh.md diff --git a/src/Applications/Misc/Cheat.md b/Applications/Misc/Cheat.md similarity index 100% rename from src/Applications/Misc/Cheat.md rename to Applications/Misc/Cheat.md diff --git a/src/Applications/Misc/Instaloader.md b/Applications/Misc/Instaloader.md similarity index 100% rename from src/Applications/Misc/Instaloader.md rename to Applications/Misc/Instaloader.md diff --git a/src/Applications/Misc/Prettier.md b/Applications/Misc/Prettier.md similarity index 100% rename from src/Applications/Misc/Prettier.md rename to Applications/Misc/Prettier.md diff --git a/src/Applications/Misc/README.md b/Applications/Misc/README.md similarity index 100% rename from src/Applications/Misc/README.md rename to Applications/Misc/README.md diff --git a/src/Applications/Misc/Steam.md b/Applications/Misc/Steam.md similarity index 100% rename from src/Applications/Misc/Steam.md rename to Applications/Misc/Steam.md diff --git a/src/Applications/Misc/Ventoy.md b/Applications/Misc/Ventoy.md similarity index 100% rename from src/Applications/Misc/Ventoy.md rename to Applications/Misc/Ventoy.md diff --git a/src/Applications/Misc/bucklespring.md b/Applications/Misc/bucklespring.md similarity index 100% rename from src/Applications/Misc/bucklespring.md rename to Applications/Misc/bucklespring.md diff --git a/src/Applications/Misc/lazydocker.md b/Applications/Misc/lazydocker.md similarity index 100% rename from src/Applications/Misc/lazydocker.md rename to Applications/Misc/lazydocker.md diff --git a/src/Applications/Misc/mdBook.md b/Applications/Misc/mdBook.md similarity index 100% rename from src/Applications/Misc/mdBook.md rename to Applications/Misc/mdBook.md diff --git a/src/Applications/Misc/mpv.md b/Applications/Misc/mpv.md similarity index 100% rename from src/Applications/Misc/mpv.md rename to Applications/Misc/mpv.md diff --git a/src/Applications/Misc/ncdu.md b/Applications/Misc/ncdu.md similarity index 100% rename from src/Applications/Misc/ncdu.md rename to Applications/Misc/ncdu.md diff --git a/src/Applications/Misc/redli.md b/Applications/Misc/redli.md similarity index 100% rename from src/Applications/Misc/redli.md rename to Applications/Misc/redli.md diff --git a/src/Applications/Network/HTTPie.md b/Applications/Network/HTTPie.md similarity index 100% rename from src/Applications/Network/HTTPie.md rename to Applications/Network/HTTPie.md diff --git a/src/Applications/Network/OpenSSH.md b/Applications/Network/OpenSSH.md similarity index 100% rename from src/Applications/Network/OpenSSH.md rename to Applications/Network/OpenSSH.md diff --git a/src/Applications/Network/OpenVPN.md b/Applications/Network/OpenVPN.md similarity index 100% rename from src/Applications/Network/OpenVPN.md rename to Applications/Network/OpenVPN.md diff --git a/src/Applications/Network/README.md b/Applications/Network/README.md similarity index 100% rename from src/Applications/Network/README.md rename to Applications/Network/README.md diff --git a/src/Applications/Network/Telnet.md b/Applications/Network/Telnet.md similarity index 100% rename from src/Applications/Network/Telnet.md rename to Applications/Network/Telnet.md diff --git a/src/Applications/Network/sshuttle.md b/Applications/Network/sshuttle.md similarity index 100% rename from src/Applications/Network/sshuttle.md rename to Applications/Network/sshuttle.md diff --git a/src/Applications/README.md b/Applications/README.md similarity index 100% rename from src/Applications/README.md rename to Applications/README.md diff --git a/src/Applications/System/Blueman.md b/Applications/System/Blueman.md similarity index 100% rename from src/Applications/System/Blueman.md rename to Applications/System/Blueman.md diff --git a/src/Applications/System/README.md b/Applications/System/README.md similarity index 100% rename from src/Applications/System/README.md rename to Applications/System/README.md diff --git a/src/Applications/System/Xinput.md b/Applications/System/Xinput.md similarity index 100% rename from src/Applications/System/Xinput.md rename to Applications/System/Xinput.md diff --git a/src/Applications/System/dnscrypt-proxy.md b/Applications/System/dnscrypt-proxy.md similarity index 100% rename from src/Applications/System/dnscrypt-proxy.md rename to Applications/System/dnscrypt-proxy.md diff --git a/src/Applications/System/fstrim.md b/Applications/System/fstrim.md similarity index 100% rename from src/Applications/System/fstrim.md rename to Applications/System/fstrim.md diff --git a/src/Applications/System/systemd-boot.md b/Applications/System/systemd-boot.md similarity index 100% rename from src/Applications/System/systemd-boot.md rename to Applications/System/systemd-boot.md diff --git a/src/Applications/System/systemd-swap.md b/Applications/System/systemd-swap.md similarity index 100% rename from src/Applications/System/systemd-swap.md rename to Applications/System/systemd-swap.md diff --git a/src/Applications/System/systemdJournal.md b/Applications/System/systemdJournal.md similarity index 100% rename from src/Applications/System/systemdJournal.md rename to Applications/System/systemdJournal.md diff --git a/src/Development/ANTLR/Condition.md b/Development/ANTLR/Condition.md similarity index 100% rename from src/Development/ANTLR/Condition.md rename to Development/ANTLR/Condition.md diff --git a/src/Development/ANTLR/README.md b/Development/ANTLR/README.md similarity index 100% rename from src/Development/ANTLR/README.md rename to Development/ANTLR/README.md diff --git a/src/Development/Docker.md b/Development/Docker.md similarity index 100% rename from src/Development/Docker.md rename to Development/Docker.md diff --git a/src/Development/Go/README.md b/Development/Go/README.md similarity index 100% rename from src/Development/Go/README.md rename to Development/Go/README.md diff --git a/src/Development/Go/errors.md b/Development/Go/errors.md similarity index 100% rename from src/Development/Go/errors.md rename to Development/Go/errors.md diff --git a/src/Development/Go/strings.md b/Development/Go/strings.md similarity index 100% rename from src/Development/Go/strings.md rename to Development/Go/strings.md diff --git a/src/Development/Go/testing.md b/Development/Go/testing.md similarity index 100% rename from src/Development/Go/testing.md rename to Development/Go/testing.md diff --git a/src/Development/Go/time.md b/Development/Go/time.md similarity index 100% rename from src/Development/Go/time.md rename to Development/Go/time.md diff --git a/src/Development/Python/README.md b/Development/Python/README.md similarity index 100% rename from src/Development/Python/README.md rename to Development/Python/README.md diff --git a/src/Development/Python/argparse.md b/Development/Python/argparse.md similarity index 100% rename from src/Development/Python/argparse.md rename to Development/Python/argparse.md diff --git a/src/Development/Python/black.md b/Development/Python/black.md similarity index 100% rename from src/Development/Python/black.md rename to Development/Python/black.md diff --git a/src/Development/Python/main.md b/Development/Python/main.md similarity index 100% rename from src/Development/Python/main.md rename to Development/Python/main.md diff --git a/src/Development/Python/subprocess.md b/Development/Python/subprocess.md similarity index 100% rename from src/Development/Python/subprocess.md rename to Development/Python/subprocess.md diff --git a/src/Development/Python/tarfile.md b/Development/Python/tarfile.md similarity index 100% rename from src/Development/Python/tarfile.md rename to Development/Python/tarfile.md diff --git a/src/Development/Python/venv.md b/Development/Python/venv.md similarity index 100% rename from src/Development/Python/venv.md rename to Development/Python/venv.md diff --git a/src/Development/README.md b/Development/README.md similarity index 100% rename from src/Development/README.md rename to Development/README.md diff --git a/src/Knowledge/README.md b/Knowledge/README.md similarity index 100% rename from src/Knowledge/README.md rename to Knowledge/README.md diff --git a/src/Knowledge/regex.md b/Knowledge/regex.md similarity index 100% rename from src/Knowledge/regex.md rename to Knowledge/regex.md diff --git a/src/Knowledge/tdop.md b/Knowledge/tdop.md similarity index 100% rename from src/Knowledge/tdop.md rename to Knowledge/tdop.md diff --git a/README.md b/README.md index a6cdf61..3fa1c8f 100644 --- a/README.md +++ b/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) diff --git a/src/SUMMARY.md b/SUMMARY.md similarity index 97% rename from src/SUMMARY.md rename to SUMMARY.md index 18521f2..1097ecd 100644 --- a/src/SUMMARY.md +++ b/SUMMARY.md @@ -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) diff --git a/src/appearance.md b/appearance.md similarity index 100% rename from src/appearance.md rename to appearance.md diff --git a/book.toml b/book.toml deleted file mode 100644 index 043fc21..0000000 --- a/book.toml +++ /dev/null @@ -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" diff --git a/src/install-archlinux.md b/install-archlinux.md similarity index 100% rename from src/install-archlinux.md rename to install-archlinux.md diff --git a/src/README.md b/src/README.md deleted file mode 100644 index 3fa1c8f..0000000 --- a/src/README.md +++ /dev/null @@ -1 +0,0 @@ -# Today I learned diff --git a/src/src/SUMMARY.md b/src/src/SUMMARY.md deleted file mode 100644 index 7390c82..0000000 --- a/src/src/SUMMARY.md +++ /dev/null @@ -1,3 +0,0 @@ -# Summary - -- [Chapter 1](./chapter_1.md) diff --git a/src/src/chapter_1.md b/src/src/chapter_1.md deleted file mode 100644 index b743fda..0000000 --- a/src/src/chapter_1.md +++ /dev/null @@ -1 +0,0 @@ -# Chapter 1