diff --git a/src/assets/meta.json b/src/assets/meta.json index 009593e..f3d38c5 100644 --- a/src/assets/meta.json +++ b/src/assets/meta.json @@ -2,6 +2,7 @@ "social": { "github": "https://github.com/Dash-Industry-Forum/dash.js", "reference_player": "https://reference.dashif.org/dash.js/nightly/samples/dash-if-reference-player/index.html", + "get_started": "https://dashif.org/dash.js/pages/quickstart/index.html", "slack": "https://dashif.slack.com/archives/C11R69M96", "twitter": "https://twitter.com/dash_if", "linkedin": "https://www.linkedin.com/groups/12427371/", diff --git a/src/pages/get-started/index.jsx b/src/pages/get-started/index.jsx index 57165e0..9b03fe9 100644 --- a/src/pages/get-started/index.jsx +++ b/src/pages/get-started/index.jsx @@ -17,30 +17,3 @@ export default function Index({ title, description, html }) { ); } - -export async function getStaticProps() { - const pages = [ - "https://github.com/Dash-Industry-Forum/dash.js/blob/gh-pages/pages/quickstart/installation.md", - "https://github.com/Dash-Industry-Forum/dash.js/blob/gh-pages/pages/quickstart/setup.md", - ]; - const markdown = await Promise.all( - pages.map(async (page) => { - const response = await fetch(page); - const payload = await response.json(); - const $ = load(payload.payload.blob.richText); - $(".markdown-body table").first().remove(); - const content = $(".markdown-body").html(); - return content; - }) - ); - const html = markdown.join(""); - - return { - props: { - title: "Get Started", - description: "Get Started with dash.js", - content: true, - html, - }, - }; -} diff --git a/src/pages/index.js b/src/pages/index.js index 258d6a3..e72b919 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -72,7 +72,11 @@ function Entry() {  now!
- +