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

Documentation fails to generate on docs.rs #17

Open
roxwize opened this issue Aug 19, 2024 · 1 comment
Open

Documentation fails to generate on docs.rs #17

roxwize opened this issue Aug 19, 2024 · 1 comment

Comments

@roxwize
Copy link

roxwize commented Aug 19, 2024

I tried going to docs.rs/granite-rs to look at all of the symbols for this library but it appears the builds have been failing since version 0.2.0. Here are the logs:

https://docs.rs/crate/granite-rs/1.3.0/builds/1297643

It appears the Docker container in charge of generating the documentation fails due to missing system libraries.

@davidmhewitt
Copy link
Owner

davidmhewitt commented Aug 20, 2024

Ah, yep, it's failing because the Docker container doesn't have Granite and probably other libraries like GTK etc...

I don't have any control over that Docker container. But this library is largely autogenerated by gir, and the guide states:

For building the docs on systems without the required dependencies installed (for example docs.rs or CI jobs), you can use the docsrs attribute. This will disable the linking of the underlying C libraries and won't throw an error if those libraries are not available.

As far as I can tell, I am using the docsrs attribute, and following the template provided by gir, so I'm not entirely sure what's going wrong.

However, I haven't spent a lot of time looking at it, as the API is essentially identical to Granite, so you could refer to granite Valadoc and get a "good enough" docs experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants