You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Added a "title" attribute for the link tag in the docs xml
(cherry picked from commit 18c08f65d6)
This commit is contained in:
@@ -478,8 +478,8 @@ void EditorHelp::_update_doc() {
|
||||
class_desc->add_newline();
|
||||
|
||||
for (int i = 0; i < cd.tutorials.size(); i++) {
|
||||
const String link = cd.tutorials[i];
|
||||
String linktxt = link;
|
||||
const String link = cd.tutorials[i].link;
|
||||
String linktxt = (cd.tutorials[i].title.empty()) ? link : cd.tutorials[i].title;
|
||||
const int seppos = linktxt.find("//");
|
||||
if (seppos != -1) {
|
||||
linktxt = link.right(seppos + 2);
|
||||
|
||||
Reference in New Issue
Block a user