Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nwg-piotr/nwg-readme-browser
WebKitGTK-based README file browser
https://github.com/nwg-piotr/nwg-readme-browser
docs documentation gtk3 nwg-shell readme
Last synced: about 2 months ago
JSON representation
WebKitGTK-based README file browser
- Host: GitHub
- URL: https://github.com/nwg-piotr/nwg-readme-browser
- Owner: nwg-piotr
- License: mit
- Created: 2024-01-24T10:31:31.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-02-19T00:12:20.000Z (10 months ago)
- Last Synced: 2024-10-10T22:02:37.866Z (2 months ago)
- Topics: docs, documentation, gtk3, nwg-shell, readme
- Language: Python
- Homepage:
- Size: 45.9 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
nwg-readme-browser
This program is a part of the [nwg-shell](https://nwg-piotr.github.io/nwg-shell) project.
**Nwg-readme-browser** was conceived as [rtfm](https://en.wikipedia.org/wiki/RTFM) with a graphical user interface.
It searches the `/usr/share/doc` path for `README.*` files, and displays them in WebKit2.WebView.
It supports `.md`, `.rst`, `.html` and plain text. It does not support `.pdf` format. Although the program was written
with nwg-shell for [sway](https://github.com/swaywm/sway) and [Hyprland](https://github.com/hyprwm/Hyprland) in mind, it may also be used standalone.## Usage
Use the side menu to select the README file to preview. Basic navigation is provided by toolbar at the top of the side
bar. Below it there is a search entry that allows you to filter the file list.### Arguments
Instead of all README.* files, the program may only display those that belong to packages enumerated in the config file,
or the internally defined set (nwg-shell-related). Use a command line argument for this.```text
$ nwg-readme-browser -h
usage: nwg-readme-browser [-h] [-v] [-i] [-c]options:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-i, --internal only list Internally defined packages (nwg-shell components)
-c, --config only list packages enumerated in the `~/.config/nwg-icon-
browser/config.json` file
```## Installation
[![Packaging status](https://repology.org/badge/vertical-allrepos/nwg-readme-browser.svg)](https://repology.org/project/nwg-readme-browser/versions)
Clone the [repository](https://github.com/nwg-piotr/nwg-readme-browser) and run the `install.sh` script.
## Configuration
The config file is placed in `~/.config/nwg-readme-browser/config.json` (unless you set the `$XDG_CONFIG_HOME` variable
a different way). By default, it looks as below:```json
{
"doc-dir": "/usr/share/doc",
"default-zoom": 1.0,
"packages": [
"nwg-package-1",
"nwg-package-2",
"(...)"
]
}
```- `"doc-dir"`: path where we look for directories with README files
- `"default-zoom"`: default zoom level when the program starts
- `"packages"`: list of packages that the program running with the `--config` argument will look forYou may preinstall your own config file. Otherwise, it will be created on first run, on the basis of `--internal` defaults.