- 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.
13 lines
553 B
HTML
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 }}
|