Skip to content

Commit

Permalink
[docs-beta] Map API lifecycle flags to style levels for docs beta (#2…
Browse files Browse the repository at this point in the history
…6846)

## Summary & Motivation

Map the Preview, Beta and Superseded flags to warning level for
Docusaurus/docs beta styling. See comment
[here](#26821 (comment)).
  • Loading branch information
maximearmstrong authored Jan 9, 2025
1 parent d89f4db commit 8630c1f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,12 @@ def _flag_to_level(self, flag_type: str) -> str:
level = "info"
if flag_type == "experimental":
level = "warning"
if flag_type == "preview":
level = "warning"
if flag_type == "beta":
level = "warning"
if flag_type == "superseded":
level = "warning"
if flag_type == "deprecated":
level = "danger"
return level
Expand Down

2 comments on commit 8630c1f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for dagster-docs ready!

✅ Preview
https://dagster-docs-ex7wdjx34-elementl.vercel.app
https://master.dagster.dagster-docs.io

Built with commit 8630c1f.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link

@github-actions github-actions bot commented on 8630c1f Jan 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for dagster-docs-beta ready!

✅ Preview
https://dagster-docs-beta-22ouhnnqa-elementl.vercel.app

Built with commit 8630c1f.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.