fix(docs): Fix site title and description (#23131)

Current contents were copied from example boilerplate and were missed in
the initial Docusaurus PR.

This PR fixes the generated site title to be `Fluid Framework` instead
of `Fluid Framework | Hello from Fluid Framework!`.
Also removes the template page description.
This commit is contained in:
Joshua Smithrud 2024-11-18 15:42:16 -08:00 коммит произвёл GitHub
Родитель e8d8c654e1
Коммит a101fb23ba
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 2 добавлений и 7 удалений

Просмотреть файл

@ -3,7 +3,6 @@
* Licensed under the MIT License.
*/
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import Layout from "@theme/Layout";
import React from "react";
@ -13,12 +12,8 @@ import { Homepage } from "@site/src/components/home";
* The website homepage root (including the header and footer injected by Docusaurus).
*/
export default function Home(): React.ReactElement {
const { siteConfig } = useDocusaurusContext();
return (
<Layout
title={`Hello from ${siteConfig.title}`}
description="Description will go into a meta tag in <head />"
>
<Layout>
<Homepage />
</Layout>
);

Просмотреть файл

@ -8,6 +8,6 @@ import { test, expect } from "@playwright/test";
test.describe("Homepage", () => {
test("Load the homepage (smoke test)", async ({ page }) => {
await page.goto("/", { waitUntil: "domcontentloaded" });
expect(await page.title()).toBe("Hello from Fluid Framework | Fluid Framework");
expect(await page.title()).toBe("Fluid Framework");
});
});