Skip to content

Commit

Permalink
Use mdbook include over custom script
Browse files Browse the repository at this point in the history
  • Loading branch information
jpikl committed Jul 22, 2023
1 parent 14233e2 commit ff17028
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 24 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![Downloads](https://img.shields.io/crates/d/rew)](https://crates.io/crates/rew)
[![License](https://img.shields.io/crates/l/rew.svg)](https://github.com/jpikl/rew/blob/master/LICENSE.md)

<!--[DOCS_CONTENT_START]-->
<!-- ANCHOR: description -->

**rew** is a collection of small command-line tools for text processing, bundled in a single binary.

Expand All @@ -17,13 +17,13 @@ These tools try to follow the Unix philosophy:
- They process text streams.
- They are easily composable.

<!--[DOCS_CONTENT_END]-->
<!-- ANCHOR_END: description -->

## Documentation

Visit [rew website](https://jpikl.github.io/rew) for installation instructions, usage and more.

<!--[DOCS_CONTENT_START]-->
<!-- ANCHOR: showcase -->

## Showcase

Expand Down Expand Up @@ -101,7 +101,7 @@ Or into a tool like [GNU parallel](https://www.gnu.org/software/parallel/paralle
> find src -type f | rew x 'mv {} dst/{base}.{ext | lower | replace eg g}' | parallel
```

You are not limited only to `rew` subcommands. Call whatever tool you like.
You are not limited only to `rew` subcommands. Call whatever tool you like.
For example, let's use `sed` instead of `rew replace` command:

```sh
Expand All @@ -110,7 +110,7 @@ For example, let's use `sed` instead of `rew replace` command:

Have fun using rew!

<!--[DOCS_CONTENT_END]-->
<!-- ANCHOR_END: showcase -->

## License

Expand Down
2 changes: 0 additions & 2 deletions book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ src = "docs"
[output.html]
git-repository-url = "https://github.com/jpikl/rew"
git-repository-icon = "fa-github"

[preprocessor.cmdrun]
3 changes: 2 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Introduction

<!-- cmdrun ./import.sh ../README.md -->
{{#include ../README.md:description}}
{{#include ../README.md:showcase}}

## License

Expand Down
16 changes: 0 additions & 16 deletions docs/import.sh

This file was deleted.

0 comments on commit ff17028

Please sign in to comment.