Skip to content

Commit

Permalink
[docs-beta] Map API lifecycle flags to style level for docs beta
Browse files Browse the repository at this point in the history
  • Loading branch information
maximearmstrong committed Jan 9, 2025
1 parent 4a531e2 commit 979a328
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

0 comments on commit 979a328

Please sign in to comment.