Skip to content

Commit

Permalink
[DOCS-7943] Add banner for migrated Alfresco Support Handbook (#1611)
Browse files Browse the repository at this point in the history
  • Loading branch information
anxumalo authored Dec 9, 2024
1 parent 0b9930b commit d17d12c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
9 changes: 5 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ defaults:
values:
version: 3.1
latest: true
migration: true
migrated: true
- scope:
path: "salesforce/3.0"
values:
Expand Down Expand Up @@ -549,7 +549,7 @@ defaults:
values:
version: 1.18
latest: true
migration: true
migrated: true
- scope:
path: "desktop-sync/1.17"
values:
Expand Down Expand Up @@ -1383,7 +1383,7 @@ defaults:
values:
version: 5.0
latest: true
migration: true
migrated: true
- scope:
path: "sync-service/4.0"
values:
Expand Down 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
2 changes: 1 addition & 1 deletion _includes/migrated_banner.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="container">
<div class="banner is-vcentered">
The latest Alfresco documentation has moved to the Hyland Documentation Portal. Click here for the latest versions: <a href="https://support.hyland.com/search/all?filters=prodname~%2522Alfresco%2522&content-lang=en-US">support.hyland.com</a>.
The latest Alfresco documentation has moved to the Hyland Documentation Portal. Click here for the latest versions: <a href="https://support.hyland.com/p/alfresco">support.hyland.com</a>.
</div>
</div>
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 d17d12c

Please sign in to comment.