Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
feat: configurable Help Center link (HELP_CENTER_URL / HELP_CENTER_LABEL) in both user menus, localized default label (#371)
Murtaza Nasir45af5e5ef051
diff --git a/config/env.asr.example b/config/env.asr.exampleindex 45c39bd6..1c3d92ec 100644--- a/config/env.asr.example+++ b/config/env.asr.example@@ -194,6 +194,12 @@ ADMIN_USERNAME=adminADMIN_PASSWORD=changeme+# --- Help Center Link (optional) ---+# Adds a link to your own help/FAQ/tutorial page in the user menu.+# Label defaults to "Help Center" (localized) if not set.+# HELP_CENTER_URL=https://intranet.example.com/speakr-help+# HELP_CENTER_LABEL=Company FAQ+# --- Inquire Mode (AI search across all recordings) ---# Set to "true" to enable semantic search and chat across all recordings# Requires additional dependencies (already included in Docker image)diff --git a/config/env.transcription.example b/config/env.transcription.exampleindex 273e983c..d8e3a31c 100644--- a/config/env.transcription.example+++ b/config/env.transcription.example@@ -365,6 +365,12 @@ AUDIO_BITRATE=128k# OPTIONAL FEATURES# =============================================================================+# --- Help Center Link (optional) ---+# Adds a link to your own help/FAQ/tutorial page in the user menu.+# Label defaults to "Help Center" (localized) if not set.+# HELP_CENTER_URL=https://intranet.example.com/speakr-help+# HELP_CENTER_LABEL=Company FAQ+# --- Inquire Mode (AI search across all recordings) ---ENABLE_INQUIRE_MODE=falsediff --git a/config/env.whisper.example b/config/env.whisper.exampleindex c976a1b6..a0aabef7 100644--- a/config/env.whisper.example+++ b/config/env.whisper.example@@ -190,6 +190,12 @@ ADMIN_USERNAME=adminADMIN_PASSWORD=changeme+# --- Help Center Link (optional) ---+# Adds a link to your own help/FAQ/tutorial page in the user menu.+# Label defaults to "Help Center" (localized) if not set.+# HELP_CENTER_URL=https://intranet.example.com/speakr-help+# HELP_CENTER_LABEL=Company FAQ+# --- Inquire Mode (AI search across all recordings) ---# Set to "true" to enable semantic search and chat across all recordings# Requires additional dependencies (already included in Docker image)diff --git a/config/env.whisperx.example b/config/env.whisperx.exampleindex f0513664..59d976a0 100644--- a/config/env.whisperx.example+++ b/config/env.whisperx.example@@ -135,6 +135,12 @@ ADMIN_USERNAME=adminADMIN_PASSWORD=changeme+# --- Help Center Link (optional) ---+# Adds a link to your own help/FAQ/tutorial page in the user menu.+# Label defaults to "Help Center" (localized) if not set.+# HELP_CENTER_URL=https://intranet.example.com/speakr-help+# HELP_CENTER_LABEL=Company FAQ+# --- Inquire Mode (AI search across all recordings) ---# Set to "true" to enable semantic search and chat across all recordings# Requires additional dependencies (already included in Docker image)diff --git a/src/app.py b/src/app.pyindex 832993ce..0abf95f4 100644--- a/src/app.py+++ b/src/app.py@@ -659,6 +659,18 @@ _app_version = get_version()def inject_app_version():return {'app_version': _app_version}[email protected]_processor+def inject_help_center_link():+ """Optional custom help link in the user menu (#371).++ Admins hosting their own FAQ/tutorial page set HELP_CENTER_URL (and+ optionally HELP_CENTER_LABEL) to surface it prominently for users.+ """+ return {+ 'help_center_url': os.environ.get('HELP_CENTER_URL', '').strip(),+ 'help_center_label': os.environ.get('HELP_CENTER_LABEL', '').strip(),+ }+@app.context_processordef inject_group_admin_status():"""Inject is_group_admin flag into all templates."""diff --git a/static/locales/de.json b/static/locales/de.jsonindex 0794d567..e3811e03 100644--- a/static/locales/de.json+++ b/static/locales/de.json@@ -1249,6 +1249,7 @@"adminDashboard": "Admin-Dashboard","darkMode": "Dunkler Modus","groupManagement": "Gruppenverwaltung",+ "helpCenter": "Hilfe-Center","home": "Startseite","language": "Sprache","lightMode": "Heller Modus",diff --git a/static/locales/en.json b/static/locales/en.jsonindex 13ce3302..11ad85f4 100644--- a/static/locales/en.json+++ b/static/locales/en.json@@ -1249,6 +1249,7 @@"adminDashboard": "Admin Dashboard","darkMode": "Dark Mode","groupManagement": "Group Management",+ "helpCenter": "Help Center","home": "Home","language": "Language","lightMode": "Light Mode",diff --git a/static/locales/es.json b/static/locales/es.jsonindex 355cdff3..96d6359c 100644--- a/static/locales/es.json+++ b/static/locales/es.json@@ -1249,6 +1249,7 @@"adminDashboard": "Panel de Administración","darkMode": "Modo Oscuro","groupManagement": "Gestión de Grupos",+ "helpCenter": "Centro de Ayuda","home": "Inicio","language": "Idioma","lightMode": "Modo Claro",diff --git a/static/locales/fr.json b/static/locales/fr.jsonindex ce1efac9..c57c5220 100644--- a/static/locales/fr.json+++ b/static/locales/fr.json@@ -1249,6 +1249,7 @@"adminDashboard": "Tableau de Bord Admin","darkMode": "Mode Sombre","groupManagement": "Gestion de Groupe",+ "helpCenter": "Centre d'aide","home": "Accueil","language": "Langue","lightMode": "Mode Clair",diff --git a/static/locales/pt-BR.json b/static/locales/pt-BR.jsonindex 6e0a8b31..4feb8e27 100644--- a/static/locales/pt-BR.json+++ b/static/locales/pt-BR.json@@ -1249,6 +1249,7 @@"adminDashboard": "Painel de Controle do Admin","darkMode": "Modo Escuro","groupManagement": "Gerenciamento de Grupos",+ "helpCenter": "Central de Ajuda","home": "Início","language": "Idioma","lightMode": "Modo Claro",diff --git a/static/locales/ru.json b/static/locales/ru.jsonindex 28145516..0ad4e44f 100644--- a/static/locales/ru.json+++ b/static/locales/ru.json@@ -1249,6 +1249,7 @@"adminDashboard": "Панель администратора","darkMode": "Тёмная тема","groupManagement": "Управление группами",+ "helpCenter": "Справочный центр","home": "Главная","language": "Язык","lightMode": "Светлая тема",diff --git a/static/locales/zh.json b/static/locales/zh.jsonindex c2e3435e..25f886cd 100644--- a/static/locales/zh.json+++ b/static/locales/zh.json@@ -1249,6 +1249,7 @@"adminDashboard": "管理面板","darkMode": "深色模式","groupManagement": "群组管理",+ "helpCenter": "帮助中心","home": "主页","language": "语言","lightMode": "浅色模式",diff --git a/templates/components/header.html b/templates/components/header.htmlindex 841beeec..c52c7007 100644--- a/templates/components/header.html+++ b/templates/components/header.html@@ -233,6 +233,17 @@<span v-text="t('nav.groupManagement')"></span></a>{% endif %}+ {% if help_center_url %}+ <a href="{{ help_center_url }}" target="_blank" rel="noopener noreferrer"+ class="block px-4 py-2 hover:bg-[var(--bg-tertiary)] transition-colors">+ <i class="fas fa-question-circle mr-2 w-4 text-center"></i>+ {% if help_center_label %}+ <span>{{ help_center_label }}</span>+ {% else %}+ <span v-text="t('nav.helpCenter')"></span>+ {% endif %}+ </a>+ {% endif %}<div class="border-t border-[var(--border-primary)] my-1"></div><button @click="toggleDarkMode" class="w-full text-left px-4 py-2 hover:bg-[var(--bg-tertiary)] transition-colors flex items-center"><i :class="isDarkMode ? 'fas fa-sun' : 'fas fa-moon'" class="mr-2 w-4 text-center"></i>diff --git a/templates/components/page-header.html b/templates/components/page-header.htmlindex cd5183bf..820b4e77 100644--- a/templates/components/page-header.html+++ b/templates/components/page-header.html@@ -49,6 +49,17 @@<i class="fas fa-users-cog mr-2 w-4 text-center"></i><span data-i18n="nav.groupManagement">Team Management</span></a>{% endif %}+ {% if help_center_url %}+ <a href="{{ help_center_url }}" target="_blank" rel="noopener noreferrer"+ class="block px-4 py-2 hover:bg-[var(--bg-tertiary)] transition-colors">+ <i class="fas fa-question-circle mr-2 w-4 text-center"></i>+ {% if help_center_label %}+ <span>{{ help_center_label }}</span>+ {% else %}+ <span data-i18n="nav.helpCenter">Help Center</span>+ {% endif %}+ </a>+ {% endif %}<div class="border-t border-[var(--border-primary)] my-1"></div><form method="POST" action="{{ url_for('auth.logout') }}" class="m-0"><input type="hidden" name="csrf_token" value="{{ csrf_token() }}">