Closed Kyle-Ye closed 1 month ago
@swift-ci please test
As the individual who opened #11, I'm hugely in favor of this. I don't know what the intended pattern is in calling a command line option "experimental", but since this has a stable part of the API of DocC for some time, and is actively used and adjusted with "OTHER DOCC FLAGS" in a number of places, I'd very much prefer to drop the "experimental" from the CLI option.
I don't know what the intended pattern is in calling a command line option "experimental"
Oh, I think we'll eventually not need experimental too. It's the suggestion I got from @ethan-kusters on swift-docc Slack channel.
Reply from Slack channel: There's not - but https://github.com/apple/swift-docc-plugin/issues/11 is tracking the issue. A PR would be great! Maybe we should start with an --experimental prefixed flag? Ideally I think we'd have configuration in the Package.swift itself.
Thanks for opening this PR @Kyle-Ye! I'll be reviewing this in the upcoming days :)
Any updates on this? I'd love to adopt it in swift-mmio
Any updates on this? I'd love to adopt it in swift-mmio
I'll take some time later this week to resolve the feedback I receive from the reviewers.
Any updates on this? I'd love to adopt it in swift-mmio
I'll take some time later this week to resolve the feedback I receive from the reviewers.
There isn't any blocking feedback. I'd be happy to merge this as is and look at surfacing the new flag in the help text in a later PR.
Can we rebase and merge this?
There isn't any blocking feedback. I'd be happy to merge this as is and look at surfacing the new flag in the help text in a later PR.
Not have time to address all the PR comments. Maybe we can address them later since they are implementation details and there are downstream usage waiting this PR.
Can we rebase and merge this?
Done. I'd like to request @d-ronnqvist for a final approval since I removed experimental prefix.
@swift-ci please test
I'll take a look later today
@swift-ci please test
Bug/issue #, if applicable:
Close #11
Summary
Add symbolGraphMinimumAccessLevel option support.
The current behavior for it is for library target we assume it to be
public
and for executable target we assume it to beinternal
implemented indefaultSymbolGraphOptions
.I propose to add
symbol-graph-minimum-access-level
option in command line so that we can opt-out the defaultinternal
behavior for executable target.The usage is we want to documentation the executable target via docc bundle but we do not want to expose the internal symbol graph into the documentation.
See https://github.com/apple/swift-mmio/pull/104#issuecomment-2136710721
Dependencies
None
Testing
See ArgumentsSymbolGraphMinimumAccessLevelTests.swift
Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.
./bin/test
script and it succeededOther Link