|
| 1 | +import {defineConfig} from 'vitepress' |
| 2 | + |
| 3 | +// https://vitepress.dev/reference/site-config |
| 4 | +export default defineConfig({ |
| 5 | + title: "@node-oauth/oauth2-server", |
| 6 | + description: "OAuth2 server for Node.js", |
| 7 | + base: '/node-oauth2-server/', |
| 8 | + head: [['link', { rel: 'icon', href: '/images/favicon.ico' }]], |
| 9 | + themeConfig: { |
| 10 | + // https://vitepress.dev/reference/default-theme-config |
| 11 | + nav: [ |
| 12 | + {text: 'Home', link: '/'}, |
| 13 | + {text: 'Guide', link: '/guide/getting-started'}, |
| 14 | + {text: 'API', link: '/api/server'} |
| 15 | + ], |
| 16 | + |
| 17 | + sidebar: [ |
| 18 | + { |
| 19 | + text: 'Guide', |
| 20 | + items: [ |
| 21 | + {text: 'Getting started', link: '/guide/getting-started'}, |
| 22 | + {text: 'Grant types', link: '/guide/grant-types'}, |
| 23 | + {text: 'Model', link: '/guide/model'}, |
| 24 | + {text: 'Token types', link: '/guide/token-types'}, |
| 25 | + {text: 'PKCE', link: '/guide/pkce'}, |
| 26 | + {text: 'Adapters', link: '/guide/adapters'}, |
| 27 | + {text: 'Migrating to v5', link: '/guide/migrating-to-v5'}, |
| 28 | + {text: 'Contributing', link: '/guide/contributing'}, |
| 29 | + ] |
| 30 | + }, |
| 31 | + { |
| 32 | + text: 'API', |
| 33 | + items: [ |
| 34 | + {text: 'OAuth2Server', link: '/api/server'}, |
| 35 | + {text: 'Model', link: '/api/model'}, |
| 36 | + {text: 'Request', link: '/api/request'}, |
| 37 | + {text: 'Response', link: '/api/response'}, |
| 38 | + { |
| 39 | + text: 'Errors', items: [ |
| 40 | + {text: 'Access Denied', link: '/api/errors/access-denied-error'}, |
| 41 | + {text: 'Insufficient Scope', link: '/api/errors/insufficient-scope-error'}, |
| 42 | + {text: 'Invalid Argument', link: '/api/errors/invalid-argument-error'}, |
| 43 | + {text: 'Invalid Client', link: '/api/errors/invalid-client-error'}, |
| 44 | + {text: 'Invalid Grant', link: '/api/errors/invalid-grant-error'}, |
| 45 | + {text: 'Invalid Request', link: '/api/errors/invalid-request-error'}, |
| 46 | + {text: 'Invalid Scope', link: '/api/errors/invalid-scope-error'}, |
| 47 | + {text: 'Invalid Token', link: '/api/errors/invalid-token-error'}, |
| 48 | + {text: 'OAuth Error', link: '/api/errors/oauth-error'}, |
| 49 | + {text: 'Server Error', link: '/api/errors/server-error'}, |
| 50 | + {text: 'Unauthorized Client', link: '/api/errors/unauthorized-client-error'}, |
| 51 | + {text: 'Unauthorized Request', link: '/api/errors/unauthorized-request-error'}, |
| 52 | + {text: 'Unsupported Grant Type', link: '/api/errors/unsupported-grant-type-error'}, |
| 53 | + {text: 'Unsupported Response Type', link: '/api/errors/unsupported-response-type-error'}, |
| 54 | + ] |
| 55 | + }, |
| 56 | + { |
| 57 | + text: 'Grant Types', items: [ |
| 58 | + { text: 'Abstract Grant Type', link: '/api/grant-types/abstract-grant-type' }, |
| 59 | + { text: 'Authorization Code', link: '/api/grant-types/authorization-code-grant-type' }, |
| 60 | + { text: 'Client Credentials', link: '/api/grant-types/client-credentials-grant-type' }, |
| 61 | + { text: 'Password', link: '/api/grant-types/password-grant-type' }, |
| 62 | + { text: 'Refresh Token', link: '/api/grant-types/refresh-token-grant-type' }, |
| 63 | + ] |
| 64 | + }, |
| 65 | + { |
| 66 | + text: 'Handlers', items: [ |
| 67 | + { text: 'Authenticate Handler', link: '/api/handlers/authenticate-handler' }, |
| 68 | + { text: 'Authorize Handler', link: '/api/handlers/authorize-handler' }, |
| 69 | + { text: 'Token Handler', link: '/api/handlers/token-handler' }, |
| 70 | + ] |
| 71 | + }, |
| 72 | + { |
| 73 | + text: 'Models', items: [ |
| 74 | + { text: 'Token Model', link: '/api/models/token-model' }, |
| 75 | + ] |
| 76 | + }, |
| 77 | + { |
| 78 | + text: 'PKCE', items: [ |
| 79 | + { text: 'PKCE', link: '/api/pkce/pkce' }, |
| 80 | + ] |
| 81 | + }, |
| 82 | + { |
| 83 | + text: 'Response Types', items: [ |
| 84 | + { text: 'Code', link: '/api/response-types/code-response-type' }, |
| 85 | + { text: 'Token', link: '/api/response-types/token-response-type' }, |
| 86 | + ] |
| 87 | + }, |
| 88 | + { |
| 89 | + text: 'Token Types', items: [ |
| 90 | + { text: 'Bearer', link: '/api/token-types/bearer-token-type' }, |
| 91 | + { text: 'Mac', link: '/api/token-types/mac-token-type' }, |
| 92 | + ] |
| 93 | + }, |
| 94 | + { |
| 95 | + text: 'Utils', items: [ |
| 96 | + { text: 'Crypto', link: '/api/utils/crypto-util' }, |
| 97 | + { text: 'Date', link: '/api/utils/date-util' }, |
| 98 | + { text: 'Scope', link: '/api/utils/scope-util' }, |
| 99 | + { text: 'String', link: '/api/utils/string-util' }, |
| 100 | + { text: 'Token', link: '/api/utils/token-util' }, |
| 101 | + ] |
| 102 | + }, |
| 103 | + ] |
| 104 | + } |
| 105 | + ], |
| 106 | + |
| 107 | + socialLinks: [ |
| 108 | + {icon: 'github', link: 'https://github.com/node-oauth/node-oauth2-server'} |
| 109 | + ] |
| 110 | + } |
| 111 | +}) |
0 commit comments