Website: update IDs and currentSection values of landing pages (#18131)

Closes: #18072

Changes:
- Updated the IDs of landing pages to prevent auto-generated IDs of
Markdown headings having the same ID as pages.
- Added a `currentSection` value to the /endpoint-ops and
/vulnerability-management pages.
This commit is contained in:
Eric 2024-04-08 15:00:39 -05:00 committed by GitHub
parent 05ccf9ee23
commit 455cb861e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 11 additions and 9 deletions

View file

@ -1,4 +1,4 @@
parasails.registerPage('device-management', {
parasails.registerPage('device-management-page', {
// ╦╔╗╔╦╔╦╗╦╔═╗╦ ╔═╗╔╦╗╔═╗╔╦╗╔═╗
// ║║║║║ ║ ║╠═╣║ ╚═╗ ║ ╠═╣ ║ ║╣
// ╩╝╚╝╩ ╩ ╩╩ ╩╩═╝ ╚═╝ ╩ ╩ ╩ ╩ ╚═╝

View file

@ -1,4 +1,4 @@
parasails.registerPage('endpoint-ops', {
parasails.registerPage('endpoint-ops-page', {
// ╦╔╗╔╦╔╦╗╦╔═╗╦ ╔═╗╔╦╗╔═╗╔╦╗╔═╗
// ║║║║║ ║ ║╠═╣║ ╚═╗ ║ ╠═╣ ║ ║╣
// ╩╝╚╝╩ ╩ ╩╩ ╩╩═╝ ╚═╝ ╩ ╩ ╩ ╩ ╚═╝

View file

@ -1,4 +1,4 @@
parasails.registerPage('vulnerability-management', {
parasails.registerPage('vulnerability-management-page', {
// ╦╔╗╔╦╔╦╗╦╔═╗╦ ╔═╗╔╦╗╔═╗╔╦╗╔═╗
// ║║║║║ ║ ║╠═╣║ ╚═╗ ║ ╠═╣ ║ ║╣
// ╩╝╚╝╩ ╩ ╩╩ ╩╩═╝ ╚═╝ ╩ ╩ ╩ ╩ ╚═╝

View file

@ -1,4 +1,4 @@
#device-management {
#device-management-page {
@heading-lineheight: 120%;
@text-lineheight: 150%;

View file

@ -1,4 +1,4 @@
#endpoint-ops {
#endpoint-ops-page {
@heading-line-height: 120%;
@text-line-height: 150%;

View file

@ -1,4 +1,4 @@
#vulnerability-management {
#vulnerability-management-page {
background: linear-gradient(180deg, #E8F1F6 0%, #FFF 8.76%);
h1 {
font-size: 56px;

View file

@ -248,6 +248,7 @@ module.exports.routes = {
locals: {
pageTitleForMeta: 'Endpoint ops | Fleet',
pageDescriptionForMeta: 'Pulse check anything, build reports, and ship data to any platform with Fleet.',
currentSection: 'platform',
}
},
@ -256,6 +257,7 @@ module.exports.routes = {
locals: {
pageTitleForMeta: 'Vulnerability management | Fleet',
pageDescriptionForMeta: 'Report CVEs, software inventory, security posture, and other risks down to the chipset of any endpoint with Fleet.',
currentSection: 'platform',
}
},

View file

@ -1,4 +1,4 @@
<div id="device-management" v-cloak>
<div id="device-management-page" v-cloak>
<div purpose="page-container">
<div purpose="page-content" class="mx-auto">
<div purpose="hero">

View file

@ -1,4 +1,4 @@
<div id="endpoint-ops" v-cloak>
<div id="endpoint-ops-page" v-cloak>
<div purpose="page-container">
<div purpose="page-content" class="mx-auto">
<div purpose="hero">

View file

@ -1,4 +1,4 @@
<div id="vulnerability-management" v-cloak>
<div id="vulnerability-management-page" v-cloak>
<div purpose="page-container">
<div purpose="page-content" class="mx-auto">
<div purpose="hero">