-
Notifications
You must be signed in to change notification settings - Fork 66
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
Don't trigger download of examples.peggy
in docs
#546
Comments
I'll take a PR on this. It's most likely just figuring out the correct URL. |
Unfortunately I can't seem to reproduce this locally. Both by running the dev server or by building and serving the production build. This could be caused by the deployment server's config. Edit: nor could I reproduce by accessing a deployment on a Codespace. So it seems to only happen at https://peggyjs.org/, not on any other deployment I've been able to make. |
it's a server issue, should respond with
|
Yuck. I wish they could get the MIME type from a .gitattributes entry. I guess we could ask them to add .peggy and .pegjs to their mime-db project as text/plain, but they don't have very many things in text/plain at the moment, so I bet they're going to be cautious about adding more. I wonder if there are any other creative approaches? |
nvm some type starting with some workarounds: code block with copy button, change the extension to .txt, serve a html file |
I could theoretically just assert that an |
When I click on the link that points to
js/examples.peggy
, my browser triggers a download. Personally, I'd rather read the plain text in my browser, and then I'm free to download it if I want to. Perhaps there's a configuration option to allow this behavior, by recognizing.peggy
as plain text?The text was updated successfully, but these errors were encountered: