View documentation locally

How can I preview (in HTML format, in a browser, not just the .js files generated by cargo doc) the documentation of my project locally, without uploading it to any site?

It's in the target directory. You're probably missing the last level of namespace if you are just seeing JS files, or, you don't have anything marked pub.