Skip to content

Commit

Permalink
fixup! Support @DeprecationSummary in doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinsch committed Dec 11, 2024
1 parent 987a0d5 commit 0fc804c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/SwiftDocC/Semantics/Symbol/DeprecationSummary.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import Markdown
///
/// You can use the `@DeprecationSummary` directive top-level in articles, documentation extension files, or documentation comments.
///
/// > Earlier versions: Before Swift-DocC 6.1, `@DeprecationSummary` was not supported in documentation comments.
///
/// > Tip:
/// > If you are writing a custom deprecation summary message for an API or documentation page that isn't already deprecated,
/// > you should also deprecate it—using in-source annotations when possible or ``Available`` directives when in-source annotations aren't available—so that the reader knows the version when you deprecated that API or documentation page.
Expand Down
6 changes: 6 additions & 0 deletions Sources/docc/DocCDocumentation.docc/DocC.symbols.json
Original file line number Diff line number Diff line change
Expand Up @@ -2038,6 +2038,12 @@
{
"text" : ""
},
{
"text" : "> Earlier versions: Before Swift-DocC 6.1, `@DeprecationSummary` was not supported in documentation comments."
},
{
"text" : ""
},
{
"text" : "> Tip:"
},
Expand Down

0 comments on commit 0fc804c

Please sign in to comment.