TugboatQA / docs

Tugboat Docs
https://docs.tugboat.qa
MIT License
9 stars 18 forks source link

Create custom notice shortcode styling for premium tier features #213

Closed dacharyc closed 4 years ago

dacharyc commented 4 years ago

Made a new style for a "Premium Tier Feature" callout (referred to as a "notice" shortcode in this Hugo theme).

My instinct says this should live in a custom .css somewhere instead of just appending it to the theme's .css, in the event that we ever update the theme and accidentally blow away this custom style. But I couldn't quickly figure out where that should be - i.e. where Hugo would know to look for it - and didn't want to spend too much time on this.

If we want to merge this, I can then use this notice style to add a note to the "Preview IP Filtering" feature we're documenting in #210 and denote that it's an enterprise-only feature.

I did validate that it works locally - here's what it looks like:

Screen Shot 2020-06-30 at 2 26 23 PM
q0rban commented 4 years ago

I like this a lot!

One slight tweak to the language:

- This is an enterprise-only feature
+ This feature is only available to [Tugboat Enterprise](https://www.tugboat.qa/enterprise) or On-Premise subscribers.
bchavet commented 4 years ago

Agreed. This is great!

I know this is currently proof-of-concept, but can we not lead with a question in this callout, and go straight into "This feature is only available..."