Reducing file entries in Docc to static site conversion

I want to significantly reduce the amount of file entries generated because currently ever protocol etc is generated which I don't want to.

I browsed through the swift forum and I cannot find anything that helped with this.
Tried using OTHER_SWIFT_FLAGS=-"skip-synthesized-symbols" but the documentation fails.

Is there any other way to skip synthesized symbols by some flag that I can include in my below code?

Current Script:

xcodebuild docbuild \
        -workspace Example.xcworkspace \
        -scheme "$SCHEME" \
        -destination "$DESTINATION" \
        -derivedDataPath "$DERIVED_DATA_PATH" \
        CODE_SIGN_IDENTITY="" \
        CODE_SIGNING_REQUIRED=NO \
        CODE_SIGNING_ALLOWED=NO 
      

xcrun docc process-archive transform-for-static-hosting "$DOCCARCHIVE_PATH" \
      --output-path "$OUTPUT_PATH" \
      --hosting-base-path "$BASE_PATH"

Also tried using
OTHER_SWIFT_FLAGS="-skip-protocol-implementations" but no luck

Try

... docbuild ... OTHER_DOCC_FLAGS="-skip-synthesized-symbols"

that should do the trick.

(or --skip-synthesized-symbols – I'm never sure which parts take single - vs -- options)

Tried both but Build Documentation fails for no reason

Like Vera pointed out in this other thread, the -skip-synthesized-symbols is only a flag for the swift-symbolgraph-extract tool. That's why it doesn't work to pass it to the Swift compiler.

That's also why it doesn't work (you get a "Unknown option" command line validation error) to pass it to DocC.

What are some other flags/ways I can use to reduce the number of file entries through just the script I mentioned in my post? Most stuff like accessibility json files etc are a lot and also the view-implementation has ton of file entries