You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 1, 2023. It is now read-only.
Add option for specifying which access levels are included (#219)
* Generate: Add an option to set the minimal access level of included symbols.
This slightly changes the behaviour of the internal data structures which
collect information on the symbols (e.g. Interface, Members and Symbol). Now,
they contain every symbol, not only the public ones. The decision which symbol
to include in the documentation is moved to the generating of the
documentation.
* Coverage: Add an option to set the minimal access level of included symbols.
* Diagram: Add an option to set the minimal access level of included symbols.
* Add a better error message for new users.
* Update README with information on the new flag.
* Provide the new access level option also in the Github action.
* Copy editing
* Use long flag for minimum access level option
* Copy edit minimum access level option help
* Copy edit minimum-access-level input description
* Add changelog entry for #219
* Copy edit minimumAccessLevel help for diagram command
Co-authored-by: Mattt <mattt@me.com>
caseletfunction as Functionwhere !function.isOperator:
@@ -76,6 +81,9 @@ extension SwiftDoc {
76
81
77
82
guard !pages.isEmpty else{
78
83
logger.warning("No public API symbols were found at the specified path. No output was written.")
84
+
if options.minimumAccessLevel ==.public {
85
+
logger.warning("By default, swift-doc only includes public declarations. Maybe you want to use --minimum-access-level to include non-public declarations?")
0 commit comments