doc: scrub mentions of asciidoc/asciidoctor
Before adoption: this commit came in with the history the project adopted, so no landing records it.
This optional dependency is now finally dropped. So ends a long journey of trying to generate man pages in a lightweight and dependable way. The only thing I could figure out how to make work reliably was to just learn how to write roff myself. Yay.
authored by Andrew Gallant · committed by Andrew Gallant · parent 040d8f2 · Browse files · 7 files·+26 added−28 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
7 files+26 added−28 removed
- other:+26 added−28 removed
Provenance
- Commit
5dc424d- Tree
588f23a- Author
Andrew Gallant <jamslam@gmail.com>- Committer
Andrew Gallant <jamslam@gmail.com>- Parent
040d8f2
7 files changed+26 added−28 removed
modified:.github/workflows/ci.yml-5 removed
99 unmodified lines100 if: matrix.os == 'ubuntu-latest'101 run: |102 ci/ubuntu-install-packages103 104- - name: Install packages (macOS)105- if: matrix.os == 'macos-latest'106- run: |107- ci/macos-install-packages108-104 - name: Install Rust105 uses: dtolnay/rust-toolchain@master106 with:107 toolchain: ${{ matrix.rust }}98 unmodified linesmodified:.github/workflows/release.yml-6 removed
113 unmodified lines114 shell: bash115 run: |116 ci/ubuntu-install-packages117 118- - name: Install packages (macOS)119- if: matrix.os == 'macos-latest'120- shell: bash121- run: |122- ci/macos-install-packages123-118 - name: Install Rust119 uses: dtolnay/rust-toolchain@master120 with:121 toolchain: ${{ matrix.rust }}140 unmodified linesmodified:ci/docker/README.md+2 added-3 removed
1234567567891013 unmodified linesThese are Docker images used for cross compilation in CI builds (or locally)via the [Cross](https://github.com/rust-embedded/cross) tool.
The Cross tool actually provides its own Docker images, and all Docker imagesin this directory are derived from one of them. We provide our own in orderto customize the environment. For example, we need to install some things like`asciidoctor` in order to generate man pages. We also install compression toolsin this directory are derived from one of them. We provide our own in order tocustomize the environment. For example, we need to install compression toolslike `xz` so that tests for the `-z/--search-zip` flag are run.
If you make a change to a Docker image, then you can re-build it. `cd` into thedirectory containing the `Dockerfile` and run:13 unmodified linesdeleted:ci/macos-install-packages-3 removed
1-#!/bin/sh2-3-brew install asciidoctormodified:ci/ubuntu-install-packages+1 added-3 removed
9 unmodified lines10 apt-get install -y --no-install-recommends sudo11 fi12 sudo apt-get update13 sudo apt-get install -y --no-install-recommends \14- asciidoctor \15- zsh xz-utils liblz4-tool musl-tools \14+ zsh xz-utils liblz4-tool musl-tools brotli zstd16- brotli zstdmodified:CHANGELOG.md+9 added
6 unmodified lines7 * `rg -C1 -A2` used to be equivalent to `rg -A2`, but now it is equivalent to8 `rg -B1 -A2`. That is, `-A` and `-B` no longer completely override `-C`.9 Instead, they only partially override `-C`.10 11+Build process changes:12+13+* ripgrep's shell completions and man page are now created by running ripgrep14+with a new `--generate` flag. For example, `rg --generate man` will write a15+man page in `roff` format on stdout. The release archives have not changed.16+* The optional build dependency on `asciidoc` or `asciidoctor` has been17+dropped. Previously, it was used to produce ripgrep's man page. ripgrep now18+owns this process itself by writing `roff` directly.19+20 Performance improvements:21 22 * [PERF #1760](https://github.com/BurntSushi/ripgrep/issues/1760):23 Make most searches with `\b` look-arounds (among others) much faster.1533 unmodified linesmodified:FAQ.md+14 added-8 removed
59 unmodified lines60 <h3 name="manpage">61 Does ripgrep have a man page?62 </h3>63 64-Yes! Whenever ripgrep is compiled on a system with `asciidoctor` or `asciidoc`65-present, then a man page is generated from ripgrep's argv parser. After66-compiling ripgrep, you can find the man page like so from the root of the67-repository:64+Yes. If you installed ripgrep through a package manager on a Unix system, then65+it would have ideally been installed for you in the proper location. In which66+case, `man rg` should just work.67 68+Otherwise, you can ask ripgrep to generate the man page:69+70 ```70-$ find ./target -name rg.1 -print0 | xargs -0 ls -t | head -n171-./target/debug/build/ripgrep-79899d0edd4129ca/out/rg.171+$ mkdir -p man/man172+$ rg --generate man > man/man1/rg.173+$ MANPATH="$PWD/man" man rg74 ```75 74-Running `man -l ./target/debug/build/ripgrep-79899d0edd4129ca/out/rg.1` will75-show the man page in your normal pager.76+Or, if your version of `man` supports the `-l/--local-file` flag, then this77+will suffice:78 79+```80+$ rg --generate man | man -l -81+```82+83 Note that the man page's documentation for options is equivalent to the output84 shown in `rg --help`. To see more condensed documentation (one line per flag),85 run `rg -h`.86 944 unmodified lines