A plugin to suggest documentation links when someone asks a basic question.
Project description
sopel-rtfm
A plugin to suggest documentation links when someone asks a basic question.
Installing
This plugin is built for Sopel 8.0+.
Releases are hosted on PyPI, so after installing Sopel, all you need is pip:
$ pip install sopel-rtfm
Optional extras
Optionally, you can install sphobjinv[speedup] for faster searches; this may
or may not work depending on whether your installation of Python includes the
necessary dependencies for building C extensions.
Configuring
The easiest way to configure sopel-rtfm is via Sopel's configuration
wizard—simply run sopel-plugins configure rtfm and enter the values for which
it prompts you.
Two settings exist, one of which is required:
[rtfm]
# Required: URL of the objects.inv file you want `.rtfm` to search
inventory = https://docs.project.site/objects.inv
# Optional, but useful if automatically determining the base URL doesn't work
link_base = https://docs.project.site/
Using
sopel-rtfm provides one command:
.rtfm— searches the configured Sphinx object inventory for the best match, and outputs a link to its documentation.
Changelog
0.5.0
Changed:
- Require Sopel 8.0+ (#4)
- Minimum Python version is therefore now 3.8
- Improve logging of inventory & URL settings at startup (#5)
Meta:
- Packaging modernized: goodbye
setup.cfg, hellopyproject.toml(#4)- Cleaned up some deprecated usage (
sopel.module,datetime.utcnow()) - Tweaked config wizard prompt punctuation
- Cleaned up some deprecated usage (
0.4.0
Added:
.docscommand alias, for when.rtfmfeels harsh (#2)
0.3.0
Added:
- Proper help output for
.rtfmcommand (#1)
Changed:
- Prioritize "bigger" object types when sorting results
- Simplify retrieving output URL
0.2.0
Added:
- Caching behavior: The configured Sphinx inventory is fetched at startup, and re-fetched automatically every 24 hours
- Bot admins can force an update with the new
.rtfmupdatecommand
0.1.1
Changed:
- Empty/missing query now outputs the docs' base URL instead of an error
Fixed:
rtfm_basewas left inbot.memoryaftershutdown()
0.1.0
Initial release.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sopel_rtfm-0.5.0.tar.gz.
File metadata
- Download URL: sopel_rtfm-0.5.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c92712bd11a12d238b09c0a3a5325ee3b8da99442af03a849bc7561d65126661
|
|
| MD5 |
dad5bbc9d34ae58ac94e35969c38b04b
|
|
| BLAKE2b-256 |
9be7b82ad88ff3b13445e89b674c432e74ddffd0b0222554898a176fa1e576f4
|
File details
Details for the file sopel_rtfm-0.5.0-py3-none-any.whl.
File metadata
- Download URL: sopel_rtfm-0.5.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
873dcbf004c25afad1c705e80c8eef9e4b7c04491b5843c8c78ea165afd1f905
|
|
| MD5 |
c804c625429dbc1cff6f42f8d21d5c9d
|
|
| BLAKE2b-256 |
a05962992bd35d208ffbbb68ff72de99dd4e059ea18a6c510444517a0bc5eea1
|