#docs #pattern #sed #search-pattern #cli-tool #rust-doc

bin+lib STKLR

STKLR: pronounced 'stickler'. Is a cli tool to automatically link functions, enums, structs, traits etc in rust-doc docstrings. I couldn't find a tool like this when I needed it so... here we are.

2 releases

0.0.42 Oct 12, 2022
0.0.41 Oct 7, 2022

#1019 in Text processing

24 downloads per month

MIT license

27KB
577 lines

   _____ _______ _  ___      _____  
  / ____|__   __| |/ / |    |  __ \ 
 | (___    | |  | ' /| |    | |__) |
  \___ \   | |  |  < | |    |  _  / 
  ____) |  | |  | . \| |____| | \ \ 
 |_____/   |_|  |_|\_\______|_|  \_\
                                    
                                    

Pronounced 'stickler'.

Summary:

My favourite feature of rust-doc (the tool that automatically generates documentation from a paticular kind of docstring you can use in rust codebases) is the keyword linking. My least favourite feature of rust-doc is trying to remember to do said linking, or syntax highlighting in general as, I usually edit markdown (what rust-doc essentially makes) in a specific tool for it.

So, I made a tool to do it for me -- if you too are like me, perhaps it'll not only bring you joy, but also up the quality of your crate's docs.

Installation:

  • cargo install --git https://github.com/alphastrata/stklr

NOTE THIS APP IS BETA AT BEST, IT'S A WIP.

Usage:

Backup your codebase before using this, use source-control.

  • stklr # will bring up the help menu.
  • stklr preview #will show you changes it wants to make, changes are in green, source files and line numbers etc are all there.
  • stklr fix# will make changes to all the files you saw above, with preview.

Bugs:

  • Make in issue/PR -- include the text that threw it off.

Contributing:

  • not yet.

More release platforms etc:

  • later, not in beta stage.

Dependencies

~5–7MB
~113K SLoC