Browse Source

Add v2 docs path (#1153)

* Update app title (android)

* Add v2 docs placeholder path
Elliot Hesp 7 years ago
parent
commit
f3b0db2f64
3 changed files with 91 additions and 36 deletions
  1. 38
    35
      docs/index.html
  2. 52
    0
      docs/v2/index.html
  3. 1
    1
      example/android/app/src/main/res/values/strings.xml

+ 38
- 35
docs/index.html View File

@@ -1,46 +1,49 @@
1 1
 <!DOCTYPE html>
2 2
 <html lang="en">
3 3
 <head>
4
-  <meta charset="UTF-8">
5
-  <title>React Native Navigation - truly native navigation for iOS and Android</title>
6
-  <meta name="description" content="React Native Navigation - truly native navigation for iOS and Android">
7
-  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
8
-  <link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css">
9
-  <link rel="shortcut icon" href="_images/favicon.ico" type="image/x-icon">
10
-  <link rel="icon" href="_images/favicon.ico" type="image/x-icon">
4
+    <meta charset="UTF-8">
5
+    <title>React Native Navigation - truly native navigation for iOS and Android</title>
6
+    <meta name="description" content="React Native Navigation - truly native navigation for iOS and Android">
7
+    <meta name="viewport"
8
+          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
9
+    <link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css">
10
+    <link rel="shortcut icon" href="_images/favicon.ico" type="image/x-icon">
11
+    <link rel="icon" href="_images/favicon.ico" type="image/x-icon">
11 12
 </head>
12 13
 <body>
13
-  <div id="app">
14
-    <img src="https://raw.githubusercontent.com/wix/react-native-navigation/master/logo.png" alt="react-native-navigation logo">
15
-  </div>
14
+<div id="app">
15
+    <img src="https://raw.githubusercontent.com/wix/react-native-navigation/master/logo.png"
16
+         alt="react-native-navigation logo">
17
+</div>
16 18
 </body>
17 19
 <script>
18
-  window.$docsify = {
19
-    repo: '',
20
-    name: 'React Native Navigation',
21
-    search: 'auto',
22
-    themeColor: '#21B8F0',
23
-    loadSidebar: true,
24
-    loadNavbar: true,
25
-    maxLevel: 4,
26
-    subMaxLevel: 2,
27
-    auto2top: true,
28
-    ga: 'UA-XXXXX-Y',
29
-    plugins: [
30
-      function (hook) {
31
-        var footer = [
32
-          '<hr/>',
33
-          '<footer class="Test">',
34
-          `<span>Caught a mistake or want to contribute to the documentation? <a href="https://github.com/wix/react-native-navigation/tree/master/docs" target="_blank">Edit documentation on Github!</a>.</span>`,
35
-          '</footer>'
36
-        ].join('')
20
+    window.$docsify = {
21
+        repo: '',
22
+        basePath: 'https://raw.githubusercontent.com/wix/react-native-navigation/master/docs/',
23
+        name: 'React Native Navigation',
24
+        search: 'auto',
25
+        themeColor: '#21B8F0',
26
+        loadSidebar: true,
27
+        loadNavbar: true,
28
+        maxLevel: 4,
29
+        subMaxLevel: 2,
30
+        auto2top: true,
31
+        ga: 'UA-XXXXX-Y',
32
+        plugins: [
33
+            function (hook) {
34
+                var footer = [
35
+                    '<hr/>',
36
+                    '<footer class="Test">',
37
+                    `<span>Caught a mistake or want to contribute to the documentation? <a href="https://github.com/wix/react-native-navigation/tree/master/docs" target="_blank">Edit documentation on Github!</a>.</span>`,
38
+                    '</footer>'
39
+                ].join('');
37 40
 
38
-        hook.afterEach(function (html) {
39
-          return html + footer
40
-        })
41
-      }
42
-    ]
43
-  }
41
+                hook.afterEach(function (html) {
42
+                    return html + footer;
43
+                });
44
+            }
45
+        ]
46
+    };
44 47
 </script>
45 48
 <script src="//unpkg.com/docsify/lib/docsify.js"></script>
46 49
 <script src="//unpkg.com/docsify/lib/plugins/search.js"></script>

+ 52
- 0
docs/v2/index.html View File

@@ -0,0 +1,52 @@
1
+<!DOCTYPE html>
2
+<html lang="en">
3
+<head>
4
+    <meta charset="UTF-8">
5
+    <title>React Native Navigation v2 - truly native navigation for iOS and Android</title>
6
+    <meta name="description" content="React Native Navigation v2 - truly native navigation for iOS and Android">
7
+    <meta name="viewport"
8
+          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
9
+    <link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css">
10
+    <link rel="shortcut icon" href=../_images/favicon.ico" type="image/x-icon">
11
+    <link rel="icon" href="../_images/favicon.ico" type="image/x-icon">
12
+</head>
13
+<body>
14
+<div id="app">
15
+    <img src="https://raw.githubusercontent.com/wix/react-native-navigation/master/logo.png"
16
+         alt="react-native-navigation logo">
17
+</div>
18
+</body>
19
+<script>
20
+    window.$docsify = {
21
+        repo: '',
22
+        basePath: 'https://raw.githubusercontent.com/react-native-navigation/tree/v2/docs/',
23
+        name: 'React Native Navigation',
24
+        search: 'auto',
25
+        themeColor: '#21B8F0',
26
+        loadSidebar: true,
27
+        loadNavbar: true,
28
+        maxLevel: 4,
29
+        subMaxLevel: 2,
30
+        auto2top: true,
31
+        ga: 'UA-XXXXX-Y',
32
+        plugins: [
33
+            function (hook) {
34
+                var footer = [
35
+                    '<hr/>',
36
+                    '<footer class="Test">',
37
+                    `<span>Caught a mistake or want to contribute to the documentation? <a href="https://github.com/wix/react-native-navigation/tree/v2/docs" target="_blank">Edit documentation on Github!</a>.</span>`,
38
+                    '</footer>'
39
+                ].join('');
40
+
41
+                hook.afterEach(function (html) {
42
+                    return html + footer;
43
+                });
44
+            }
45
+        ]
46
+    };
47
+</script>
48
+<script src="//unpkg.com/docsify/lib/docsify.js"></script>
49
+<script src="//unpkg.com/docsify/lib/plugins/search.js"></script>
50
+<script src="//unpkg.com/docsify/lib/plugins/emoji.js"></script>
51
+<script src="//unpkg.com/docsify/lib/plugins/ga.js"></script>
52
+</html>

+ 1
- 1
example/android/app/src/main/res/values/strings.xml View File

@@ -1,3 +1,3 @@
1 1
 <resources>
2
-    <string name="app_name">example</string>
2
+    <string name="app_name">React Native Navigation</string>
3 3
 </resources>