sablier-labs / docs

Documentation and guides for Sablier
https://docs.sablier.com
GNU General Public License v3.0
16 stars 7 forks source link

Do not replace "Git Source" URLs #123

Closed PaulRBerg closed 9 months ago

PaulRBerg commented 9 months ago

There's a bug in the autogen script that causes "Git Source" URLs to be incorrect replaced with local URLs:

https://github.com/sablier-labs/v2-docs/blob/2096bb65880a4809ba52a4b06a46ae2ef4fe3058/scripts/autogen.sh#L80-L84

The solution is to add a capturing group so that the Git Source URL remain untouched.

I'm not sure how the script used to work before. It is possible that Foundry changes something the way the docs are generated, or that sd changed its regex parsing rules.