Skip to content

Commit 1c33aca

Browse files
committed
updating website to v2
1 parent a1a41ca commit 1c33aca

33 files changed

Lines changed: 5055 additions & 2195 deletions

.npmignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
example/
2-
website/
3-
docs/
2+
website/

website/.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

website/core/Footer.js

Lines changed: 0 additions & 33 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

website/docusaurus.config.js

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
module.exports = {
2+
title: 'React-Native-Sensitive-Info',
3+
tagline: 'A secure storage for React-Native apps',
4+
url: 'https://mcodex.github.io', // Your website URL
5+
baseUrl: '/react-native-sensitive-info/', // Base URL for your project */
6+
favicon: 'img/favicon.ico',
7+
organizationName: 'mcodex', // Usually your GitHub org/user name.
8+
projectName: 'react-native-sensitive-info', // Usually your repo name.
9+
themeConfig: {
10+
googleAnalytics: {
11+
trackingID: 'UA-79205996-6',
12+
},
13+
navbar: {
14+
title: 'RNSInfo',
15+
logo: {
16+
alt: 'react-native-sensitive-info',
17+
src: 'img/logo.png',
18+
},
19+
links: [
20+
{
21+
to: 'docs/',
22+
activeBasePath: 'docs',
23+
label: 'Docs',
24+
position: 'left',
25+
},
26+
{
27+
href: 'https://github.com/mcodex/react-native-sensitive-info',
28+
label: 'GitHub',
29+
position: 'right',
30+
},
31+
],
32+
},
33+
footer: {
34+
style: 'dark',
35+
// links: [
36+
// {
37+
// title: 'Docs',
38+
// items: [
39+
// {
40+
// label: 'Style Guide',
41+
// to: 'docs/',
42+
// },
43+
// {
44+
// label: 'Second Doc',
45+
// to: 'docs/doc2/',
46+
// },
47+
// ],
48+
// },
49+
// {
50+
// title: 'Community',
51+
// items: [
52+
// {
53+
// label: 'Stack Overflow',
54+
// href: 'https://stackoverflow.com/questions/tagged/docusaurus',
55+
// },
56+
// {
57+
// label: 'Discord',
58+
// href: 'https://discordapp.com/invite/docusaurus',
59+
// },
60+
// {
61+
// label: 'Twitter',
62+
// href: 'https://twitter.com/docusaurus',
63+
// },
64+
// ],
65+
// },
66+
// {
67+
// title: 'More',
68+
// items: [
69+
// {
70+
// label: 'Blog',
71+
// to: 'blog',
72+
// },
73+
// {
74+
// label: 'GitHub',
75+
// href: 'https://github.com/facebook/docusaurus',
76+
// },
77+
// ],
78+
// },
79+
// ],
80+
copyright: `Copyright © ${new Date().getFullYear()} Made with ❤️ by mCodex and the Awesome Community`,
81+
},
82+
},
83+
presets: [
84+
[
85+
'@docusaurus/preset-classic',
86+
{
87+
docs: {
88+
// It is recommended to set document id as docs home page (`docs/` path).
89+
homePageId: 'overview',
90+
sidebarPath: require.resolve('./sidebars.js'),
91+
// Please change this to your repo.
92+
editUrl:
93+
'https://github.com/mCodex/react-native-sensitive-info/tree/master/website',
94+
},
95+
theme: {
96+
customCss: require.resolve('./src/css/custom.css'),
97+
},
98+
},
99+
],
100+
],
101+
};

0 commit comments

Comments
 (0)