I have a few different projects and a ton of tutorials I want to host on the same http server... is this possible? I watched the Host and automate your DocC documentation session, but it seemed to only work with those rules for one docarchive.
I know someone filed feedback for prefixes (https://developer.apple.com/forums/thread/682276)... is this possible already?
Thanks.
This should be possible already as you suspect. There will need to be additional server routing configuration to map the right requests for data URLs to the right doccarchive where the data actually lives.
For example, the same server could rewrite URLs for multiple frameworks/doccarchives so that the following applies:
- URL path
/data/documentation/A
should map toA.doccarchive/data/documentation/A.json
- URL path
/data/documentation/B
should map toB.doccarchive/data/documentation/B.json
- etc
The example Apache configuration from the "Host and automate your DocC documentation" is hardcoded to the one SlothCreator.doccarchive
example, but this configuration could be generalized to support more than one doccarchive.
If you can provide the specific server technology you're using (apache/nginx/etc), someone can probably help provide more explicit details on how to perform that kind of routing/rewriting for your exact use case.