Browse Source

Documentation website maintenance (#4486)

* Use correct path for WorkingLocally

* Plugin init is now deprecated

* docsify-copy-code stylesheet is deprecated

* Use HTTPS, set Docsify version to 4.7.1 and copy-code to version 2

Couple of Docsify Github issues point that there are some rendering problems with 4.8.3 so let's anchor Docsify at 4.7.1 for now
Alberto Blanco 6 years ago
parent
commit
675c8049a2
2 changed files with 11 additions and 15 deletions
  1. 1
    1
      docs/README.md
  2. 10
    14
      docs/index.html

+ 1
- 1
docs/README.md View File

9
 - [Documentation](https://wix.github.io/react-native-navigation/)
9
 - [Documentation](https://wix.github.io/react-native-navigation/)
10
 - [Stack Overflow](http://stackoverflow.com/questions/tagged/react-native-navigation)
10
 - [Stack Overflow](http://stackoverflow.com/questions/tagged/react-native-navigation)
11
 - [Chat with us](https://discord.gg/DhkZjq2)
11
 - [Chat with us](https://discord.gg/DhkZjq2)
12
-- [Contributing](/docs/docs/WorkingLocally.md)
12
+- [Contributing](/docs/WorkingLocally.md)
13
 
13
 

+ 10
- 14
docs/index.html View File

9
   <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
9
   <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
10
   <link rel="shortcut icon" href="_images/favicon.ico" type="image/x-icon">
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
   <link rel="icon" href="_images/favicon.ico" type="image/x-icon">
12
-  <link rel="stylesheet" href="//unpkg.com/docsify/themes/vue.css">
13
-  <link rel="stylesheet" href="//unpkg.com/docsify-copy-code/styles.css">
12
+  <link rel="stylesheet" href="https://unpkg.com/docsify@4.7.1/themes/vue.css">
14
 
13
 
15
   <style>
14
   <style>
16
     /* diff syntax highlighting */
15
     /* diff syntax highlighting */
30
 
29
 
31
 <body>
30
 <body>
32
   <div id="app">Please wait...</div>
31
   <div id="app">Please wait...</div>
33
-  <script src="//unpkg.com/docsify-copy-code"></script>
32
+  <script src="https://unpkg.com/docsify-copy-code@2"></script>
34
   <script>
33
   <script>
35
     window.$docsify = {
34
     window.$docsify = {
36
       name: 'React Native Navigation',
35
       name: 'React Native Navigation',
44
       },
43
       },
45
       subMaxLevel: 2,
44
       subMaxLevel: 2,
46
       auto2top: true,
45
       auto2top: true,
47
-      plugins: [
48
-        window.DocsifyCopyCodePlugin.init()
49
-      ]
50
     }
46
     }
51
   </script>
47
   </script>
52
-  <script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
53
-  <script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
54
-  <script src="//unpkg.com/prismjs/components/prism-typescript.min.js"></script>
55
-  <script src="//unpkg.com/prismjs/components/prism-jsx.min.js"></script>
56
-  <script src="//unpkg.com/prismjs/components/prism-java.min.js"></script>
57
-  <script src="//unpkg.com/prismjs/components/prism-c.min.js"></script>
58
-  <script src="//unpkg.com/prismjs/components/prism-objectivec.min.js"></script>
59
-  <script src="//unpkg.com/prismjs/components/prism-diff.min.js"></script>
48
+  <script src="https://unpkg.com/docsify@4.7.1/lib/docsify.min.js"></script>
49
+  <script src="https://unpkg.com/docsify@4.7.1/lib/plugins/search.min.js"></script>
50
+  <script src="https://unpkg.com/prismjs/components/prism-typescript.min.js"></script>
51
+  <script src="https://unpkg.com/prismjs/components/prism-jsx.min.js"></script>
52
+  <script src="https://unpkg.com/prismjs/components/prism-java.min.js"></script>
53
+  <script src="https://unpkg.com/prismjs/components/prism-c.min.js"></script>
54
+  <script src="https://unpkg.com/prismjs/components/prism-objectivec.min.js"></script>
55
+  <script src="https://unpkg.com/prismjs/components/prism-diff.min.js"></script>
60
 
56
 
61
   <!-- this allows us to re-run docs even when offline -->
57
   <!-- this allows us to re-run docs even when offline -->
62
   <script>
58
   <script>