Skip to content
Myr

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

7 files+26 added−28 removed

modified:.github/workflows/ci.yml-5 removed
99 unmodified lines
100 if: matrix.os == 'ubuntu-latest'101 run: |102 ci/ubuntu-install-packages103104 - name: Install packages (macOS)105 if: matrix.os == 'macos-latest'106 run: |107 ci/macos-install-packages108104 - name: Install Rust105 uses: dtolnay/rust-toolchain@master106 with:107 toolchain: ${{ matrix.rust }}
98 unmodified lines
modified:.github/workflows/release.yml-6 removed
113 unmodified lines
114 shell: bash115 run: |116 ci/ubuntu-install-packages117118 - name: Install packages (macOS)119 if: matrix.os == 'macos-latest'120 shell: bash121 run: |122 ci/macos-install-packages123118 - name: Install Rust119 uses: dtolnay/rust-toolchain@master120 with:121 toolchain: ${{ matrix.rust }}
140 unmodified lines
modified:ci/docker/README.md+2 added-3 removed
deleted:ci/macos-install-packages-3 removed
1#!/bin/sh23brew install asciidoctor
modified:ci/ubuntu-install-packages+1 added-3 removed
9 unmodified lines
10 apt-get install -y --no-install-recommends sudo11fi12sudo apt-get update13sudo 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 zstd
modified:CHANGELOG.md+9 added
6 unmodified lines
7* `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`.1011Build process changes:1213* ripgrep's shell completions and man page are now created by running ripgrep14with a new `--generate` flag. For example, `rg --generate man` will write a15man page in `roff` format on stdout. The release archives have not changed.16* The optional build dependency on `asciidoc` or `asciidoctor` has been17dropped. Previously, it was used to produce ripgrep's man page. ripgrep now18owns this process itself by writing `roff` directly.1920Performance improvements:2122* [PERF #1760](https://github.com/BurntSushi/ripgrep/issues/1760):23 Make most searches with `\b` look-arounds (among others) much faster.
1533 unmodified lines
modified:FAQ.md+14 added-8 removed
59 unmodified lines
60<h3 name="manpage">61Does ripgrep have a man page?62</h3>6364Yes! Whenever ripgrep is compiled on a system with `asciidoctor` or `asciidoc`65present, then a man page is generated from ripgrep's argv parser. After66compiling ripgrep, you can find the man page like so from the root of the67repository:64Yes. If you installed ripgrep through a package manager on a Unix system, then65it would have ideally been installed for you in the proper location. In which66case, `man rg` should just work.6768Otherwise, you can ask ripgrep to generate the man page:6970```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```7574Running `man -l ./target/debug/build/ripgrep-79899d0edd4129ca/out/rg.1` will75show the man page in your normal pager.76Or, if your version of `man` supports the `-l/--local-file` flag, then this77will suffice:7879```80$ rg --generate man | man -l -81```8283Note that the man page's documentation for options is equivalent to the output84shown in `rg --help`. To see more condensed documentation (one line per flag),85run `rg -h`.86
944 unmodified lines