website-and-documentation/layouts/partials/legacy-banner.html
Stephan Lo 43cbd69c9c refactor(docs): migrate existing content to v1 legacy structure
- Move all existing docs content (concepts, project, solution) to /docs/v1/
- Add legacy banner component to warn users about archived documentation
- Create v1 index page with legacy notice and redirect guidance
- Implement automatic banner display for all v1 paths
- Preserve all original content for reference during migration

This enables incremental content migration while maintaining access to
original documentation.
2025-10-23 14:54:08 +02:00

13 lines
553 B
HTML

{{ if or (hasPrefix .RelPermalink "/docs/v1/") (hasPrefix .File.Path "docs/v1/") }}
<div class="alert alert-warning legacy-banner" role="alert">
<h4 class="alert-heading">
<i class="fa fa-archive"></i> Legacy Documentation (v1)
</h4>
<p class="mb-0">
You are viewing archived documentation.
{{ $newPath := replace .RelPermalink "/v1/" "/" }}
{{ $newPath = replace $newPath "/docs/docs/" "/docs/" }}
Please check if there is an <a href="{{ $newPath }}" class="alert-link">updated version</a> available.
</p>
</div>
{{ end }}