t-rex 0.1.1

A script for inserting a new page in a number-indexed Docusaurus directory
Documentation

Crates.io Crates.io Crates.io

T-rex

A script for inserting a new page in a number-indexed Docusaurus directory as shown here.


Installation

From crates.io:

cargo install t-rex
t-rex --help

Docs

Insert

To insert a new page:

t-rex insert <PATH TO NEW PAGE>

where a new Docusaurus page will be created if a file extension is included in the path, and a directory will be made if there is no extension.

For example, t-rex insert ./docs/05-folder will insert a new folder, while t-rex insert ./docs/05-page.md will insert a new page.

Fix

To remove gaps and reset the indices to start at 0:

t-rex fix <PATH TO DIRECTORY TO FIX> 

Contact

Email: sammy@stegabob.com

Twitter: @stegaBOB

Discord: @stegaBOB#0001