From 1f62aa7ec76b3842bda81a617585a0908f5bc88f Mon Sep 17 00:00:00 2001 From: Perryvw Date: Thu, 18 Aug 2022 12:39:06 +0200 Subject: [PATCH 1/2] mention tstl on website for improved SEO --- docusaurus.config.js | 6 ++++++ src/pages/index.tsx | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/docusaurus.config.js b/docusaurus.config.js index e87ae354..a61fe687 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -6,6 +6,12 @@ module.exports = { baseUrl: "/", favicon: "images/favicon.ico", themeConfig: { + metadata: [ + { + name: "keywords", + content: "typescript-to-lua, typescript to lua, tstl, typescript, lua, transpiler, compiler", + }, + ], navbar: { title: "TypeScriptToLua", logo: { src: "images/logo.png" }, diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 0b5951be..bfe39f79 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -122,6 +122,25 @@ export default function Home() { ))} +
+
+
+

Getting started

+

+ Getting started with TSTL is easy, simply install typescript-to-lua from npm: +

+ $ npm install typescript typescript-to-lua +

+ You can now run tstl via command line, similar to tsc +

+ $ npx tstl +

+ For more information, see{" "} + tstl Getting Started documentation. +

+
+
+
); From 714e13fe372d946713b375678a1404499269e783 Mon Sep 17 00:00:00 2001 From: Perryvw Date: Thu, 18 Aug 2022 12:59:36 +0200 Subject: [PATCH 2/2] Fix meta tags and recommend installing as dev dependency --- src/pages/index.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index bfe39f79..5f7a0a56 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,3 +1,4 @@ +import Head from "@docusaurus/Head"; import Link from "@docusaurus/Link"; import useBaseUrl from "@docusaurus/useBaseUrl"; import CodeBlock from "@theme/CodeBlock"; @@ -80,6 +81,16 @@ function Feature({ title, description }: Feature) { export default function Home() { return ( + + + +

Type @@ -129,7 +140,7 @@ export default function Home() {

Getting started with TSTL is easy, simply install typescript-to-lua from npm:

- $ npm install typescript typescript-to-lua + $ npm install -D typescript typescript-to-lua

You can now run tstl via command line, similar to tsc