Commit 9e86bf6d authored by yogevbd's avatar yogevbd

Fix docs, remove circleci config file

parent 97803877
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
...@@ -2,6 +2,9 @@ example/ ...@@ -2,6 +2,9 @@ example/
test/ test/
RNNotifications/DerivedData RNNotifications/DerivedData
node_modules/ node_modules/
website/
docs/
docs_old/
.eslintrc .eslintrc
*.yml *.yml
...@@ -10,4 +13,5 @@ coverage/ ...@@ -10,4 +13,5 @@ coverage/
android/.idea android/.idea
android/build/ android/build/
.idea .idea
.history/ .history/
\ No newline at end of file .github/
\ No newline at end of file
...@@ -14,11 +14,11 @@ Start by running this: ...@@ -14,11 +14,11 @@ Start by running this:
$ npm install react-native-notifications --save $ npm install react-native-notifications --save
``` ```
## <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Apple_logo_black.svg/2000px-Apple_logo_black.svg.png" width=30/> 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 ```objective-c
#import "RNNotifications.h" #import "RNNotifications.h"
......
...@@ -48,15 +48,10 @@ ...@@ -48,15 +48,10 @@
}, },
"links": { "links": {
"Docs": "Docs", "Docs": "Docs",
"API": "API", "API": "API"
"Help": "Help",
"Blog": "Blog"
}, },
"categories": { "categories": {
"Installation": "Installation", "Installation": "Installation",
"Subscription": "Subscription",
"Notification Events": "Notification Events",
"Advanced API - iOS": "Advanced API - iOS",
"Commands": "Commands", "Commands": "Commands",
"Events": "Events" "Events": "Events"
} }
......
...@@ -197,12 +197,12 @@ class Index extends React.Component { ...@@ -197,12 +197,12 @@ class Index extends React.Component {
<div> <div>
<HomeSplash siteConfig={siteConfig} language={language} /> <HomeSplash siteConfig={siteConfig} language={language} />
<div className="mainContainer"> <div className="mainContainer">
<Features /> {/* <Features /> */}
<FeatureCallout /> {/* <FeatureCallout /> */}
<LearnHow /> {/* <LearnHow /> */}
<TryOut /> {/* <TryOut /> */}
<Description /> {/* <Description /> */}
<Showcase /> {/* <Showcase /> */}
</div> </div>
</div> </div>
); );
......
{ {
"docs": { "docs": {
"Installation": ["installation-ios", "installation-android"], "Installation": ["installation-ios", "installation-android"]
"Subscription": ["doc2"],
"Notification Events": ["doc3"],
"Advanced API - iOS": ["doc3"]
}, },
"api": { "api": {
"Commands": ["general-api", "ios-api", "android-api"], "Commands": ["general-api", "ios-api", "android-api"],
......
...@@ -10,20 +10,20 @@ ...@@ -10,20 +10,20 @@
// List of projects/orgs using your project for the users page. // List of projects/orgs using your project for the users page.
const users = [ const users = [
{ // {
caption: 'User1', // caption: 'User1',
// You will need to prepend the image path with your baseUrl // // You will need to prepend the image path with your baseUrl
// if it is not '/', like: '/test-site/img/image.jpg'. // // if it is not '/', like: '/test-site/img/image.jpg'.
image: '/img/undraw_open_source.svg', // image: '/img/undraw_open_source.svg',
infoLink: 'https://www.facebook.com', // infoLink: 'https://www.facebook.com',
pinned: true, // pinned: true,
}, // },
]; ];
const siteConfig = { const siteConfig = {
title: 'React native notifications', // Title for your website. title: 'React native notifications', // Title for your website.
tagline: 'Documentation', 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 */ baseUrl: '/react-native-notifications/', // Base URL for your project */
// For github.io type URLs, you would set the url and baseUrl like: // For github.io type URLs, you would set the url and baseUrl like:
// url: 'https://facebook.github.io', // url: 'https://facebook.github.io',
...@@ -31,7 +31,7 @@ const siteConfig = { ...@@ -31,7 +31,7 @@ const siteConfig = {
// Used for publishing and more // Used for publishing and more
projectName: 'react-native-notifications', projectName: 'react-native-notifications',
organizationName: 'wix', organizationName: 'Wix',
// For top-level user or org sites, the organization is still the same. // 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... // e.g., for the https://JoelMarcey.github.io site, it would be set like...
// organizationName: 'JoelMarcey' // organizationName: 'JoelMarcey'
...@@ -40,8 +40,8 @@ const siteConfig = { ...@@ -40,8 +40,8 @@ const siteConfig = {
headerLinks: [ headerLinks: [
{doc: 'installation-ios', label: 'Docs'}, {doc: 'installation-ios', label: 'Docs'},
{doc: 'general-api', label: 'API'}, {doc: 'general-api', label: 'API'},
{page: 'help', label: 'Help'}, // {page: 'help', label: 'Help'},
{blog: true, label: 'Blog'}, // {blog: true, label: 'Blog'},
], ],
// If you have users set above, you add it here: // If you have users set above, you add it here:
...@@ -104,7 +104,7 @@ const siteConfig = { ...@@ -104,7 +104,7 @@ const siteConfig = {
// You may provide arbitrary config keys to be used as needed by your // You may provide arbitrary config keys to be used as needed by your
// template. For example, if you need your repo's URL... // 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; module.exports = siteConfig;
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=docs/installation-ios">
<script type="text/javascript">
window.location.href = 'docs/installation-ios';
</script>
<title>Your Site Title Here</title>
</head>
<body>
If you are not redirected automatically, follow this <a href="docs/installation-ios">link</a>.
</body>
</html>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment