From 5d07c5fc2aa0e99d6ecaa2317fd158c57edf2eb9 Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Mon, 9 Oct 2023 12:53:29 +0300 Subject: [PATCH 1/2] fix docs and getting-started example readme --- docs/pages/get-started/step-5.mdx | 2 +- examples/getting-started/README.md | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/pages/get-started/step-5.mdx b/docs/pages/get-started/step-5.mdx index 933c219d2..01aa3144e 100644 --- a/docs/pages/get-started/step-5.mdx +++ b/docs/pages/get-started/step-5.mdx @@ -1,4 +1,4 @@ -# **Step 4:** All in one place +# **Step 5:** All in one place ## TLDR We have created some handy example directory for the tutorial you just went through. diff --git a/examples/getting-started/README.md b/examples/getting-started/README.md index ccf525db9..2fbdd7ea8 100644 --- a/examples/getting-started/README.md +++ b/examples/getting-started/README.md @@ -4,7 +4,6 @@ Simple self-contained example to get started with Starship. ## TLDR ```bash -```bash cd getting-started/ # Install the starship instance and run port-forward From ef5ab49ab17c21a8856f1ff1b36470662e77206c Mon Sep 17 00:00:00 2001 From: Anmol1696 Date: Wed, 11 Oct 2023 10:14:44 +0530 Subject: [PATCH 2/2] add head --- docs/theme.config.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/theme.config.js b/docs/theme.config.js index 8534d8a82..dbc7c415f 100644 --- a/docs/theme.config.js +++ b/docs/theme.config.js @@ -1,5 +1,6 @@ import { useConfig } from "nextra-theme-docs"; import React from "react"; +import { useRouter } from "next/router"; /* eslint sort-keys: error */ /** @@ -24,6 +25,26 @@ export default { ), }, + head: () => { + const { asPath, defaultLocale, locale } = useRouter(); + const { title } = useConfig(); + const url = + "https://starship.cosmology.tech/" + + (defaultLocale === locale ? asPath : `/${locale}${asPath}`); + + const _title = asPath !== "/" ? `${title} - Cosmology` : `${title}`; + return ( + <> + + + + {_title} + + ); + }, chat: { link: "https://discord.gg/6hy8KQ9aJY", },