Exported a docarchive. Then at command line, went into the directory and ran
$ python3 -m http.server
to start local web server. Pointing Safari 14.1.1 at the address http://localhost:8000/index.html and I see error message "The page you’re looking for can’t be found."
Any guidance?
Currently (Beta 1) you can't use an entirely static file host to serve a .doccarchive
.
You need to host it like described in the session Host and automate your DocC documentation
The example there is for an Apache .htaccess
file — but in general the single page application contained in the archive seems to expect the following:
- it will be served from a path starting with
/documentation/<moduleName>
or/tutorials/<moduleName>
(if you browse to/documentation/
only it will show the message "The page you’re looking for can’t be found.") - it is served from the server root because all links are relative to the server root and resources (CSS, JS) are also looked up from there.
I've filed FB9153714 to ask for an option to at least allow a prefix to be specified.
A fully static version may be nicer — but it could limit the functionality that can be offered like search.