Skip to content

Commit

Permalink
Merge pull request #2882 from jinbiao-bianjie/master
Browse files Browse the repository at this point in the history
fix dependabot alerts
  • Loading branch information
aofengli authored Nov 29, 2023
2 parents ea67121 + 424677f commit 8f5944e
Show file tree
Hide file tree
Showing 4 changed files with 4,705 additions and 25,547 deletions.
1 change: 1 addition & 0 deletions docs/.vuepress/client.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 26 additions & 21 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const glob = require("glob");
const markdownIt = require("markdown-it");
const meta = require("markdown-it-meta");
const fs = require("fs");
const _ = require("lodash");

import glob from 'glob';
import markdownIt from 'markdown-it'
import meta from 'markdown-it-meta'
import fs from 'fs'
import _ from 'lodash'
import { searchPlugin } from '@vuepress/plugin-search'
const sidebar = (directory, array) => {
return array.map(i => {
const children = _.sortBy(
Expand All @@ -20,22 +20,27 @@ const sidebar = (directory, array) => {
.filter(f => f.order !== false),
["order", "path"]
)
.map(f => f.path)
.map(f => f.path.slice(1))
.filter(f => !f.match("README"));

return {
title: i[0],
children
text: i[0],
children,
collapsible:true
};
});
};

module.exports = {
import{defineUserConfig } from 'vuepress'
import { defaultTheme } from 'vuepress'
export default defineUserConfig( {
base: "/docs/",
plugins: [
['@vuepress/search', {
searchMaxSuggestions: 10
}]
searchPlugin({
locales: {
'/': {
placeholder: 'Search',
},
}
}),
],
locales: {
"/": {
Expand All @@ -44,16 +49,16 @@ module.exports = {
description: "IRISnet Documents",
}
},
themeConfig: {
theme: defaultTheme({
repo: "irisnet/irishub",
docsDir: "docs",
editLinks: true,
docsBranch: "master",
docsBranch: "main",
editLinkText: 'Help us improve this page!',
locales: {
"/": {
editLinkText: 'Help us improve this page!',
nav: [
navbar: [
{
text: 'Back to IRISnet',
link: 'https://www.irisnet.org'
Expand All @@ -69,8 +74,8 @@ module.exports = {
["Tools", "tools"],
["Migration", "migration"],
["Resources", "resources"]
])
]),
}
},
}
};
}),
});
Loading

0 comments on commit 8f5944e

Please sign in to comment.