-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Adjust make_rst.py
for GDScript documentation
#98533
Conversation
@@ -2576,6 +2576,13 @@ def format_table(f: TextIO, data: List[Tuple[Optional[str], ...]], remove_empty_ | |||
f.write("\n") | |||
|
|||
|
|||
def sanitize_class_name(dirty_name: str, is_file_name = False) -> str: | |||
if is_file_name: | |||
return dirty_name.lower().replace('"', "").replace("/", "--") |
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.
Borrowed from here:
Line 1612 in 61accf0
String save_file = save_path.path_join(c.name.replace("\"", "").replace("/", "--") + ".xml"); |
6403f5f
to
45fa83b
Compare
45fa83b
to
e708ce6
Compare
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.
Seems alright.
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.
Needs rebase.
e708ce6
to
ba943e4
Compare
Thanks! |
Test project: test-make-rst-for-rst.zip