Skip to content
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

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open

Add doc annotation #3530

wants to merge 29 commits into from

Conversation

mooreds
Copy link
Contributor

@mooreds mooreds commented Feb 20, 2025

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).

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.
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
@mooreds mooreds requested review from a team as code owners February 20, 2025 19:41
Copy link
Contributor

@bhalsey bhalsey left a 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.

const { showVersion } = Astro.props;
---

<ul>
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants