docs: improved SEO of documentation (#3117)

* docs: added description to documentation pages

* docs: added more descriptions

* docs: finished improving meta description

* docs: added searchbox structured data

* docs: added breadcrumbs structured data

* docs: added how to structured data

* docs: improved 404 page

* docs: added how-to frontmatter option
This commit is contained in:
Shahed Nasser
2023-01-26 15:58:33 +02:00
committed by GitHub
parent 4e82ec0734
commit 589cb18f98
158 changed files with 699 additions and 48 deletions
@@ -38,15 +38,11 @@ export default function Feedback ({
}
function submitFeedback (e, feedback = null) {
console.log(id, feedback, (feedback !== null && feedback) || (feedback === null && positiveFeedback) ? 'yes' : 'no')
if (isBrowser) {
console.log("here1");
if (window.analytics) {
console.log("here3");
if (showForm) {
setLoading(true);
}
console.log("here4");
window.analytics.track(event, {
url: location.pathname,
label: document.title,
@@ -54,17 +50,13 @@ export default function Feedback ({
message,
uuid: id
}, function () {
console.log("here5");
if (showForm) {
setLoading(false);
console.log("here6");
resetForm();
}
})
} else {
console.log("here7");
if (showForm) {
console.log("here8");
resetForm();
}
}