Skip to content

Commit

Permalink
[DOCS-7943] Add banner for migrated Support Handbook
Browse files Browse the repository at this point in the history
  • Loading branch information
anxumalo committed Nov 28, 2024
1 parent 5d3d80a commit 7b12956
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1484,7 +1484,7 @@ defaults:
values:
version: 1.0

# Alfresco Support Handbook
# Alfresco Support Handbook - Migrated
- scope:
path: "support"
values:
Expand All @@ -1497,6 +1497,7 @@ defaults:
values:
version: 1.0
latest: true
migrated-sp: true

# Alfresco Outlook Integration
- scope:
Expand Down
5 changes: 5 additions & 0 deletions _includes/migrated_handbook.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="container">
<div class="banner is-vcentered">
The latest Alfresco Support Handbook has moved to Hyland Community. Click here for the latest version: <a href="https://community.hyland.com/" target="_blank">community.hyland.com</a>, log in, and search for Alfresco Support Handbook.
</div>
</div>
5 changes: 5 additions & 0 deletions _layouts/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@
{% assign pathElements = page.path | split: "/" %}

{% if pathElements.size >= 3 %}

{% if page.migrated == true or page.version == 'community' %}
{% include migrated_banner.html %}

{% elsif page.migrated-sp == true %}
{% include migrated_handbook.html %}

{% endif %}
{% endif %}

Expand Down

0 comments on commit 7b12956

Please sign in to comment.