Skip to content

Commit

Permalink
[DOCS-7831] Add styles, config, and banner for migrated Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
anxumalo committed Sep 30, 2024
1 parent fb2fd99 commit 4109143
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 15 deletions.
36 changes: 21 additions & 15 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defaults:

# Alfresco Content Services
# Alfresco Content Services (ACS) - Migrated
- scope:
path: "content-services"
values:
Expand All @@ -26,6 +26,7 @@ defaults:
values:
version: 23.2
latest: true
migrated: true
release: true
- scope:
path: "content-services/latest/tutorial"
Expand Down Expand Up @@ -117,7 +118,7 @@ defaults:
values:
toc: "content-services-tutorial"

# Alfresco Digital Workspace
# Alfresco Digital Workspace (ADW) - Migrated
- scope:
path: "digital-workspace"
values:
Expand Down Expand Up @@ -151,6 +152,7 @@ defaults:
values:
version: 4.4
latest: true
migrated: true
- scope:
path: "digital-workspace/4.3"
values:
Expand Down Expand Up @@ -224,7 +226,7 @@ defaults:
values:
version: 1.5

# Alfresco Mobile Workspace
# Alfresco Mobile Workspace (AMW)
- scope:
path: "mobile-workspace"
values:
Expand Down Expand Up @@ -599,7 +601,7 @@ defaults:
values:
version: 1.5

# Alfresco Governance Services
# Alfresco Governance Services (AGS) - Migrated
- scope:
path: "governance-services"
values:
Expand All @@ -626,6 +628,7 @@ defaults:
values:
version: 23.2
latest: true
migrated: true
- scope:
path: "governance-services/latest/tutorial"
values:
Expand Down Expand Up @@ -720,7 +723,7 @@ defaults:
values:
toc: "governance-services-tutorial"

# Alfresco Process Services (APS)
# Alfresco Process Services (APS) - Migrated
- scope:
path: "process-services"
values:
Expand All @@ -744,6 +747,7 @@ defaults:
values:
version: 24.2
latest: true
migrated: true
- scope:
path: "process-services/2.4"
values:
Expand Down Expand Up @@ -777,7 +781,7 @@ defaults:
values:
version: 1.9

# Alfresco Document Transformation Engine
# Alfresco Document Transformation Engine (DTE)
- scope:
path: "transformation-engine"
values:
Expand Down Expand Up @@ -920,7 +924,7 @@ defaults:
values:
version: 1.0

# Alfresco Office Services
# Alfresco Office Services (AOS) - Migrated
- scope:
path: "microsoft-office"
values:
Expand All @@ -943,6 +947,7 @@ defaults:
values:
version: 3.0
latest: true
migrated: true
- scope:
path: "microsoft-office/2.0"
values:
Expand Down Expand Up @@ -972,7 +977,7 @@ defaults:
values:
version: 1.1

# Alfresco Transform Service
# Alfresco Transform Service (ATS)
- scope:
path: "transform-service"
values:
Expand Down Expand Up @@ -1188,7 +1193,7 @@ defaults:
version: 2.2
latest: true

# Alfresco Process Automation
# Alfresco Process Automation (APA) - Migrated
- scope:
path: "process-automation"
values:
Expand All @@ -1201,9 +1206,9 @@ defaults:
values:
version: 1.0
latest: true
migrated: true


# Alfresco Federation Services
# Alfresco Federation Services (AFS)
- scope:
path: "federation-services"
values:
Expand Down Expand Up @@ -1245,7 +1250,7 @@ defaults:
values:
version: 1.0

# Alfresco Search Enterprise
# Alfresco Search Enterprise - Migrated
- scope:
path: "search-enterprise"
values:
Expand All @@ -1265,6 +1270,7 @@ defaults:
values:
version: 4.0
latest: true
migrated: true
- scope:
path: "search-enterprise/3.3"
values:
Expand Down Expand Up @@ -1423,7 +1429,7 @@ defaults:
values:
version: 3.0

# Alfresco Intelligence Services
# Alfresco Intelligence Services (AIS)
- scope:
path: "intelligence-services"
values:
Expand Down Expand Up @@ -1536,7 +1542,7 @@ defaults:
values:
version: 2.4

# Alfresco Content Accelerator
# Alfresco Content Accelerator (ACA)
- scope:
path: "content-accelerator"
values:
Expand All @@ -1563,7 +1569,7 @@ defaults:
values:
version: 3.5

# Alfresco Enterprise Viewer
# Alfresco Enterprise Viewer (AEV)
- scope:
path: "enterprise-viewer"
values:
Expand Down
5 changes: 5 additions & 0 deletions _includes/migrated_banner.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 Docs have moved to the Hyland Documentation Portal. For more information, see the <a href="/404.html">latest versions</a>.
</div>
</div>
10 changes: 10 additions & 0 deletions _layouts/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
version: '{{version}}',
}
</script>

<!--Add banner for migrated content. Check 'migrated' setting in _config.yml-->
{% assign pathElements = page.path | split: "/" %}

{% if pathElements.size >= 3 %}
{% if page.migrated == true or page.version == 'community' %}
{% include migrated_banner.html %}
{% endif %}
{% endif %}

{% include searchbar.html close=true %}
{% include mainmenu.html showsearch=true%}
<!--submenu-->
Expand Down
3 changes: 3 additions & 0 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
{% include mainmenu.html showsearch=false %}
<!-- landing title section-->
<section class="section section-mainsearch">
<!-- banner section-->
{% include migrated_banner.html %}
<!-- /end banner section-->
<div class="container">
<div class="columns is-vcentered">
<div class="column">
Expand Down
21 changes: 21 additions & 0 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2109,3 +2109,24 @@ footer .copyright img {
font-size: 18pt;
}
}

/* BANNER for migrated Docs page and landing page */

.banner html, body {
margin: 0;
}

.banner {
background: #FFF8C5;
/* light yellow #FFF8C5; light grey #888888, dark red border #880000;
dark green #419346, light green #83BC59, orange #F0963B, yellow #FBE94E */
margin-top: 4px;
margin-bottom: 4px;
padding: 10px 10px 10px 10px;
border-width: 2px 2px;
border-radius: 4px;
border-style: solid;
border-color: #FBE94E;
font-size: 10.5pt;
text-align: center;
}

0 comments on commit 4109143

Please sign in to comment.