doc: revamp and cleanup

- Replace nox docgen session with a mkdocs-gen-file script that imports
  helper code from releaserr
- Perform light proofreading
- Enable smarty markdown extension for proper unicode quotes and dashes
- Use more consistent scdoc formatting
This commit is contained in:
Maxwell G 2024-02-09 05:27:39 +00:00
commit ef657fa021
Signed by: gotmax23
GPG key ID: F79E4E25E8C661F8
11 changed files with 211 additions and 103 deletions

View file

@ -7,23 +7,23 @@ SPDX-License-Identifier: GPL-2.0-or-later
# Differences between fedrq and dnf repoquery
While fedrq and `dnf repoquery` have similar functionality,
their respective interfaces have some key differences.
The author believes these differences make fedrq more powerful and more user
their respective interfaces possess some key differences.
The author believes these differences make fedrq more powerful and user
friendly, but experienced `dnf repoquery` users should keep them in mind.
## Default repositories
By default, `dnf repoquery` reads the system configuration and queries the
repositories with `enabled=1` and nothing more.
repositories with `enabled=1` in their configurations --- and nothing more.
fedrq, on the other hand, behaves more like `fedpkg`.
Queries default to `rawhide` and enable the `rawhide` and `rawhide-source`
repositories.
This can be changed using the `-b` / `--branch` flags on the CLI or permanently
with the `default_branch` option in the configuration.
changed with the `default_branch` option in the configuration.
See the [BUILTIN RELEASES](fedrq1.md/#builtin-releases) section of `man fedrq`
for valid `--branch` options.
Users can of course configure their own custom release profiles.
You can use the pseudo `-b local` release which uses the default repositories
Use the pseudo `-b local` release which includes the default repositories
with `enabled=1` in /etc/yum.repos.d and the system's releasever.
## Source repositories
@ -38,12 +38,12 @@ properly without source repositories enabled.
Release configurations contain three main parts:
- `version` - this is a regex of matching branches. For example, the repository
- `version` --- this is a regex of matching branches. For example, the repository
definition for the Fedora branches configuration is `^f(\d{2})$`. Therefore,
`--branch f37` and `--branch f36` will match this configuration and the
`$releasever` will
be set to `37` and `36`, respectively.
- `defs` - this is a mapping of profile names to a list of repository IDs. Each
- `defs` --- this is a mapping of profile names to a list of repository IDs. Each
release has a `base` profile which is the default profile for that release.
Others can be selected with `-r` / `--repo`.
@ -52,24 +52,24 @@ fedrq can read configuration from .repo files located outside of
The configuration syntax is described more in [`man 5 fedrq`](fedrq5.md).
## --latest
## `--latest`
`fedrq` applies `--latest=1` by default. This means that only one package
version will be shown for each architecture. `dnf repoquery`, on the other
hand, shows everything. You can pass `--latest=all` to fedrq to change this
behavior.
## --repo and --enablerepo
## `--repo` and `--enablerepo`
fedrq also supports these options, but they have additional functionality.
fedrq also supports `--repo` and `--enablerepo`, but they have additional functionality.
In addition `repoid`s, these options accept release-specific group names (these
are configured in a release's `defs` as explained above), and generic repo
classes.
For example, you can pass `-b f37 -r @copr:gotmax23/fedrq` to query *only* the
`fedora-37` chroot's repositories. You can pass `-b f37 --enablerepo
@copr:gotmax23/fedrq` if you want to enable that copr's repository on top of
the base repositories.
gotmax23/fedrq `fedora-37` Copr chroot's repositories.
You can pass `-b f37 --enablerepo @copr:gotmax23/fedrq` if you want to enable
that Copr's repository on top of the base repositories.
See the [REPO CLASSES](fedrq1.md/#repo-classes) section of `man fedrq` for more
information.
@ -88,6 +88,7 @@ interface.
certain package attributes.
`fedrq` supports these operations via the `pkgs` subcommand and
the `-F` / `--formatter` flag.
See the table below for some examples.
<table>
<tb>
@ -105,3 +106,6 @@ the `-F` / `--formatter` flag.
</tr>
</tb>
</table>
See the [FORMATTERS](fedrq1.md/#formatters_1) section of `man fedrq` for more
information about available formatters.