Loading assets from Rails app in docs page #475
-
Is there a documented or recommended way to get application assets into the layout that renders doc pages? In my case, I'd like our own icon font to be present in order to use that without needing to embed a component. Of course I could override the skeleton or controller, but that would require duplicating a lot of the layout. For now I'm working around it by simply calling a helper that loads the font in the md.erb itself. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @oliverguenther, at the moment there isn't I'm afraid 😕 The reason for this is that if users can customise the styling via adding arbitrary CSS then it means that if any new version of Lookbook makes changes to the markup/structure/display of those documentation pages it could be a breaking change for anyone who has customised it, even if it was a minor version bump. I realise that is not ideal and that people will probably find ways around it anyway but it's not something that Lookbook officially supports at this time. However I'd love to make the doc pages more flexible and customisable, that is definitely something that is in the backlog although quite what shape it will take I'm not sure yet. Sorry I can't be of more help with this one! |
Beta Was this translation helpful? Give feedback.
Hey @oliverguenther, at the moment there isn't I'm afraid 😕
The reason for this is that if users can customise the styling via adding arbitrary CSS then it means that if any new version of Lookbook makes changes to the markup/structure/display of those documentation pages it could be a breaking change for anyone who has customised it, even if it was a minor version bump.
I realise that is not ideal and that people will probably find ways around it anyway but it's not something that Lookbook officially supports at this time. However I'd love to make the doc pages more flexible and customisable, that is definitely something that is in the backlog although quite what shape it will take I'm n…