Website: Remove extra dashes from markdown links (#10657)

Closes: #10458

Changes:
- Updated the generated id's for headings in Markdown content to remove
extra dashes in words that have multiple letter casings (e.g., `#my-sql`
» `#mysql`, `#git-hub-security` » `#github-security`)
- Updated links to Markdown headings that have changed.
.  ..

---------

Co-authored-by: Mike McNeil <mikermcneil@users.noreply.github.com>
This commit is contained in:
Eric 2023-03-22 19:34:59 -05:00 committed by GitHub
parent c40e780a8d
commit f970f6fb8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 17 additions and 17 deletions

View File

@ -618,7 +618,7 @@ settings.
* Fixed a bug in which logging in with single sign-on (SSO) did not work after a failed authorization attempt.
* Fixed a migration error. This only affects Fleet instances that use MariaDB. MariaDB is not [officially supported](https://fleetdm.com/docs/deploying/faq#what-my-sql-versions-are-supported). Future issues specific to MariaDB may not be fixed quickly (or at all). We strongly advise migrating to MySQL 8.0.19+.
* Fixed a migration error. This only affects Fleet instances that use MariaDB. MariaDB is not [officially supported](https://fleetdm.com/docs/deploying/faq#what-mysql-versions-are-supported). Future issues specific to MariaDB may not be fixed quickly (or at all). We strongly advise migrating to MySQL 8.0.19+.
* Fixed a bug on the **Edit pack** page in which no targets are shown in the target picker.
@ -991,7 +991,7 @@ was not in the `tmp/` directory.
* Fixed a bug in which Fleet failed to connect to Redis in standalone mode.
## Fleet 4.12.1 (Apr 4, 2022)
* Fixed a bug in which a user could not log in with basic authentication. This only affects Fleet deployments that use a [MySQL read replica](https://fleetdm.com/docs/deploying/configuration#my-sql).
* Fixed a bug in which a user could not log in with basic authentication. This only affects Fleet deployments that use a [MySQL read replica](https://fleetdm.com/docs/deploying/configuration#mysql).
## Fleet 4.12.0 (Mar 24, 2022)

View File

@ -72,7 +72,7 @@ Over a longer period, we are also planning to add DAST (Dynamic application secu
If you have read this far, youre probably already thinking of ways you can use tools like Scorecards in your daily work.
1. Compare our [GitHub security guide](https://fleetdm.com/handbook/security#git-hub-security) with your current configuration.
1. Compare our [GitHub security guide](https://fleetdm.com/handbook/security#github-security) with your current configuration.
2. Set Scorecard up in your repositories, and try to improve your score over time.
3. Add the [CII Best Practices Badge](https://bestpractices.coreinfrastructure.org/) to your public repositories to give everyone a quick way to see the maturity level of the repository.
4. If you use GitHub but for private repositories, try out [OpenSSF Allstar](https://github.com/ossf/allstar) to secure them. You can also use tools like [Peril](https://github.com/JupiterOne/peril) by JupiterOne to evaluate the risk on each pull request.

View File

@ -483,7 +483,7 @@ Once you have access to ABM, follow [these guided instructions](../Using-Fleet/M
The server also needs a private key + certificate to identify with Apple's [APNs](https://github.com/fleetdm/fleet/blob/main/tools/mdm/apple/glossary-and-protocols.md#apns-apple-push-notification-service) servers, and another for [SCEP](https://github.com/fleetdm/fleet/blob/main/tools/mdm/apple/glossary-and-protocols.md#scep-simple-certificate-enrollment-protocol).
To generate both, follow [these guided instructions](../Using-Fleet/Mobile-device-management.md#apple-push-notification-service-ap-ns).
To generate both, follow [these guided instructions](../Using-Fleet/Mobile-device-management.md#apple-push-notification-service-apns).
Note that:

View File

@ -150,7 +150,7 @@ The user `fleet prepare db` (via environment variable `FLEET_MYSQL_USERNAME` or
## Does Fleet support MySQL replication?
You can deploy MySQL or Maria any way you want. We recommend using managed/hosted mysql so you don't have to think about it, but you can think about it more if you want. Read replicas are supported. You can read more about MySQL configuration [here](https://fleetdm.com/docs/deploying/configuration#my-sql).
You can deploy MySQL or Maria any way you want. We recommend using managed/hosted mysql so you don't have to think about it, but you can think about it more if you want. Read replicas are supported. You can read more about MySQL configuration [here](https://fleetdm.com/docs/deploying/configuration#mysql).
## What is duplicate enrollment and how do I fix it?

View File

@ -31,7 +31,7 @@ Fleet UI:
2. Follow the on-screen instructions.
> Take note of the Apple ID you use to sign into Apple Push Certificates Portal. You'll need to use the same Apple ID when renewing your APNs certificate. Apple requires that APNs certificates are renewed once every year. To renew, see the [APNs Renewal section](#ap-ns-renewal) .
> Take note of the Apple ID you use to sign into Apple Push Certificates Portal. You'll need to use the same Apple ID when renewing your APNs certificate. Apple requires that APNs certificates are renewed once every year. To renew, see the [APNs Renewal section](#apns-renewal) .
## Renewing APNs

View File

@ -1876,7 +1876,7 @@ If `after` is being used with `created_at` or `updated_at`, the table must be sp
}
```
> Note: the response above assumes a [GeoIP database is configured](https://fleetdm.com/docs/deploying/configuration#geo-ip), otherwise the `geolocation` object won't be included.
> Note: the response above assumes a [GeoIP database is configured](https://fleetdm.com/docs/deploying/configuration#geoip), otherwise the `geolocation` object won't be included.
Response payload with the `mdm_id` filter provided:
@ -2270,7 +2270,7 @@ Returns the information of the specified host.
}
```
> Note: the response above assumes a [GeoIP database is configured](https://fleetdm.com/docs/deploying/configuration#geo-ip), otherwise the `geolocation` object won't be included.
> Note: the response above assumes a [GeoIP database is configured](https://fleetdm.com/docs/deploying/configuration#geoip), otherwise the `geolocation` object won't be included.
### Get host by identifier
@ -2463,7 +2463,7 @@ Returns the information of the host specified using the `uuid`, `osquery_host_id
}
```
> Note: the response above assumes a [GeoIP database is configured](https://fleetdm.com/docs/deploying/configuration#geo-ip), otherwise the `geolocation` object won't be included.
> Note: the response above assumes a [GeoIP database is configured](https://fleetdm.com/docs/deploying/configuration#geoip), otherwise the `geolocation` object won't be included.
### Delete host

View File

@ -380,7 +380,7 @@ In particular, host_id is a foreign key weve been skipping in all the new add
### In this section
- [Insert on duplicate update](#insert-on-duplicate-update)
- [Host extra data and JOINs](#host-extra-data-and-joi-ns)
- [Host extra data and JOINs](#host-extra-data-and-joins)
- [What DB tables matter more when thinking about performance?](#what-db-tables-matter-more-when-thinking-about-performance)
- [Expose more host data in the host listing](#expose-more-host-data-in-the-host-listing)
- [Understand main use-cases for queries](#understand-main-use-cases-for-queries)

View File

@ -8,7 +8,7 @@ contributors. The purpose of the marketing team is to own and improve the growth
#### In this section
- [Positioning](#positioning)
- [Marketing Qualified Opportunities (MQOs)](#marketing-qualified-opportunities-(MQOs)
- [Marketing Qualified Opportunities (MQOs)](#marketing-qualified-opportunities-mqos)
- [Lead enrichment](#lead-enrichment)
- [Posting on social media as Fleet](#posting-on-social-media-as-fleet)
- [Promoting blog posts on social media](#promoting-blog-posts-on-social-media)
@ -325,7 +325,7 @@ Learn how to communicate as Fleet with guidelines for tone of voice, our approac
#### In this section
- [How to make edits with GitHub](#how-to-make-edits-with-git-hub)
- [How to make edits with GitHub](#how-to-make-edits-with-github)
- [How to edit recently merged pull requests for the handbook](#how-to-edit-recently-merged-pull-requests-for-the-handbook)
- [How to edit Markdown pull requests for the docs](#how-to-edit-markdown-pull-requests-for-the-docs)
- [How to edit articles, release posts, and press releases](#how-to-edit-articles-release-posts-and-press-releases)
@ -384,7 +384,7 @@ Editing articles, release posts, and press releases usually comes in three flavo
* For unpublished articles, please read the review process in [How to submit and publish an article](https://fleetdm.com/handbook/digital-experience/how-to-submit-and-publish-an-article#review-process).
* To edit an existing article, see [How to make edits with GitHub](https://fleetdm.com/handbook/digital-experience#how-to-make-edits-with-git-hub).
* To edit an existing article, see [How to make edits with GitHub](https://fleetdm.com/handbook/digital-experience#how-to-make-edits-with-github).
#### How to edit social media posts
@ -501,7 +501,7 @@ The Brand team is responsible for production and maintenance of the Fleet websit
- [How to export images for the website](#how-to-export-images-for-the-website)
- [Maintaining browser compatibility](#maintaining-browser-compatibility)
- [Responding to a 5xx error on fleetdm.com](#responding-to-a-5-xx-error-on-fleetdm-com)
- [The "Deploy Fleet Website" GitHub action failed](#the-deploy-fleet-website-git-hub-action-failed)
- [The "Deploy Fleet Website" GitHub action failed](#the-deploy-fleet-website-github-action-failed)
- [Vulnerability monitoring](#vulnerability-monitoring)
- [How to make usability changes to the website](#how-to-make-usability-changes-to-the-website)

View File

@ -83,7 +83,7 @@ module.exports = {
if(text.match(/\S(\w+\_\S)+(\w\S)+/g) && !text.match(/\s/g)){
textWithLineBreaks = text.replace(/(\_)/g, '&#8203;_');
}
var headingID = _.kebabCase(_.unescape(text).replace(/[\\']/g, ''));
var headingID = _.kebabCase(_.unescape(text.toLowerCase()).replace(/[\\']/g, ''));
if(!_.contains(headingsRenderedOnThisPage, headingID)){
headingsRenderedOnThisPage.push(headingID);
} else {

View File

@ -123,7 +123,7 @@ parasails.registerPage('basic-documentation', {
let kebabCaseFriendlyTitle = title.replace(/[\]/g, '');
return {
title,
url: '#' + _.kebabCase(kebabCaseFriendlyTitle),
url: '#' + _.kebabCase(kebabCaseFriendlyTitle.toLowerCase()),
};
});
return subtopics;

View File

@ -86,7 +86,7 @@ parasails.registerPage('basic-handbook', {
let kebabCaseFriendlyTitle = title.replace(/[\]/g, '');
return {
title: title.replace(/([\uE000-\uF8FF]|\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDDFF])/g, ''), // take out any emojis (they look weird in the menu)
url: '#' + _.kebabCase(kebabCaseFriendlyTitle),
url: '#' + _.kebabCase(kebabCaseFriendlyTitle.toLowerCase()),
};
});
return subtopics;