From a78490d332bbc08a50672ae29595b27522bbf589 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 8 May 2024 15:25:55 -0400 Subject: [PATCH] docs: refactor navbar and sidebar out of config Signed-off-by: Rui Chen --- .gitignore | 6 +++--- package.json | 1 - pnpm-lock.yaml | 3 --- runatlantis.io/.vuepress/{config.ts => config.js} | 4 ++-- runatlantis.io/.vuepress/{navbar.ts => navbar.js} | 0 runatlantis.io/.vuepress/{sidebar.ts => sidebar.js} | 0 6 files changed, 5 insertions(+), 9 deletions(-) rename runatlantis.io/.vuepress/{config.ts => config.js} (98%) rename runatlantis.io/.vuepress/{navbar.ts => navbar.js} (100%) rename runatlantis.io/.vuepress/{sidebar.ts => sidebar.js} (100%) diff --git a/.gitignore b/.gitignore index c4439ac8e1..3306e4c23b 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,6 @@ tmp-CHANGELOG.md # vuepress **/.vuepress/* -!runatlantis.io/.vuepress/config.ts -!runatlantis.io/.vuepress/navbar.ts -!runatlantis.io/.vuepress/sidebar.ts +!runatlantis.io/.vuepress/config.* +!runatlantis.io/.vuepress/navbar.* +!runatlantis.io/.vuepress/sidebar.* diff --git a/package.json b/package.json index 2349c14be9..e592319d4e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,6 @@ "license": "Apache-2.0", "devDependencies": { "@playwright/test": "^1.44.0", - "@types/node": "^20.12.11", "@vuepress/bundler-webpack": "2.0.0-rc.9", "@vuepress/plugin-docsearch": "2.0.0-rc.21", "@vuepress/plugin-google-analytics": "2.0.0-rc.21", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5acdb3bca0..9b731943df 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,9 +8,6 @@ devDependencies: '@playwright/test': specifier: ^1.44.0 version: 1.44.0 - '@types/node': - specifier: ^20.12.11 - version: 20.12.11 '@vuepress/bundler-webpack': specifier: 2.0.0-rc.9 version: 2.0.0-rc.9 diff --git a/runatlantis.io/.vuepress/config.ts b/runatlantis.io/.vuepress/config.js similarity index 98% rename from runatlantis.io/.vuepress/config.ts rename to runatlantis.io/.vuepress/config.js index 7a6d70525b..fb042ca3c3 100644 --- a/runatlantis.io/.vuepress/config.ts +++ b/runatlantis.io/.vuepress/config.js @@ -5,8 +5,8 @@ import { defaultTheme } from '@vuepress/theme-default'; import { defineUserConfig } from 'vuepress'; import { sitemapPlugin } from '@vuepress/plugin-sitemap'; import { webpackBundler } from '@vuepress/bundler-webpack'; -import * as navbar from "./navbar"; -import * as sidebar from "./sidebar"; +import navbar from "./navbar"; +import sidebar from "./sidebar"; const __dirname = getDirname(import.meta.url) diff --git a/runatlantis.io/.vuepress/navbar.ts b/runatlantis.io/.vuepress/navbar.js similarity index 100% rename from runatlantis.io/.vuepress/navbar.ts rename to runatlantis.io/.vuepress/navbar.js diff --git a/runatlantis.io/.vuepress/sidebar.ts b/runatlantis.io/.vuepress/sidebar.js similarity index 100% rename from runatlantis.io/.vuepress/sidebar.ts rename to runatlantis.io/.vuepress/sidebar.js