dbrgn / tealdeer

A very fast implementation of tldr in Rust.
https://dbrgn.github.io/tealdeer/
Apache License 2.0
4.06k stars 123 forks source link

Add configuration option for archive_url #337

Open mipedja opened 12 months ago

mipedja commented 12 months ago

This allows for specifying a custom archive URL as an alternative approach to Custom Pages.

niklasmohrin commented 12 months ago

Thank you for submitting this PR! I can see from your example code that the motivation for this change seems to be to host your own internal pages - cool idea, I agree that it could be useful.

We need to think about #335 here though. A new version of the client spec is apparently about to be released (see https://github.com/tldr-pages/tldr/pull/10148) which will specify where clients (including tealdeer) will look for language specific archives. So I think we should wait until that is all cleared up and then take note in our documentation accordingly. I will hence mark this as draft for now :)