2021-05-11 02:29:21 +02:00
|
|
|
# zsh-manual-mdbook
|
|
|
|
|
2021-05-17 20:55:48 +02:00
|
|
|
[Zsh Manual](https://zsh-manual.netlify.app)
|
|
|
|
|
|
|
|
[Zsh User's Guide by Peter Stephenson](https://zsh-user-guide.netlify.app)
|
|
|
|
|
2021-05-11 02:29:21 +02:00
|
|
|
This is a markdown version of the [Zsh Manual](http://zsh.sourceforge.net/Doc/).
|
|
|
|
It is generated with a Bash script that removes some non-markdown-friendly
|
|
|
|
elements and converts the .html files to markdown using Pandoc. The SUMMARY.md
|
|
|
|
is generated with a Python script that scrapes the web page of the Zsh Manual's
|
|
|
|
table of contents.
|
|
|
|
|
|
|
|
The scripts contained in this repository are highly specialized for this
|
|
|
|
use-case and do not scale to anything else, but I've tried to make them as
|
|
|
|
abstract as possible, so they should work on anything with the same HTML
|
|
|
|
structure.
|
|
|
|
|
|
|
|
## Why not just use the plain old Zsh Manual?
|
|
|
|
|
|
|
|
An [mdbook](https://rust-lang.github.io/mdBook/) version is easier to browse and is more
|
|
|
|
aesthetically satisfying.
|
|
|
|
|
|
|
|
## Running/testing a local version
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# Ensure mdbook is installed
|
|
|
|
cargo install mdbook
|
|
|
|
|
|
|
|
# Clone this repository
|
|
|
|
git clone https://github.com/hyperreal64/zsh-manual-mdbook
|
|
|
|
|
|
|
|
# Install Python dependencies
|
|
|
|
cd zsh-manual-mdbook
|
|
|
|
pip install -r requirements.txt
|
|
|
|
|
2021-05-11 06:29:35 +02:00
|
|
|
# Ensure DocToc is installed
|
|
|
|
sudo npm -g install doctoc
|
|
|
|
|
2021-05-11 02:29:21 +02:00
|
|
|
# Return to repository clone and run the make-mdbook script
|
|
|
|
./make-mdbook.sh
|
|
|
|
|
2021-05-11 18:24:23 +02:00
|
|
|
# Serve locally
|
2021-05-19 03:12:40 +02:00
|
|
|
cd zsh_manual/
|
2021-05-11 06:29:35 +02:00
|
|
|
mdbook serve
|
2021-05-11 02:29:21 +02:00
|
|
|
```
|