polaris icon indicating copy to clipboard operation
polaris copied to clipboard

Support custom categories & documentation URLs

Open bkrein-vertex opened this issue 3 years ago • 4 comments

Is your feature request related to a problem? Please describe.

When writing custom checks it would be helpful to be able to put them into custom categories with custom documentation URLs to set the (?) icon link to.

Describe the solution you'd like

Perhaps a new section in the config file to define custom categories like the following:

categories:
  - name: category1
    url: https://example.com/docs/category1
  - name: category2
    url: https://example.com/docs/category2

Describe alternatives you've considered

None.

Additional context

N/A

bkrein-vertex avatar Sep 27 '22 15:09 bkrein-vertex

I believe custom categories are already supported inherently for custom checks. I definitely think adding the ability point the URL to a custom location for that category would be awesome.

sudermanjr avatar Sep 27 '22 15:09 sudermanjr

Is that true? According to the docs you can only use Security, Efficiency & Reliability:

Pasted_Image_9_27_22__12_31_PM

bkrein-vertex avatar Sep 27 '22 16:09 bkrein-vertex

Seems like the docs are wrong :-D

I was able to do custom ones during a recent demo. I can dig up the video if you like

sudermanjr avatar Sep 27 '22 16:09 sudermanjr

Confirmed that you can indeed create arbitrary categories but they're still hard-coded to a Fairwinds URL. For example I created the Business category but the links will all point to:

https://polaris.docs.fairwinds.com/checks/business

Which I don't think is customizable at this point.

bkrein-vertex avatar Sep 28 '22 14:09 bkrein-vertex