-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
#[doc(html_root_url)] #517
base: main
Are you sure you want to change the base?
Conversation
We already handle that automatically as part of the CI using the gir-rustdoc script, are there any external dependencies that are not properly linked? |
Sorry it's not clear to me what you mean by this. Do you mean that the CI deployment steps modify the source code before uploading it to As far as I can tell, (I'll note that I am currently using that flag to generate docs, which is what prompted me to open this PR. I'm not using that script, though at a glance the sys crates do indeed appear to be missing?) |
The docs already depends on rust nightly for other reasons (the cfg doc feature) so why not use other nightly features?
You should probably run Tbh, this solution would require more work in general as you will have to always update all the files to point to the right docs link. I don't think that is ideal neither :) Anyway, I will summon our docs expert @GuillaumeGomez for his opinion |
This is actually partially my argument for why this should be done. Anyone stuck on a stable rustc would benefit from being able to use
Hm, how does that affect whether
Yes, the maintenance burden does suck - I feel like it provides material value to downstream users though. I'd probably push for this to be integrated into gir or other tools in order to (at least mostly) automate it. I've resorted to some odd hacks myself after failing to wrangle gir to generate sys crates in particular ways .-. |
So what should we do here? |
This can fix up
cargo doc --no-deps
URLs, which is nice for anyone hosting their own crate's docs online in the same way glib does - particularly if it targets the development git branch.There are a few things to address here:
0.15
branch with a different URL root (https://gtk-rs.org/gtk-rs-core/stable/0.xx/docs/
)Cargo.toml
as a prompt for anyone manually updating the version number when a major release occurssys
crates, but since they're auto-generated bygir
I'm not entirely sure how to approach that? I've had this problem with gir before, and am not sure if it provides any ability to customize thesys/lib.rs
generation?