From 5a9e621d6a32cdb65310a4172350cfae909ed55d Mon Sep 17 00:00:00 2001 From: futantan Date: Wed, 6 Dec 2023 21:01:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20update=20site=20configur?= =?UTF-8?q?ation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 +------- package.json | 12 ++++++------ pages/_meta.json | 14 ++++++++------ pages/about.mdx | 3 --- theme.config.tsx | 44 +++++++++++++++++++++++++++++++++++--------- 5 files changed, 50 insertions(+), 31 deletions(-) delete mode 100644 pages/about.mdx diff --git a/README.md b/README.md index 7a0dddc..0f10e62 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Nextra Docs Template +# Smart Token Store Documentation This is a template for creating documentation with [Nextra](https://nextra.site). @@ -6,12 +6,6 @@ This is a template for creating documentation with [Nextra](https://nextra.site) [![](.github/screenshot.png)](https://nextra-docs-template.vercel.app) -## Quick Start - -Click the button to clone this repository and deploy it on Vercel: - -[![](https://vercel.com/button)](https://vercel.com/new/clone?s=https%3A%2F%2Fgithub.com%2Fshuding%2Fnextra-docs-template&showOptionalTeamCreation=false) - ## Local Development First, run `pnpm i` to install the dependencies. diff --git a/package.json b/package.json index 0a47d27..7084ce7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "nextra-docs-template", + "name": "smart-token-store-doc", "version": "0.0.1", - "description": "Nextra docs template", + "description": "Smart Token Store Docs", "scripts": { "dev": "next dev", "build": "next build", @@ -9,14 +9,14 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/shuding/nextra-docs-template.git" + "url": "git+https://github.com/smarttokenlabs/tokenscript-doc.git" }, - "author": "Shu Ding ", + "author": "sayhi@smarttokenlabs.com", "license": "MIT", "bugs": { - "url": "https://github.com/shuding/nextra-docs-template/issues" + "url": "https://github.com/smarttokenlabs/tokenscript-doc/issues" }, - "homepage": "https://github.com/shuding/nextra-docs-template#readme", + "homepage": "https://github.com/smarttokenlabs/tokenscript-doc#readme", "dependencies": { "next": "^13.0.6", "nextra": "latest", diff --git a/pages/_meta.json b/pages/_meta.json index c52fe86..eb85de7 100644 --- a/pages/_meta.json +++ b/pages/_meta.json @@ -3,14 +3,16 @@ "store": "Smart Token Store", "tokenscript": "TokenScript", - "about": { - "title": "About", - "type": "page" + "storeWebsite": { + "title": "Store ↗", + "type": "page", + "href": "https://store.smartlayer.network/", + "newWindow": true }, - "contact": { - "title": "Contact ↗", + "tokenscriptWebsite": { + "title": "TokenScript ↗", "type": "page", - "href": "https://twitter.com/shuding_", + "href": "https://www.tokenscript.org/", "newWindow": true } } diff --git a/pages/about.mdx b/pages/about.mdx deleted file mode 100644 index ec6faed..0000000 --- a/pages/about.mdx +++ /dev/null @@ -1,3 +0,0 @@ -# About - -This is the about page! This page is shown on the navbar. diff --git a/theme.config.tsx b/theme.config.tsx index 88b8e2b..7f25c2d 100644 --- a/theme.config.tsx +++ b/theme.config.tsx @@ -1,18 +1,44 @@ -import React from 'react' -import { DocsThemeConfig } from 'nextra-theme-docs' +import { DocsThemeConfig } from 'nextra-theme-docs'; const config: DocsThemeConfig = { - logo: My Project, + logo: ( + + + + + + ), project: { - link: 'https://github.com/shuding/nextra-docs-template', + link: 'https://github.com/smarttokenlabs/tokenscript-doc', }, chat: { - link: 'https://discord.com', + link: 'https://discord.gg/smartlayer', }, - docsRepositoryBase: 'https://github.com/shuding/nextra-docs-template', + docsRepositoryBase: 'https://discord.gg/smartlayer', footer: { - text: 'Nextra Docs Template', + text: 'Smart Token Store', }, -} +}; -export default config +export default config;