Skip to content

Commit

Permalink
fix docs and getting-started example readme (#272)
Browse files Browse the repository at this point in the history
* fix docs and getting-started example readme

* add head
  • Loading branch information
Anmol1696 committed Oct 11, 2023
1 parent cb76679 commit a5476c5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/pages/get-started/step-5.mdx
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
21 changes: 21 additions & 0 deletions docs/theme.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useConfig } from "nextra-theme-docs";
import React from "react";
import { useRouter } from "next/router";

/* eslint sort-keys: error */
/**
Expand All @@ -24,6 +25,26 @@ export default {
</span>
),
},
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 (
<>
<meta property="og:url" content={url} />
<meta property="og:title" content={_title} />
<meta
property="og:description"
content={"Unified development environment"}
/>
<title>{_title}</title>
</>
);
},
chat: {
link: "https://discord.gg/6hy8KQ9aJY",
},
Expand Down
1 change: 0 additions & 1 deletion examples/getting-started/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a5476c5

Please sign in to comment.