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

How do I use breathe_projects_source? #797

Open
red8888 opened this issue Feb 1, 2022 · 3 comments
Open

How do I use breathe_projects_source? #797

red8888 opened this issue Feb 1, 2022 · 3 comments
Assignees
Labels
support Not actual issues, but help

Comments

@red8888
Copy link

red8888 commented Feb 1, 2022

I see examples like this: breathe_projects_source = {"pyne": '../',}
And like this: breathe_projects_source = {"auto" : ( "../examples/specific", ["auto_function.h", "auto_class.h"] )}
Pretty sure the latter is correct because I get a KeyError: 'auto' otherwise.

I'm using C# and I just want to recurse through all files in my project.

in conf.py I have this:

# Just look for all files
breathe_projects_source = {"auto" : ( "../", ["**"] )}

In an rst I have this:

Working Example
---------------

.. autodoxygenindex::
   :project: auto

When I build the docs I get no error but its blank under Working Example.

I also tried this: breathe_projects_source = {"auto" : ( "/full/path/app", ["**"] )}
I also tried this: breathe_projects_source = {"auto" : ( "/full/path/app", ["specificfile.cs"] )}

I'm getting no errors or warnings so I don't know what is wrong.

@red8888
Copy link
Author

red8888 commented Feb 2, 2022

I found out breathe only works with c++.

Found this thread and used this guys branch to try to get it working with a csharp domain: #550

pip install git+https://github.com/rogerbarton/sphinx-csharp.git

Doing that doxygenindex does work but autodoxygenindex still does not. Is there something about autodoxygenindex that makes it only work with c++?

@vermeeren
Copy link
Collaborator

@red8888 C# support is merged and released in Breathe, but yes you do need to use third-party Sphinx C# domain. Last time I checked this it was https://github.com/rogerbarton/sphinx-csharp but I don't know what current version is. @rogerbarton contributed literally everything C# to Breathe and de-facto maintains it. Currently doc is missing though for C#.

As for the auto* directives I really suggest you setup Doxygen manually and use the non-auto variants, it's much easier to customise that and make it work especially in non-standard setup like C#.

@vermeeren vermeeren added the support Not actual issues, but help label Feb 13, 2022
@vermeeren vermeeren self-assigned this Feb 13, 2022
@rogerbarton
Copy link
Contributor

I've never heard of the auto* directive, so I don't know if it will work with the C# domain.

I'm aware that the docs for the C# domain are missing, but I feel like this is a very specific use case without many peopling using it. So I find it hard to justify adding documentation. But, I've updated the readme a bit just now.

To use the C# domain you really have to look at the example where I am using it. Alternatively the minimal, but working, test project in my repo might be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Not actual issues, but help
Projects
None yet
Development

No branches or pull requests

3 participants