title: Using Sphinx-apidoc to generate documentation from C++ code
body: <p>There have been a couple of threads on this topic in the past that claim Sphinx doesn't support this at all. I had my doubts but either it has been updated since or the documentation for it was quite well hidden, because here is a link on the website stating otherwise:
  <a href="http://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#cpp-domain" rel="nofollow noreferrer">http://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#cpp-domain</a></p>
  
  <p>Anyway, I'm new to Sphinx but am trying to use it to (eventually) automate documentation using some text from some source C++ code. So far I haven't been able to get anywhere when using the <code>sphinx-apidoc -o ...</code> command. An almost blank document is created. I'm probably not using the right directives, since I don't know how - the supporting documentation hasn't been able to help me.</p>
  
  <p>Can anyone provide some assistance with the basic steps needed to get it working? If it is not possible to auto-generate documentation from C++, what are the C++ domains for and how to use them?</p>