-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update .spi file to remove internal symbol for SVD2Swift #104
Conversation
I've verified the .spi.yml file by |
Yes, we have an online validator: https://swiftpackageindex.com/validate-spi-manifest |
I mean consuming We can see the doc build with the doc icon one in SwiftPackageIndex but the log does not include the build command. Anyway, following the knowledge I got from this issue. I assume SPI will use the following command to build SVD2Swift.
And after the new .spi change, it will become to use the following command.
But sadly swift-docc-plugin does not support customize it currently. |
The upstream has landed "minimum-access-level" support but have not released a version yet. We need to add swift-docc-plugin main branch dependency manually in this repo's Package.swift or wait for a new release since SPI is using cc @rauhul After merging the PR and waiting the SPI pipeline update, you can see the updated doc hosted on https://swiftpackageindex.com/apple/swift-mmio/main/documentation/svd2swift |
https://github.com/swiftlang/swift-docc-plugin/releases/tag/1.4.0 is released. And I believe this PR is ready for a merge. |
FYI, that syntax with two |
The config is an array, yes. It's so you can have different configs per Swift version / platform. |
All the targets will use the same Swift version / platform. The use case here is that we'd like to give "SVD2Swift" target some custom_documentation_parameters while not effecting other targets. Do you know what is the proper way to do it now? Or is it a feature currently not supported by SPI? @finestructure |
Unfortunately that's not supported and I can't think of way to work around that :( |
Update: Or we can just add "--minimum-access-level public" for all targets and keeps using SPI. |
Just to manage expectations, it's unlikely we'll support per target custom docc arguments anytime soon. It's more likely that we'd support hosting pre-rendered doc archives that we'd copy and host. |
I'm like 95% confident that enabling |
Checking the SPI doc build log and latest main doc hosted on SPI. The internal symbols are still there due to '--minimum-access-level public' is not correctly handled. The swift-docc-plugin is correctly set to 1.4.1.
|
Does this flag need Swift 6 perhaps? |
Spot the issue. The correct key should be |
By the way, I also noticed another issue on the log. What should we do to fix it? @finestructure
|
If this persists after the flag change please open an issue and I'll take a closer look! |
Yes. I can just reproduce it locally on my machine. Open the issue via SwiftPackageIndex/SwiftPackageIndex-Server#3343 |
There is still something wrong with it. Tracking the issue on SPI-Server. |
Replace this paragraph with a description of your changes and rationale. Provide links to an existing issue or external references/discussions, if appropriate.
Checklist