quick-doc-viewer

Crates.ioquick-doc-viewer
lib.rsquick-doc-viewer
version0.1.0
sourcesrc
created_at2022-05-29 12:46:03.777498
updated_at2022-05-29 12:46:03.777498
descriptionA quick documentation viewer for developers to preview documentations
homepage
repositoryhttps://github.com/zhangkaizhao/quick-doc-viewer
max_upload_size
id596494
size84,874
Kaizhao Zhang (zhangkaizhao)

documentation

README

Quick doc viewer

A quick documentation viewer for developers to preview documentations.

Features:

  • Sorted all file listing powered by walkdir
  • Special files, e.g. README., SUMMARY., etc. as navigation
  • Preview of Lightweight Markup documentations, currently supports Markdown
  • Support some additional Markdown features e.g. GFM table, etc. powered by comrak
  • Files can be previewed by selected format
  • Some directories e.g. .git, etc. useless for preview are ignored
  • Support encodings powered by chardetng and encodings_rs

Usage:

  1. Build the quick-doc-viewer command line program:

    git clone https://github.com/zhangkaizhao/quick-doc-viewer.git cd quick-doc-viewer/ cargo build --release

  2. Run the built quick-doc-viewer command line program under the directory of documentations:

    cd /path/to/documentations/ /path/to/quick-doc-viewer

  3. Open the URL as follow in the web browser to start preview:

    http://127.0.0.1:8080/

Commit count: 2

cargo fmt