-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offer pages
as pages.en
#11121
Comments
Good point. Maybe we could create a directory |
That is exactly what I thought too but the other way around. Currently a bit busy, will get back later today to discuss it in detail. |
Back again :)
Agreed, we can indeed upload the English artifact as Regarding, the pages directory we can continue using it but I will add a symlink
I think it would be highly unlikely a page directory rename would take place in the near future (other than the On a side note, the reason why I mentioned multiple times any major architectural change like directory renaming, etc would |
It doesn't work as expected. I guess the only solution then is to copy |
Unfortunately yeah, for now, we can just continue having both the files generated separately. |
What do you mean? You can generate it once and copy it. |
Yep, that works too (as it isn't symlinked). |
I am currently in the process of implementing language specific caching for tealdeer (tealdeer-rs/tealdeer#335) and came across the relevant paragraph from the spec
The special treatment of English makes programming a bit awkward, because you have to take care of it everywhere (downloading, extracting, lookup, listing, ...). I think it would be better if the only place where English gets special treatment is in the "decide which languages to try" phase and afterwards it is just a language like every other. (In tealdeer, we just pass around the string "en").
I can understand if you don't want to move
pages
topages.en
in the repository here (at this time), but I think it would be the right move in the long term. For now, I would like to ask that at least the "public" interfacetldr.sh/assets
gets rid of the special case English and offerstldr-pages.en.zip
as a redirect totldr-pages.zip
. Next, I would rephrase the spec to not mention English in the caching section and just have it say something like "download the needed languages as defined by the Languages section".(If you ever decide to rename
pages
, have you considered movingpages.de
intopages/de
etc.? This would make the root directory of the repository a bit cleaner :D)What do you think?
The text was updated successfully, but these errors were encountered: