mirror of
https://github.com/zhigang1992/react-native-notifications.git
synced 2026-06-12 17:18:11 +08:00
Fix docs, remove circleci config file
This commit is contained in:
@@ -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
|
||||
@@ -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/
|
||||
.history/
|
||||
.github/
|
||||
@@ -14,11 +14,11 @@ Start by running this:
|
||||
$ 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
|
||||
#import "RNNotifications.h"
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -197,12 +197,12 @@ class Index extends React.Component {
|
||||
<div>
|
||||
<HomeSplash siteConfig={siteConfig} language={language} />
|
||||
<div className="mainContainer">
|
||||
<Features />
|
||||
<FeatureCallout />
|
||||
<LearnHow />
|
||||
<TryOut />
|
||||
<Description />
|
||||
<Showcase />
|
||||
{/* <Features /> */}
|
||||
{/* <FeatureCallout /> */}
|
||||
{/* <LearnHow /> */}
|
||||
{/* <TryOut /> */}
|
||||
{/* <Description /> */}
|
||||
{/* <Showcase /> */}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
@@ -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"],
|
||||
|
||||
@@ -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;
|
||||
|
||||
14
website/static/index.html
Normal file
14
website/static/index.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user