Updated help search and all docs.o3de.org links to o3de.org (#1594)

This commit is contained in:
Terry Michaels
2021-06-25 15:23:57 -05:00
committed by GitHub
parent 4838ad7b9b
commit 21ebff5709
122 changed files with 151 additions and 158 deletions
@@ -19,7 +19,7 @@ AZ_PUSH_DISABLE_DLL_EXPORT_MEMBER_WARNING
AZ_POP_DISABLE_DLL_EXPORT_MEMBER_WARNING
static const char* g_assetProcessorLink = "<a href=\"https://docs.o3de.org/docs/user-guide/assets/pipeline/processor-ui/\">Asset Processor</a>";
static const char* g_assetProcessorLink = "<a href=\"https://o3de.org/docs/user-guide/assets/pipeline/processor-ui/\">Asset Processor</a>";
static const char* g_copyFilesMessage = "The original file will remain outside of the project and the %1 will not monitor the file.";
static const char* g_moveFilesMessage = "The original file will be moved inside of the project and the %1 will monitor the file for changes.";
static const char* g_selectDestinationFilesPath = "AssetImporter/SelectDestinationFilesPath";
@@ -798,7 +798,7 @@ QMenu* LevelEditorMenuHandler::CreateHelpMenu()
auto text = lineEdit->text();
if (text.isEmpty())
{
QDesktopServices::openUrl(QUrl("https://docs.o3de.org/docs/"));
QDesktopServices::openUrl(QUrl("https://o3de.org/docs/"));
}
else
{
@@ -807,17 +807,10 @@ QMenu* LevelEditorMenuHandler::CreateHelpMenu()
const SFileVersion& productVersion = gEnv->pSystem->GetProductVersion();
productVersion.ToString(productVersionString, versionStringSize);
QUrl docSearchUrl("https://docs.aws.amazon.com/search/doc-search.html");
QUrl docSearchUrl("https://o3de.org/docs/");
QUrlQuery docSearchQuery;
QString o3deProductString = QUrl::toPercentEncoding("Open 3D Engine");
// The order of these QueryItems matters. wiki Search URL Formatting
docSearchQuery.addQueryItem("searchPath", "documentation-product");
docSearchQuery.addQueryItem("searchQuery", text);
docSearchQuery.addQueryItem("this_doc_product", o3deProductString);
docSearchQuery.addQueryItem("ref", "lye");
docSearchQuery.addQueryItem("ev", productVersionString);
docSearchQuery.addQueryItem("query", text);
docSearchUrl.setQuery(docSearchQuery);
docSearchUrl.setFragment(QString("facet_doc_product=%1").arg(o3deProductString));
QDesktopServices::openUrl(docSearchUrl);
}
lineEdit->clear();