5 releases
new 0.1.4 | Jan 8, 2025 |
---|---|
0.1.3 | Jan 8, 2025 |
0.1.2 | Jan 7, 2025 |
0.1.1 | Jan 6, 2025 |
0.1.0 | Jan 6, 2025 |
#289 in Command line utilities
200 downloads per month
24KB
233 lines
Guia
Take a look at your favorite project documentation without leaving the terminal. Guia is a simple command line tool that allows you to read offline documentation sets.
Install
Requirements
- cargo;
Command
curl -sSL https://raw.githubusercontent.com/thigcampos/guia/main/install.sh | bash -
How to use
To list all documentation sets available in your system, you can use the following command:
guia list
To display a documentation set, you can use the following command:
guia bun
To download a supported documentation set, you can use the following command:
guia add bun
Markdown renderer
Guia uses less
as the default markdown renderer, since it's available
in widely used systems, with a few exceptions, most notably Windows.
If you want to use a different markdown renderer, you must assign a new value to GUIA_MARKDOWN
.
You're free to choose any command-line tool or application that can handle markdown files, including,
but not limited to, cat
, vim
, code
, more
, and etc.
export GUIA_MARKDOWN="glow" # Recommended markdown renderer
Disclaimer: Glow is an external dependency, so you need to install it manually. It is not distributed or related with Guia.
Documentation Sets
Supported documentation sets
- Bun;
Documentation sets location
All documentation sets are stored in the docsets
directory. You may find
docsets
under the folder guia
in your OS local config directory.
- Linux/Redox:
$XDG_CONFIG_HOME
or$HOME/.config
; - macOS:
$HOME/Library/Application Support
; - Windows:
{FOLDERID_LocalAppData}
;
guia
reads docsets
to display the available docs. As of now,
you may need to install desired documentation sets manually,
since we have just a few of them officially supported.
License
Guia it's released under the MIT license. However, projects documentation may not be under the MIT license, so please check the project's documentation license before using it. See LICENSE for more information.
Dependencies
~9–21MB
~280K SLoC