1
0
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:
SaviHex
2020-06-06 22:26:35 -03:00
committed by Rémi Verschelde
parent 24b3bf0637
commit fda49b74a1
4 changed files with 20 additions and 8 deletions

View File

@@ -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);