1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Added a "title" attribute for the link tag in the docs xml

This commit is contained in:
SaviHex
2020-06-06 22:26:35 -03:00
parent ffbea8aad1
commit 18c08f65d6
4 changed files with 18 additions and 6 deletions

View File

@@ -480,8 +480,8 @@ void EditorHelp::_update_doc() {
class_desc->add_newline();
for (int i = 0; i < cd.tutorials.size(); i++) {
const String link = DTR(cd.tutorials[i]);
String linktxt = link;
const String link = DTR(cd.tutorials[i].link);
String linktxt = (cd.tutorials[i].title.empty()) ? link : DTR(cd.tutorials[i].title);
const int seppos = linktxt.find("//");
if (seppos != -1) {
linktxt = link.right(seppos + 2);