Skip to main content

A modern CLI and web-based viewer for reStructuredText files.

Project description

rst-previewer

GitHub License PyPI - Version Python 3.6

A modern CLI tool that finds reStructuredText (.rst) files in a directory and displays them in a clean, web-based Gradio interface. Perfect for quickly previewing documentation, articles, or notes without a full Sphinx build.

Installation

This tool is designed to be installed and run in an isolated environment using pipx. This avoids cluttering your global Python installation.

Install rst-previewer:

pipx install rst-previewer

That's it! The rst-previewer command is now available anywhere in your terminal.

Usage

Select a file from a directory:

rst-previewer /path/to/your/project/docs/

The tool will print a local URL to your terminal. Open this URL in your web browser to see the rendered document.

Development Guide

Interested in contributing? Setting up a development environment is easy.

Prerequisites

  • Git
  • Python 3.10+
  • uv

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

rst_previewer-0.1.2.tar.gz (564.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rst_previewer-0.1.2-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file rst_previewer-0.1.2.tar.gz.

File metadata

  • Download URL: rst_previewer-0.1.2.tar.gz
  • Upload date:
  • Size: 564.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for rst_previewer-0.1.2.tar.gz
Algorithm Hash digest
SHA256 928500c0e64ef5eff4908f7cf9ec04991d6cc82ca51f002318afd836f153312c
MD5 d1b9104577cf2399423cc705aedc7582
BLAKE2b-256 c2cddb623379aebaae1a1d1e8e8ef9104b9cd309390a03c74777e2176177ffef

See more details on using hashes here.

File details

Details for the file rst_previewer-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for rst_previewer-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b25b2bbfd98b6c597af9a6cf2a40b785f333711122934ed7601719de62f0e9f1
MD5 49b8342c4f22330110db48b71df30605
BLAKE2b-256 227636b323067c93a2e16a17cc27b90e7795f7f64a968f70169302791c0ea02c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page