-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add doc annotation #3530
base: main
Are you sure you want to change the base?
Add doc annotation #3530
Conversation
…es page to include the referenced cookies
This is a six digit, zero padded version of the semver version number. If it is passed, then the contents of AvailableSince only get rendered if the since value is greater than the showSince value. this handles the case where we are adding a field definition into a new component. For example, the user.login.suspicious event was added in 1.30.0 and returns an authentication type. But some of those authentication types (Apple) were added before this event was added.
…new showSince attribute
note that I only disabled it in the webhooks because I fiddled with it for 15 min and couldn't figure out how to both display the interpolated variable value and use markdown for the code formatting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it'd be nice for the .json files to be pretty-printed to make future diffs easier to read.
astro/src/content/docs/apis/entities/_entity-search-request-parameters.mdx
Outdated
Show resolved
Hide resolved
astro/src/content/docs/apis/_user-search-request-parameters.mdx
Outdated
Show resolved
Hide resolved
const { showVersion } = Astro.props; | ||
--- | ||
|
||
<ul> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand the need for this and authentication-type-values.astro
. They are identical other than the logic for showing the version.
This component is only used with showVersion=true
. I think authentication-type-values.astro
can achieve the same thing by passing showSince=1.0.0
Fixed copy pasta typos and use markdown for links. Co-authored-by: Spencer Witt <[email protected]>
…sionauth-site into mooreds/add-doc-annotation
This is an update to #3503
This doc PR is tied to https://github.com/FusionAuth/fusionauth-app/pull/655
It consumes JSON generated by processing annotations and then builds reference documentation from it.
The missing piece that I'm still working on is the script which reads the annotations and builds the JSON. That will live in another repo and be called on a schedule, similar to https://github.com/FusionAuth/fusionauth-theme-history-updater/
That will require some additional permissions and work, but I wanted to get this up for review, since there's value in merging this today (since it is up to date for 1.55.1 code).