From b4878b95d08df72546a34e172e45cb54a49991b7 Mon Sep 17 00:00:00 2001
From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com>
Date: Mon, 3 Jun 2024 17:34:48 +0200
Subject: [PATCH 1/3] Add "New" pill to the ToC
---
docs/css/navigation.css | 4 ++++
theme/partials/nav-item.html | 4 +++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/docs/css/navigation.css b/docs/css/navigation.css
index 08b63f1bdf..2ad98b6006 100644
--- a/docs/css/navigation.css
+++ b/docs/css/navigation.css
@@ -133,6 +133,10 @@
padding-bottom: 0.5rem;
}
+.md-nav__link .pill.new {
+ background-color: var(--turquoise-pearl);
+}
+
.md-nav__link::after {
font-weight: 700;
}
diff --git a/theme/partials/nav-item.html b/theme/partials/nav-item.html
index af5e454d9a..43dffa584a 100644
--- a/theme/partials/nav-item.html
+++ b/theme/partials/nav-item.html
@@ -16,7 +16,7 @@
{% set base = path %}
{% for nav_item in nav_item.children %}
- {% set path = base ~ "-" ~ loop.index %}
+ {% set path = base ~ "-" ~ loop.index %}
{% set level = level + 1 %}
{% include "partials/nav-item.html" %}
{% endfor %}
@@ -37,6 +37,7 @@
{% endif %}
{{ nav_item.title }}
+ {% if nav_item.meta.month_change %}New{% endif %}
{% if toc | first is defined %}
{% include "partials/toc.html" %}
@@ -46,6 +47,7 @@
-
{{ nav_item.title }}
+ {% if nav_item.meta.month_change %}New{% endif %}
{% endif %}
From e9339952733b6536f7ef22dd255d814696203a5b Mon Sep 17 00:00:00 2001
From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com>
Date: Tue, 4 Jun 2024 14:22:33 +0200
Subject: [PATCH 2/3] Display "New" pills on May changes
---
docs/administration/recent_activity/recent_activity.md | 1 +
docs/api/php_api/php_api.md | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/docs/administration/recent_activity/recent_activity.md b/docs/administration/recent_activity/recent_activity.md
index e0a0347bc7..b82ba13f49 100644
--- a/docs/administration/recent_activity/recent_activity.md
+++ b/docs/administration/recent_activity/recent_activity.md
@@ -1,5 +1,6 @@
---
description: Log and monitor activity through UI, PHP API and REST API.
+month_change: true
---
# Recent activity [[% include 'snippets/experience_badge.md' %]] [[% include 'snippets/commerce_badge.md' %]]
diff --git a/docs/api/php_api/php_api.md b/docs/api/php_api/php_api.md
index cb96d1ec38..f7968ca4e0 100644
--- a/docs/api/php_api/php_api.md
+++ b/docs/api/php_api/php_api.md
@@ -1,11 +1,12 @@
---
description: Public PHP API exposes the Repository in a number of services and allows creating, reading, updating, managing, and deleting objects.
page_type: reference
+month_change: true
---
# PHP API
-The public PHP API enables you to interact with [[= product_name =]]'s Repository and content model from your PHP code.
+The [public PHP API](../php_api_reference/) enables you to interact with [[= product_name =]]'s Repository and content model from your PHP code.
You can use it to create, read, update, manage, and delete all objects available in [[= product_name =]], namely
content and related objects such as Sections, Locations, content types, languages, etc.
From 1cca5ce639c3527e23e24ca8ad4cabbacba456ac Mon Sep 17 00:00:00 2001
From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com>
Date: Thu, 6 Jun 2024 12:56:48 +0200
Subject: [PATCH 3/3] Update .pill.new in navigation.css
---
docs/css/navigation.css | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/docs/css/navigation.css b/docs/css/navigation.css
index 2ad98b6006..4bac94e3dc 100644
--- a/docs/css/navigation.css
+++ b/docs/css/navigation.css
@@ -134,7 +134,10 @@
}
.md-nav__link .pill.new {
- background-color: var(--turquoise-pearl);
+ margin-right: 15px;
+ background-color: #d9e8ff;
+ color: #3562a0;
+ text-transform: lowercase;
}
.md-nav__link::after {