| Crates.io | t-rex |
| lib.rs | t-rex |
| version | 0.1.1 |
| created_at | 2022-07-02 08:55:23.007589+00 |
| updated_at | 2022-07-03 03:53:04.101462+00 |
| description | A script for inserting a new page in a number-indexed Docusaurus directory |
| homepage | |
| repository | https://github.com/stegaBOB/t-rex/ |
| max_upload_size | |
| id | 617707 |
| size | 36,653 |
A script for inserting a new page in a number-indexed Docusaurus directory as shown here.
cargo install t-rex
t-rex --help
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.
To remove gaps and reset the indices to start at 0:
t-rex fix <PATH TO DIRECTORY TO FIX>
Email: sammy@stegabob.com
Twitter: @stegaBOB
Discord: @stegaBOB#0001