Skip to content

Commit

Permalink
add search and temporary template for admin docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jinkang-0 committed May 16, 2024
1 parent 9b6ad88 commit b72553e
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
7 changes: 7 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { viteBundler } from '@vuepress/bundler-vite';
import { searchPlugin } from '@vuepress/plugin-search';
import { defaultTheme } from '@vuepress/theme-default';
import { defineUserConfig } from 'vuepress';

Expand All @@ -9,6 +10,8 @@ const globalNavbar = [
{ text: 'Design Prototypes', link: '/design/' },
];

const adminSidebar = ['/admin/', '/admin/retool', '/admin/legal-server'];

export default defineUserConfig({
title: 'Immigration Justice Project',
description:
Expand All @@ -21,5 +24,9 @@ export default defineUserConfig({
editLinkText: 'Edit this page on GitHub',
editLink: true,
navbar: globalNavbar,
sidebar: {
'/admin': adminSidebar,
},
}),
plugins: [searchPlugin()],
});
1 change: 1 addition & 0 deletions docs/admin/legal-server.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Legal Server
3 changes: 3 additions & 0 deletions docs/admin/retool.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Retool

### Retool Workflow
14 changes: 14 additions & 0 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
"@types/validator": "^13.11.7",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vuepress/bundler-vite": "^2.0.0-rc.9",
"@vuepress/plugin-search": "^2.0.0-rc.28",
"@vuepress/theme-default": "^2.0.0-rc.28",
"eslint": "^8.49.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.10.0",
Expand All @@ -53,8 +56,6 @@
"eslint-plugin-react-hooks": "^4.6.0",
"prettier": "^2.8.8",
"typescript": "^4.9.5",
"@vuepress/bundler-vite": "^2.0.0-rc.9",
"@vuepress/theme-default": "^2.0.0-rc.28",
"vuepress": "^2.0.0-rc.9"
}
}

0 comments on commit b72553e

Please sign in to comment.