Closed lmorchard closed 6 years ago
Pull Request: https://FirefoxUX.github.io/photon-components-web/pull/61 Branch: https://FirefoxUX.github.io/photon-components-web/branches/use-custom-index-template Storybook: https://FirefoxUX.github.io/photon-components-web/commits/63433ec4691756f2ca587de6cde3d57f8a81ff12/ Build: https://FirefoxUX.github.io/photon-components-web/commits/63433ec4691756f2ca587de6cde3d57f8a81ff12/dist.zip
This is kind of ugly, because this part of storybook isn't easy to customize cleanly. But, it should let us specify EJS templates for the HTML.
Right now, there's just one template, but I can tweak this to use different templates for the overall management UI vs the story frame if we need to customize more specifically.
There's no particular urgency to this PR - just if it seems useful to have, we can do this. We can also close this and just keep the branch around until/unless we need it.
This looks good to me, I'll merge, but feel free to revert if you feel necessary.
Hacks in webpack.config.js to override the template file used for HTML generation in storybook
Tweaked index.ejs with custom title and favicons
Copied favicons over from Photon Design System
Dropped client-side document.title hack from manager-head
Add local copy of github-gist.min.css for code samples