Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document companion guide more clearly #95

Open
Zenahr opened this issue Oct 23, 2020 · 3 comments
Open

document companion guide more clearly #95

Zenahr opened this issue Oct 23, 2020 · 3 comments

Comments

@Zenahr
Copy link

Zenahr commented Oct 23, 2020

I followed the Getting Started guide and it talks about what happens when I run Breathe but it never says how to call breathe to actually generate the docs.

image
This is where I would expect a "to run exhale, enter following command in your command-line:". Do I need to setup CMake in order to use breathe? Why is there no simple generate_docs.py example file inside the Getting Started guide?

Before changing my build configurations I'd at least like to see what I get with breathe on my codebase. Am I simply missing something?

@svenevs
Copy link
Owner

svenevs commented Oct 23, 2020

Hehe, such excellent questions! There's kind of a quagmire of tools involved or could be involved depending on your project. Is it open source / do you have a branch to look at? It's usually easier to explain options that way.

Otherwise what you're missing is that breathe and exhale are both sphinx extensions, and only run with make html (as would be possible after sphinx-quickstart) or by calling sphinx-build directly. Exhale will generate documents with breathe directives on them (.. doxygenfunction:: foo for example). You can test breathe without exhale by just putting a call to a directive on index.rst, but need to make sure you run doxygen somehow. Make sure you comment out exhale from the extensions list in conf.py!

Are you creating a docs target for CMake? That's not really documented but isn't very difficult ™️

@Zenahr
Copy link
Author

Zenahr commented Oct 23, 2020

Hey there @svenevs! I just got super confused because all I wanted was just a dump of what doxygen had already generated for me.
What made everything click was the Companion you made (excellent work btw). It's super simple to see how all the moving pieces move together and I'm glad I found it. Would wish for it to be mentioned more directly in the Getting Started section.

Thanks for your quick reply! Problem solved and more than finally able to exhale.

@Zenahr Zenahr closed this as completed Oct 23, 2020
@svenevs svenevs changed the title How to actually run breathe? document companion guide more clearly Nov 7, 2020
@svenevs
Copy link
Owner

svenevs commented Nov 7, 2020

going to leave this open to remind me to document the companion guide better, and leave pinned in interim 🙂

@svenevs svenevs reopened this Nov 7, 2020
@svenevs svenevs pinned this issue Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants