Is there a mode in Stash to serve HTML files repsecting their mime-type? We used to use WebSVN, which had this feature, which meant we could save the doxygen output into source control, and then browse it from within our source control viewer.
Something like how you can append &raw to the URL...
Hi Kevin,
I may have been a bit hasty. You might be interested in the following feature request, which you should cast a vote on:
https://jira.atlassian.com/browse/STASH-4099
Cheers,
Charles
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kevin,
I've got the bare essentials of a plugin if you're still interested:
https://bitbucket.org/cofarrell/stash-website-plugin
Still needs a link from Stash, at the moment you need to hard-code the URL.
Charles
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you! I really appreciate this, got it up and running already. Let me know if you have further updates.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kevin,
Unfortunately not. Stash uses a common Atlassian HTTP library to handle raw files, and in the case of html files we intentially set the content disposition to 'attachment' to avoid any potential XSS attacks.
It wouldn't be hard to write a simple plugin that serves up html files with the correct headers, but it's unlikely something Stash will do.
Cheers,
Charles
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.