Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS-7943] Add banner for migrated Alfresco Support Handbook #1611

Merged
merged 3 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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