Skip to content

Add experimental-skip-synthesized-symbols parameter for doc generation on SPI #2177

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

Merged

Conversation

finestructure
Copy link
Contributor

As just discussed on the Documentation WG, setting this parameter shrinks the generated docs down dramatically:

normal:
mb size:    708.0
file count: 84,619


skip synthesized symbols:
mb size:    155.0
file count: 17,537

cc @ethan-kusters

.spi.yml Outdated
@@ -21,3 +21,5 @@ builder:
- SwiftSyntaxMacros
- SwiftSyntaxMacroExpansion
- SwiftSyntaxMacrosTestSupport
custom_documentation_parameters: [--experimental-skip-synthesized-symbols]
swift_version: '5.9'
Copy link
Contributor Author

@finestructure finestructure Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ethan mentioned the flag should be supported on 5.8 as well (which is what we use to generate the docs by default), so this additional key is perhaps not necessary. I can run a test before merging.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've confirmed this works on 5.8 and with the double dash command.

Size (/MB): 146.0
File count: 16557

@ahoppen
Copy link
Member

ahoppen commented Sep 12, 2023

@swift-ci Please test

@ahoppen ahoppen enabled auto-merge September 12, 2023 15:05
@ahoppen ahoppen merged commit ddd05ef into swiftlang:main Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants