I won't publish my little crate to crates.io, so it's not going to get a nice docs.rs site, but I still want to link to its documentation in the GitHub repository. I figured I can host it using GitHub Pages.
I know I can customize the output directory of cargo doc so that Git sees it with --target-dir. What I don't know is which parts of that are necessary for the generated site to function and which can be safely discarded.
For example, it generates debug and release subdirectories (though, for some reason, they're empty). Can I add them to my .gitignore?
The debug and release directories are where dependencies of the to be documented crates are placed. These dependencies are necessary for compiling the to be documented crate when documenting them, but are no longer necessary once everything is documented.