Pārlūkot izejas kodu

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 gadus atpakaļ
vecāks
revīzija
675c8049a2
2 mainītis faili ar 11 papildinājumiem un 15 dzēšanām
  1. 1
    1
      docs/README.md
  2. 10
    14
      docs/index.html

+ 1
- 1
docs/README.md Parādīt failu

@@ -9,5 +9,5 @@ React Native Navigation provides 100% native platform navigation on both iOS and
9 9
 - [Documentation](https://wix.github.io/react-native-navigation/)
10 10
 - [Stack Overflow](http://stackoverflow.com/questions/tagged/react-native-navigation)
11 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 Parādīt failu

@@ -9,8 +9,7 @@
9 9
   <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
10 10
   <link rel="shortcut icon" href="_images/favicon.ico" type="image/x-icon">
11 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 14
   <style>
16 15
     /* diff syntax highlighting */
@@ -30,7 +29,7 @@
30 29
 
31 30
 <body>
32 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 33
   <script>
35 34
     window.$docsify = {
36 35
       name: 'React Native Navigation',
@@ -44,19 +43,16 @@
44 43
       },
45 44
       subMaxLevel: 2,
46 45
       auto2top: true,
47
-      plugins: [
48
-        window.DocsifyCopyCodePlugin.init()
49
-      ]
50 46
     }
51 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 57
   <!-- this allows us to re-run docs even when offline -->
62 58
   <script>