-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
Generate valid XML from doc comments #861
Conversation
(I have no idea how to run |
API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-861 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, very nice amendment!
godot::tests::docs::correct
Should be run as part of ./check.sh test
, no?
Ah, it needs the |
b06bfea
to
9263170
Compare
Since this caused the list of special characters to be present three times, I decided to remove |
Thanks! It looks like unit-tests in CI may not have the |
Yo I've found that currently the Variable Documentation isnt working so if i do struct Test {
base: Base<Resource>,
/// # Awesome Doc
/// Immaculate Documentation
#[export]
var: Type
} it doesnt show in the Inspector. Dont know if thats a seperate issue since its clearly experimaental :) |
@MrJoermungandr you need to (and don't forget to enable the (and this is off-topic here btw) |
Sry i exported it ofc and also have the feature enabled ^^ i only meant that it says No Description Available mb. EDIT: Actually masasive brainfart on my side since i didnt actually test with this pr only with the previous functionality im sorry for bothering will check again if this is merged ^^ 🥴 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
We can gladly add further improvements in other PRs, but this is already a nice improvement that deserves merging on its own 🙂
Edit: I'll need to make sure the CI actually runs the unit-test with the register-docs
feature. Will do that today.
9263170
to
90d8064
Compare
Tried to integrate register-docs into tests but couldn't get it to work in the short time I had. Will do another time... |
Closes #837
Escapes everything (things like
Gd<Node>
in function parameters must also be escaped)Removes the empty line before the XML declaration to make XML valid
no longer relevant, see the old commit if you're curiousif matches!(...)
inxml_escape
looks ugly but makes it ~20% faster