Skip to content

Commit da6b566

Browse files
feat: add warning banner for old UMH Classic documentation (#322)
Add a prominent warning banner to inform users they are viewing the old UMH Classic documentation and direct them to the current UMH Core documentation at https://docs.umh.app. - Create new partial template `old-docs-banner.html` with styled warning - Add banner to both regular and print documentation layouts - Fix Google Analytics template issue in head.html Resolves: ENG-3520 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9685467 commit da6b566

4 files changed

Lines changed: 20 additions & 2 deletions

File tree

‎umh.docs.umh.app/layouts/docs/baseof.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{{ partial "taxonomy_terms_clouds.html" . }}
2222
</aside>
2323
<main class="col-12 col-md-9 col-xl-8 pl-md-5" role="main">
24-
{{ partial "version-banner.html" . }}
24+
{{ partial "old-docs-banner.html" . }}
2525
{{ if not .Site.Params.ui.breadcrumb_disable }}{{ partial "breadcrumb.html" . }}{{ end }}
2626
<script src="/js/swagger-ui-bundle.js"></script>
2727
<script src="/js/swagger-ui-standalone-preset.js"></script>

‎umh.docs.umh.app/layouts/docs/baseof.print.html‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<div class="td-main">
1212
<div class="row flex-xl-nowrap">
1313
<main class="col-12 col-md-9 col-xl-8 pl-md-5" role="main">
14+
{{ partial "old-docs-banner.html" . }}
1415
{{ block "main" . }}{{ end }}
1516
</main>
1617
</div>

‎umh.docs.umh.app/layouts/partials/head.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
{{- template "_internal/schema.html" . -}}
2929
{{- template "_internal/twitter_cards.html" . -}}
3030
{{ if eq (getenv "HUGO_ENV") "production" }}
31-
{{ template "_internal/google_analytics_async.html" . }}
31+
{{/* Google Analytics disabled - tracking moved to new documentation site at docs.umh.app */}}
3232
{{ end }}
3333
{{ partialCached "head-css.html" . "asdf" }}
3434
<script
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<div class="old-docs-banner" role="alert" aria-label="Deprecated documentation warning" style="background-color: #fff3cd; border: 2px solid #ffc107; padding: 15px; margin-bottom: 20px; border-radius: 5px;">
2+
<div style="display: flex; align-items: center; gap: 10px;">
3+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#856404" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
4+
<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"></path>
5+
<line x1="12" y1="9" x2="12" y2="13"></line>
6+
<line x1="12" y1="17" x2="12.01" y2="17"></line>
7+
</svg>
8+
<div style="flex: 1;">
9+
<strong style="color: #856404;">You are viewing documentation for UMH Classic</strong>
10+
<p style="margin: 5px 0 0 0; color: #856404;">
11+
This documentation is for the older UMH Classic version. If you are using the newer UMH Core, please visit
12+
<a href="https://docs.umh.app" style="color: #0056b3; text-decoration: underline; font-weight: bold;">https://docs.umh.app</a>
13+
for the current documentation.
14+
</p>
15+
</div>
16+
</div>
17+
</div>

0 commit comments

Comments
 (0)