From 9e86bf6d21eae0010d948049697993b0ec390adf Mon Sep 17 00:00:00 2001 From: yogevbd Date: Thu, 12 Sep 2019 11:41:08 +0300 Subject: [PATCH] Fix docs, remove circleci config file --- .circleci/config.yml | 40 ------------------------ .npmignore | 6 +++- docs/installation-ios.md | 6 ++-- website/i18n/en.json | 7 +---- website/pages/en/{index.js => index_.js} | 12 +++---- website/sidebars.json | 5 +-- website/siteConfig.js | 26 +++++++-------- website/static/index.html | 14 +++++++++ 8 files changed, 43 insertions(+), 73 deletions(-) delete mode 100644 .circleci/config.yml rename website/pages/en/{index.js => index_.js} (96%) create mode 100644 website/static/index.html diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index bf8553b..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,40 +0,0 @@ - -version: 2 -jobs: - ios: - macos: - xcode: "10.2.1" - steps: - - checkout - - run: - name: Install Dependencies - command: scripts/install.ios.sh - - run: - name: npm install - command: npm install - - run: - name: iOS unit tests - command: 'npm run test-unit-ios' - - run: - name: Detox iOS e2e tests - command: 'npm run test-e2e-ios-release' - android: - macos: - xcode: "10.2.1" - steps: - - checkout - - run: - name: Install Android - command: scripts/install.android.sh - - run: - name: npm install - command: npm install - - run: - name: Android unit tests - command: 'npm run test-unit-android' -workflows: - version: 2 - test: - jobs: - - ios - - android \ No newline at end of file diff --git a/.npmignore b/.npmignore index 3edb07a..fbef638 100644 --- a/.npmignore +++ b/.npmignore @@ -2,6 +2,9 @@ example/ test/ RNNotifications/DerivedData node_modules/ +website/ +docs/ +docs_old/ .eslintrc *.yml @@ -10,4 +13,5 @@ coverage/ android/.idea android/build/ .idea -.history/ \ No newline at end of file +.history/ +.github/ \ No newline at end of file diff --git a/docs/installation-ios.md b/docs/installation-ios.md index 388be1d..0e43f5e 100755 --- a/docs/installation-ios.md +++ b/docs/installation-ios.md @@ -14,11 +14,11 @@ Start by running this: $ npm install react-native-notifications --save ``` -## iOS -First, [Manually link](https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking) the library to your Xcode project. +Then, [Manually link](https://facebook.github.io/react-native/docs/linking-libraries-ios.html#manual-linking) the library to your Xcode project. -Then, to enable notifications support add the following line at the top of your `AppDelegate.m` + +To enable notifications support add the following line at the top of your `AppDelegate.m` ```objective-c #import "RNNotifications.h" diff --git a/website/i18n/en.json b/website/i18n/en.json index 88c699f..5ff47e5 100644 --- a/website/i18n/en.json +++ b/website/i18n/en.json @@ -48,15 +48,10 @@ }, "links": { "Docs": "Docs", - "API": "API", - "Help": "Help", - "Blog": "Blog" + "API": "API" }, "categories": { "Installation": "Installation", - "Subscription": "Subscription", - "Notification Events": "Notification Events", - "Advanced API - iOS": "Advanced API - iOS", "Commands": "Commands", "Events": "Events" } diff --git a/website/pages/en/index.js b/website/pages/en/index_.js similarity index 96% rename from website/pages/en/index.js rename to website/pages/en/index_.js index 77d657a..566c44f 100755 --- a/website/pages/en/index.js +++ b/website/pages/en/index_.js @@ -197,12 +197,12 @@ class Index extends React.Component {
- - - - - - + {/* */} + {/* */} + {/* */} + {/* */} + {/* */} + {/* */}
); diff --git a/website/sidebars.json b/website/sidebars.json index 67e50c7..a12d5d4 100755 --- a/website/sidebars.json +++ b/website/sidebars.json @@ -1,9 +1,6 @@ { "docs": { - "Installation": ["installation-ios", "installation-android"], - "Subscription": ["doc2"], - "Notification Events": ["doc3"], - "Advanced API - iOS": ["doc3"] + "Installation": ["installation-ios", "installation-android"] }, "api": { "Commands": ["general-api", "ios-api", "android-api"], diff --git a/website/siteConfig.js b/website/siteConfig.js index dc7e98e..9110543 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -10,20 +10,20 @@ // List of projects/orgs using your project for the users page. const users = [ - { - caption: 'User1', - // You will need to prepend the image path with your baseUrl - // if it is not '/', like: '/test-site/img/image.jpg'. - image: '/img/undraw_open_source.svg', - infoLink: 'https://www.facebook.com', - pinned: true, - }, + // { + // caption: 'User1', + // // You will need to prepend the image path with your baseUrl + // // if it is not '/', like: '/test-site/img/image.jpg'. + // image: '/img/undraw_open_source.svg', + // infoLink: 'https://www.facebook.com', + // pinned: true, + // }, ]; const siteConfig = { title: 'React native notifications', // Title for your website. tagline: 'Documentation', - url: 'https://wix.github.io.com', // Your website URL + url: 'https://wix.github.io', // Your website URL baseUrl: '/react-native-notifications/', // Base URL for your project */ // For github.io type URLs, you would set the url and baseUrl like: // url: 'https://facebook.github.io', @@ -31,7 +31,7 @@ const siteConfig = { // Used for publishing and more projectName: 'react-native-notifications', - organizationName: 'wix', + organizationName: 'Wix', // For top-level user or org sites, the organization is still the same. // e.g., for the https://JoelMarcey.github.io site, it would be set like... // organizationName: 'JoelMarcey' @@ -40,8 +40,8 @@ const siteConfig = { headerLinks: [ {doc: 'installation-ios', label: 'Docs'}, {doc: 'general-api', label: 'API'}, - {page: 'help', label: 'Help'}, - {blog: true, label: 'Blog'}, + // {page: 'help', label: 'Help'}, + // {blog: true, label: 'Blog'}, ], // If you have users set above, you add it here: @@ -104,7 +104,7 @@ const siteConfig = { // You may provide arbitrary config keys to be used as needed by your // template. For example, if you need your repo's URL... - // repoUrl: 'https://github.com/facebook/test-site', + repoUrl: 'https://github.com/wix/react-native-notifications', }; module.exports = siteConfig; diff --git a/website/static/index.html b/website/static/index.html new file mode 100644 index 0000000..c1fa2a5 --- /dev/null +++ b/website/static/index.html @@ -0,0 +1,14 @@ + + + + + + + Your Site Title Here + + + If you are not redirected automatically, follow this link. + + \ No newline at end of file -- 2.26.2