-
-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide optional anchor property for single rule definition used by documentationUrl #1356
Comments
Hey!
If I understand correctly, each rule has a different URL (anchor in this case), right? In such case, what about providing an ability to override |
Hi @P0lip , I think there are two possible ways:
I will give you an example: so it can be something like this: documenationUrl: http://mydocumenation.com/guidelines What about providing an additional attribute for each rule (e.g. anchor or documenationUrl) and depending on the value (is it a relative or absolute path) it will be added the base documentationUrl (in case of relative) or used as its own documentationUrl (in case of absolute)? What do you think? |
I'm okay with the first option, namely "Override the documentationUrl for each rule as you mentioned.". |
Hi @P0lip, yes that sounds really good. I agree, this will give the most flexibility, |
hi @P0lip, thanks a lot for providing the new feature. Appreciate it very much. Do you know, when this will be available in Stoplight Studio Desktop? |
User story.
As a rule developer, I can define user friendly rule names and additional anchors, so that I can point to specific sections of my existing documentation.
Is your feature request related to a problem?
Our API style guide is stored in a CMS system, which does generate anchors, but not user friendly ones.
So we cannot use the documentationUrl feature, because we have to use currently the ugly generated anchors as rule name.
Describe the solution you'd like
Provide an additional optional property (anchor) for each rule definition. If this anchor is available in the rule definition, append it to the base documentationUrl instead of using the rule name.
Additional context
Relates to https://github.com/stoplightio/studio/issues/445
The text was updated successfully, but these errors were encountered: