Adds Links to Gem Directory and Documentation for Gems (#2922)
* Changed blue text to white that is not meant as a link, made 'View in Director' link work for gems in the inspector, added parsing for gem documentation link Signed-off-by: nggieber <nggieber@amazon.com> * Added documentation links for gems, changed markup for urls in summaries and requirements so they are clickable Signed-off-by: nggieber <nggieber@amazon.com> * Fixed a couple of the documentation links Signed-off-by: nggieber <nggieber@amazon.com> * Added documentation url to edit gem properties script and updated unit tests Signed-off-by: nggieber <nggieber@amazon.com>
This commit is contained in:
@@ -646,6 +646,7 @@ namespace O3DE::ProjectManager
|
||||
{
|
||||
GemInfo gemInfo;
|
||||
gemInfo.m_path = Py_To_String(path);
|
||||
gemInfo.m_directoryLink = gemInfo.m_path;
|
||||
|
||||
auto data = m_manifest.attr("get_gem_json_data")(pybind11::none(), path, pyProjectPath);
|
||||
if (pybind11::isinstance<pybind11::dict>(data))
|
||||
@@ -661,6 +662,7 @@ namespace O3DE::ProjectManager
|
||||
gemInfo.m_version = "";
|
||||
gemInfo.m_requirement = Py_To_String_Optional(data, "requirements", "");
|
||||
gemInfo.m_creator = Py_To_String_Optional(data, "origin", "");
|
||||
gemInfo.m_documentationLink = Py_To_String_Optional(data, "documentation_url", "");
|
||||
|
||||
if (gemInfo.m_creator.contains("Open 3D Engine"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user