I am currently trying to generate a simple DocC static documentation by using the cli and the result I get at the end is an html that simply contains The page you’re looking for can’t be found.
To get there, I have a simple script in which I run the docbuild command:
xcodebuild docbuild -target SwiftTracer
-derivedDataPath docsData
-scheme SwiftTracer
-destination 'platform=macOS'
This is fine and generates the files needed to compile a docarchive like this:
cp -R `find docsData -type d -name "*.doccarchive"` archives
I then generate the static website with this command:
$(xcrun --find docc) process-archive transform-for-static-hosting archives/SwiftTracer.doccarchive --hosting-base-path SwiftTracer --output-path docs
The generated website contains all of the files I would expect to have a working documentation.
I am at a complete loss for any reason that would explain why the index is not able to load the documentation’s content. I have not been able to find anything specific in apple’s doc that would explain this result.
Question: Did I build my script incorrectly (command/parameters, missing steps, etc)?