Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Kholid060 committed Aug 28, 2023
1 parent 0224597 commit aaf488c
Show file tree
Hide file tree
Showing 3 changed files with 575 additions and 637 deletions.
26 changes: 8 additions & 18 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import 'dotenv/config';
import { defineConfig } from 'vitepress';
import { createWriteStream } from 'node:fs';
import { resolve } from 'node:path';
import { SitemapStream } from 'sitemap';
import dotenv from 'dotenv';

dotenv.config();

const links: { url: string; lastmod: number | undefined }[] = [];

Expand Down Expand Up @@ -32,13 +27,10 @@ const config = defineConfig({
url: pageData.relativePath.replace(/\.md$/, '.html'),
lastmod: pageData.lastUpdated
})
},
buildEnd: ({ outDir }) => {
const sitemap = new SitemapStream({ hostname: 'https://docs.automa.site/' })
const writeStream = createWriteStream(resolve(outDir, 'sitemap.xml'))
sitemap.pipe(writeStream)
links.forEach((link) => sitemap.write(link))
sitemap.end()
},
sitemap: {
hostname: 'https://docs.automa.site/',
lastmodDateOnly: false
},
themeConfig: {
nav: [
Expand All @@ -49,7 +41,6 @@ const config = defineConfig({
apiKey: process.env.SEARCH_API_KEY,
appId: process.env.SEARCH_APP_ID,
indexName: process.env.SEARCH_INDEX_NAME,
buttonText: 'Search docs',
},
sidebar: {
'/': [
Expand All @@ -62,7 +53,7 @@ const config = defineConfig({
},
{
text: 'Workflow',
collapsible: true,
collapsed: false,
items: [
{ text: 'Overview', link: '/workflow/overview' },
{ text: 'Running a Workflow', link: '/workflow/running-a-workflow' },
Expand All @@ -83,7 +74,6 @@ const config = defineConfig({
},
{
text: 'Blocks',
collapsible: true,
collapsed: true,
items: [
{
Expand Down Expand Up @@ -352,7 +342,7 @@ const config = defineConfig({
},
{
text: 'Reference',
collapsible: true,
collapsed: false,
items: [
{ text: 'Storage', link: '/reference/storage' },
{ text: 'Packages', link: '/reference/packages' },
Expand All @@ -363,7 +353,7 @@ const config = defineConfig({
},
{
text: 'Integrations',
collapsible: true,
collapsed: false,
items: [
{ text: 'Google Drive', link: '/integrations/google-drive' },
]
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"docs:build": "vitepress build docs",
"docs:serve": "vitepress serve docs"
},
"type": "module",
"devDependencies": {
"dotenv": "^16.0.3",
"sitemap": "^7.1.1",
"typescript": "^4.9.3",
"vitepress": "^1.0.0-alpha.29",
"vue": "^3.2.45"
"@types/node": "^20.5.7",
"dotenv": "^16.3.1",
"typescript": "^5.2.2",
"vitepress": "^1.0.0-rc.8",
"vue": "^3.3.4"
},
"dependencies": {
"v-remixicon": "^0.1.4"
Expand Down
Loading

0 comments on commit aaf488c

Please sign in to comment.