global: move everything to notesnook.com/help/* (#10238)

This commit is contained in:
Abdullah Atta
2026-08-14 12:34:07 +05:00
committed by GitHub
parent 52d6044e73
commit 87aa98b85e
33 changed files with 1591 additions and 61 deletions

View File

@@ -21,19 +21,22 @@ export default defineConfig({
"Your complete and free resource to using Notesnook as a daily note taking app to organize your work and life while safeguarding your privacy.",
lang: "en-US",
srcDir: "./contents",
base: "/help/",
outDir: "./.vitepress/dist/help",
// Version overrides are source material for build-versions.mjs, not pages.
// The Standard Notes importer is unpublished for now — the page is kept in
// the repo but is not built, linked or listed in the sitemap. Delete the
// second entry (and restore the sidebar link) to publish it again.
srcExclude: [
"_versions/**",
"importing-notes/import-notes-from-standardnotes.md"
"importing-notes/import-notes-from-standardnotes.md",
"self-hosting.md"
],
cleanUrls: true,
lastUpdated: true,
metaChunk: true,
sitemap: {
hostname: "https://help.notesnook.com",
hostname: "https://notesnook.com/help",
// Only the latest docs belong in the sitemap.
transformItems: (items) =>
items.filter(
@@ -69,7 +72,7 @@ export default defineConfig({
"link",
{
rel: "preload",
href: "/fonts/Inter-Regular.woff2",
href: "/help/fonts/Inter-Regular.woff2",
as: "font",
type: "font/woff2",
crossorigin: ""
@@ -79,7 +82,7 @@ export default defineConfig({
"link",
{
rel: "preload",
href: "/fonts/Inter-SemiBold.woff2",
href: "/help/fonts/Inter-SemiBold.woff2",
as: "font",
type: "font/woff2",
crossorigin: ""
@@ -94,9 +97,9 @@ export default defineConfig({
{
async: "",
defer: "",
"data-website-id": "ad34576b-2721-436c-b36a-47a614009d2b",
"data-website-id": "676a7449-2151-44f7-a8c7-3b0691cade30",
src: "https://aas.streetwriters.co/script.js",
"data-domains": "help.notesnook.com"
"data-domains": "notesnook.com"
}
]
],

View File

@@ -21,14 +21,13 @@ import { join } from "node:path";
import type { HeadConfig, TransformPageContext, PageData } from "vitepress";
import { resolveString } from "./strings.mjs";
const SITE = "https://help.notesnook.com";
const SITE = "https://notesnook.com/help";
const OG_IMAGE = `${SITE}/logo.png`;
const url = (relativePath: string) =>
`${SITE}/${relativePath.replace(/(index)?\.md$/, "").replace(/\/$/, "")}`.replace(
/\/$/,
""
) || SITE;
`${SITE}/${relativePath
.replace(/(index)?\.md$/, "")
.replace(/\/$/, "")}`.replace(/\/$/, "") || SITE;
/** "organizing-notes/archive-notes.md" -> ["Organizing notes", "Archive notes"] */
function breadcrumbs(relativePath: string, title: string) {