Socket
Book a DemoInstallSign in
Socket

docdoctor

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docdoctor

Fix up rST

0.1.2
latest
npmnpm
Version published
Weekly downloads
130
27.45%
Maintainers
1
Weekly downloads
 
Created
Source

Docdoctor

A tool for hacking rST

Build & Run

Clone the repo, then:

cd docdoctor
npm install
npm run build
node . --help

Commands (Incomplete List)

Readability

The getReadabilityText command takes file paths as arguments, delimited by spaces. Pass in a snooty.toml with the flag --snootyTomlPath.

This command parses traverses nodes in each file to convert the rst to plain text. It outputs the plain text for each file as a new file in an output directory, using the same name and directory structure as the input path.

For example, an rST file at test/delete-a-realm.txt outputs as plain text to output/test/delete-a-realm.txt.

In addition to converting the rST to plain text, this command removes markup and things that would skew readability scores, such as code examples. It also adds punctuation to titles and makes other small tweaks to things that would otherwise falsely impact the readability score of the page text.

Usage Example:

node . getReadabilityText test/readability/delete-a-realm.txt --snootyTomlPath=test/readability/snooty.toml

FAQs

Package last updated on 30 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.