t-rex

Crates.iot-rex
lib.rst-rex
version0.1.1
sourcesrc
created_at2022-07-02 08:55:23.007589
updated_at2022-07-03 03:53:04.101462
descriptionA script for inserting a new page in a number-indexed Docusaurus directory
homepage
repositoryhttps://github.com/stegaBOB/t-rex/
max_upload_size
id617707
size36,653
Sammy Harris (stegaBOB)

documentation

README

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

Commit count: 5

cargo fmt