Skip to content

Commit 5bd319d

Browse files
committed
fix: vitepress build
1 parent 33b1052 commit 5bd319d

File tree

2 files changed

+91
-1
lines changed

2 files changed

+91
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ types/
3535

3636
package-lock.json
3737

38-
*.vitepress
38+
docs/.vitepress/cache
39+
docs/.vitepress/dist

docs/.vitepress/config.mjs

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
import { defineConfig } from 'vitepress'
2+
3+
export default defineConfig({
4+
title: 'samlify',
5+
description: 'Nodejs library for Single Sign On with SAML 2.0',
6+
base: '/',
7+
ignoreDeadLinks: 'localhostLinks',
8+
9+
head: [
10+
['link', { rel: 'icon', href: '/_media/favicon.ico' }]
11+
],
12+
13+
themeConfig: {
14+
logo: '/_media/padlock.png',
15+
16+
nav: [
17+
{ text: 'Home', link: '/' },
18+
{ text: 'Get Started', link: '/prerequistite' },
19+
{ text: 'GitHub', link: 'https://github.com/tngan/samlify' }
20+
],
21+
22+
sidebar: [
23+
{
24+
text: 'Get Started',
25+
items: [
26+
{ text: 'Prerequisite', link: '/prerequistite' }
27+
]
28+
},
29+
{
30+
text: 'Basic',
31+
items: [
32+
{ text: 'Introduction', link: '/basic' },
33+
{ text: 'Identity Provider', link: '/idp' },
34+
{ text: 'Service Provider', link: '/sp' },
35+
{
36+
text: 'SAML Request',
37+
items: [
38+
{ text: 'SAML Request', link: '/saml-request' },
39+
{ text: 'Signed', link: '/signed-saml-request' }
40+
]
41+
},
42+
{
43+
text: 'SAML Response',
44+
items: [
45+
{ text: 'SAML Response', link: '/saml-response' },
46+
{ text: 'Signed', link: '/signed-saml-response' },
47+
{ text: 'Encrypted', link: '/encrypted-saml-response' }
48+
]
49+
},
50+
{ text: 'Key Generation', link: '/key-generation' }
51+
]
52+
},
53+
{
54+
text: 'Advanced',
55+
items: [
56+
{ text: 'Introduction', link: '/advance' },
57+
{ text: 'Metadata Distribution', link: '/metadata-distribution' },
58+
{
59+
text: 'IDP/SP Configuration',
60+
items: [
61+
{ text: 'Configuration', link: '/configuration' },
62+
{ text: 'Identity Provider', link: '/idp-configuration' },
63+
{ text: 'Service Provider', link: '/sp-configuration' }
64+
]
65+
},
66+
{ text: 'Attributes & Template', link: '/template' },
67+
{ text: 'Multiple Entities', link: '/multi-entities' }
68+
]
69+
},
70+
{
71+
text: 'Examples',
72+
items: [
73+
{ text: 'Gitlab', link: '/gitlab' },
74+
{ text: 'OneLogin', link: '/onelogin' },
75+
{ text: 'Okta', link: '/okta' },
76+
{ text: 'Inbound SAML', link: '/okta-inbound' }
77+
]
78+
}
79+
],
80+
81+
socialLinks: [
82+
{ icon: 'github', link: 'https://github.com/tngan/samlify' }
83+
],
84+
85+
search: {
86+
provider: 'local'
87+
}
88+
}
89+
})

0 commit comments

Comments
 (0)