From 162f213beb66055b6f1c94ec178e5ba749329ff8 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Fri, 9 Dec 2022 20:30:04 +0100 Subject: [PATCH] show correct docs to user according to version --- CMakeLists.txt | 2 +- src/librssguard/definitions/definitions.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d17da42b..b5291b3bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,7 +68,7 @@ set(APP_DONATE_URL "https://github.com/sponsors/martinrotter") set(APP_VERSION "4.2.5") set(APP_URL "https://github.com/martinrotter/rssguard") -set(APP_URL_DOCUMENTATION "https://github.com/martinrotter/rssguard/blob/master/resources/docs/Documentation.md") +set(APP_URL_DOCUMENTATION "https://github.com/martinrotter/rssguard/blob/${APP_VERSION}/resources/docs/Documentation.md") set(APP_URL_ISSUES_NEW "https://github.com/martinrotter/rssguard/issues/new/choose") set(TYPEINFO "????") diff --git a/src/librssguard/definitions/definitions.h b/src/librssguard/definitions/definitions.h index 65be2e0ab..67999dfec 100644 --- a/src/librssguard/definitions/definitions.h +++ b/src/librssguard/definitions/definitions.h @@ -18,7 +18,7 @@ #define ADBLOCK_SERVER_FILE "adblock-server.js" #define ADBLOCK_SERVER_PORT 48484 -#define ADBLOCK_HOWTO "https://github.com/martinrotter/rssguard/blob/master/resources/docs/Documentation.md#adbl" +#define ADBLOCK_HOWTO APP_URL_DOCUMENTATION "#adbl" #define ADBLOCK_ICON_ACTIVE "adblock" #define ADBLOCK_ICON_DISABLED "adblock-disabled" @@ -57,7 +57,7 @@ #define DEFAULT_SQL_MESSAGES_FILTER "0 > 1" #define MAX_MULTICOLUMN_SORT_STATES 3 #define RELEASES_LIST "https://api.github.com/repos/martinrotter/rssguard/releases" -#define MSG_FILTERING_HELP "https://github.com/martinrotter/rssguard/blob/master/resources/docs/Documentation.md#fltr" +#define MSG_FILTERING_HELP APP_URL_DOCUMENTATION "#fltr" #define URL_REGEXP \ "^(http|https|feed|ftp):\\/\\/[\\w\\-_]+(\\.[\\w\\-_]+)+([\\w\\-\\.,@?^=%&:/~\\+#]*[\\w\\-\\@?^=%&/" \ "~\\+#])?$"