Skip to content

Commit e13652c

Browse files
authored
Merge pull request #255 from dotCMS/persona-funnel-tops
Adding new pages to give a bit more introductory material to help hol…
2 parents 202ec65 + c03b54f commit e13652c

8 files changed

Lines changed: 697 additions & 4 deletions

File tree

app/docs/authoring/page.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import type { Metadata } from "next";
2+
import { PersonaLandingPage } from "@/components/persona-landing/PersonaLandingPage";
3+
4+
const hostname = "https://dev.dotcms.com";
5+
6+
export const metadata: Metadata = {
7+
title: "Content teams",
8+
description:
9+
"Introductory hub for editors and marketers: Universal Visual Editor, pages, personalization, governance, and visual editing.",
10+
alternates: {
11+
canonical: `${hostname}/docs/authoring`,
12+
},
13+
openGraph: {
14+
title: "Content teams | dotCMS Docs",
15+
description:
16+
"UVE, page building, personalization, workflows, and content best practices on dotCMS.",
17+
url: `${hostname}/docs/authoring`,
18+
siteName: "dotCMS Docs",
19+
locale: "en_US",
20+
type: "website",
21+
},
22+
};
23+
24+
export default function AuthoringPersonaPage() {
25+
return <PersonaLandingPage personaId="authoring" />;
26+
}

app/docs/developer/page.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import type { Metadata } from "next";
2+
import { PersonaLandingPage } from "@/components/persona-landing/PersonaLandingPage";
3+
4+
const hostname = "https://dev.dotcms.com";
5+
6+
export const metadata: Metadata = {
7+
title: "Developers",
8+
description:
9+
"A curated starting point for engineers: APIs, SDKs, UVE, integrations, and the dotCMS developer workflow.",
10+
alternates: {
11+
canonical: `${hostname}/docs/developer`,
12+
},
13+
openGraph: {
14+
title: "Developers | dotCMS Docs",
15+
description:
16+
"APIs, SDKs, Universal Visual Editor, and integration resources for dotCMS developers.",
17+
url: `${hostname}/docs/developer`,
18+
siteName: "dotCMS Docs",
19+
locale: "en_US",
20+
type: "website",
21+
},
22+
};
23+
24+
export default function DeveloperPersonaPage() {
25+
return <PersonaLandingPage personaId="developer" />;
26+
}

app/docs/devops/page.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import type { Metadata } from "next";
2+
import { PersonaLandingPage } from "@/components/persona-landing/PersonaLandingPage";
3+
4+
const hostname = "https://dev.dotcms.com";
5+
6+
export const metadata: Metadata = {
7+
title: "DevOps",
8+
description:
9+
"Operations hub for dotCMS: deployment, security, performance, multi-site management, and maintenance.",
10+
alternates: {
11+
canonical: `${hostname}/docs/devops`,
12+
},
13+
openGraph: {
14+
title: "DevOps | dotCMS Docs",
15+
description:
16+
"Deploy, secure, tune, and run dotCMS with releases, security advisories, and operational guides.",
17+
url: `${hostname}/docs/devops`,
18+
siteName: "dotCMS Docs",
19+
locale: "en_US",
20+
type: "website",
21+
},
22+
};
23+
24+
export default function DevopsPersonaPage() {
25+
return <PersonaLandingPage personaId="devops" />;
26+
}

app/test-components/page.tsx

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
'use client'
2+
3+
import MarkdownContent from '@/components/MarkdownContent'
4+
5+
const markdownContent = `
6+
# Block Components Test Page
7+
8+
Demoing the custom block components capable of being dropped into markdown content:
9+
10+
## API Endpoints
11+
12+
Dropping this component directly into your markdown content:
13+
14+
\`\`\`markdown
15+
<Endpoint method="GET" path="/api/v1/contenttype" />
16+
\`\`\`
17+
18+
Will give this output:
19+
20+
<Endpoint method="GET" path="/api/v1/contenttype" />
21+
22+
And lo, I can put text in between them!
23+
24+
<Endpoint method="POST" path="/api/v1/workflow/steps" />
25+
26+
Also all the **normal *markdown*** stuff [works](https://www.google.com) too!
27+
28+
<Endpoint method="PUT" path="/api/v1/workflow/steps/{stepId}" />
29+
30+
<Endpoint method="DELETE" path="/api/v1/contenttype/id/{idOrVar}" />
31+
32+
<Endpoint method="GET" path="/api/v1/site" />
33+
34+
## Info, Warning boxes
35+
36+
<Info>
37+
The Info component works as expected!
38+
</Info>
39+
40+
<Warn>
41+
And the Warn component too!
42+
</Warn>
43+
`;
44+
45+
export default function TestComponentsPage() {
46+
return (
47+
<div className="container mx-auto px-4 py-8 max-w-4xl">
48+
<MarkdownContent content={markdownContent} />
49+
</div>
50+
)
51+
}

components/content-types/hero.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function Hero(props: HeroProps) {
6363

6464
<div className="grid gap-12 md:grid-cols-2 lg:grid-cols-3">
6565
<FeatureCard
66-
href={card1?.url ? card1?.url : "/docs/developer"}
66+
href="/docs/developer"
6767
icon={Code}
6868
title={card1?.title}
6969
description={card1?.description}
@@ -76,7 +76,7 @@ export default function Hero(props: HeroProps) {
7676

7777
{card2 && (
7878
<FeatureCard
79-
href={card2.url ? card2.url : "/docs/authoring"}
79+
href="/docs/authoring"
8080
icon={PenTool}
8181
title={card2?.title}
8282
description={card2?.description}
@@ -89,7 +89,7 @@ export default function Hero(props: HeroProps) {
8989

9090
{card3 && (
9191
<FeatureCard
92-
href={card3.url ? card3.url : "/docs/devops"}
92+
href="/docs/devops"
9393
icon={Server}
9494
title={card3.title}
9595
description={card3.description}

components/navigation/fallback.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)