index.html 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <!--
  2. ~ Copyright 2024 Apollo Authors
  3. ~
  4. ~ Licensed under the Apache License, Version 2.0 (the "License");
  5. ~ you may not use this file except in compliance with the License.
  6. ~ You may obtain a copy of the License at
  7. ~
  8. ~ http://www.apache.org/licenses/LICENSE-2.0
  9. ~
  10. ~ Unless required by applicable law or agreed to in writing, software
  11. ~ distributed under the License is distributed on an "AS IS" BASIS,
  12. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. ~ See the License for the specific language governing permissions and
  14. ~ limitations under the License.
  15. ~
  16. -->
  17. <!DOCTYPE html>
  18. <html lang="en">
  19. <head>
  20. <meta charset="UTF-8" />
  21. <title>Apollo</title>
  22. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  23. <meta name="keywords" content="apollo,configuration,server,java,microservice" />
  24. <meta name="description" content="A reliable configuration management system" />
  25. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
  26. <meta name="google-site-verification" content="CuvYz6OxISNH7wdJsnS8oNtJJn9IP6k0zz5x6m9uXco" />
  27. <!-- theme -->
  28. <link rel="stylesheet" href="css/vue.css" title="vue" />
  29. <link rel="stylesheet" href="css/dark.css" title="dark" disabled />
  30. <link rel="stylesheet" href="css/buble.css" title="buble" disabled />
  31. <link rel="stylesheet" href="css/pure.css" title="pure" disabled />
  32. <style type="text/css">
  33. .sidebar-nav >ul >li.file p >a {
  34. font-size: 15px;
  35. font-weight: 700;
  36. color: #364149;
  37. }
  38. .sidebar-nav .folder {
  39. cursor: pointer;
  40. }
  41. </style>
  42. <!-- scripts-->
  43. <script src="scripts/multiple-language-redirect.js"></script>
  44. </head>
  45. <body>
  46. <div id="app">Loading ...</div>
  47. <script>
  48. window.$docsify = {
  49. alias: {
  50. '/': 'zh/README.md',
  51. '/zh/.*/_sidebar.md': '/zh/_sidebar.md',
  52. '/en/.*/_sidebar.md': '/en/_sidebar.md',
  53. '/zh/.*/_navbar.md': '/zh/_navbar.md',
  54. '/en/.*/_navbar.md': '/en/_navbar.md',
  55. '/zh/(.*)': 'zh/$1',
  56. '/en/(.*)': 'en/$1',
  57. '.*?/governance':
  58. 'https://raw.githubusercontent.com/apolloconfig/apollo/master/GOVERNANCE.md',
  59. '.*?/contributing':
  60. 'https://raw.githubusercontent.com/apolloconfig/apollo/master/CONTRIBUTING.md',
  61. },
  62. nameLink: {
  63. '/zh/': '#/zh/',
  64. '/en/': '#/en/',
  65. '/': '#/',
  66. },
  67. auto2top: true,
  68. // Only coverpage is loaded when visiting the home page.
  69. onlyCover: true,
  70. coverpage: true,
  71. loadSidebar: true,
  72. loadNavbar: true,
  73. mergeNavbar: true,
  74. maxLevel: 6,
  75. subMaxLevel: 5,
  76. name: 'Apollo',
  77. repo: 'https://github.com/apolloconfig/apollo/',
  78. search: {
  79. noData: {
  80. '/zh/': '没有结果!',
  81. '/en/': 'No results!',
  82. '/': '没有结果!',
  83. },
  84. paths: 'auto',
  85. placeholder: {
  86. '/zh/': '搜索',
  87. '/en/': 'Search',
  88. '/': '搜索',
  89. },
  90. pathNamespaces: ['/zh', '/en']
  91. },
  92. // click to copy.
  93. copyCode: {
  94. buttonText: {
  95. '/zh/': '点击复制',
  96. '/en/': 'Copy to clipboard',
  97. '/': 'Copy to clipboard',
  98. },
  99. errorText: {
  100. '/zh/': '错误',
  101. '/en/': 'Error',
  102. '/': 'Error',
  103. },
  104. successText: {
  105. '/zh/': '复制成功',
  106. '/en': 'Copied',
  107. '/': 'Copied',
  108. },
  109. },
  110. // docsify-pagination
  111. pagination: {
  112. crossChapter: true,
  113. crossChapterText: true,
  114. },
  115. markdown: {
  116. renderer: {
  117. code: function(code, lang) {
  118. if (lang === "mermaid") {
  119. return (
  120. '<div class="mermaid">' + mermaid.render('mermaid-svg-' + num++, code) + "</div>"
  121. );
  122. }
  123. return this.origin.code.apply(this, arguments);
  124. }
  125. }
  126. },
  127. plugins: [
  128. // Edit Document Button in each page
  129. function (hook, vm) {
  130. hook.beforeEach(function (html) {
  131. if (/githubusercontent\.com/.test(vm.route.file)) {
  132. url = vm.route.file
  133. .replace('raw.githubusercontent.com', 'github.com')
  134. .replace(/\/master/, '/blob/master')
  135. } else {
  136. url = 'https://github.com/apolloconfig/apollo/blob/master/docs/' + vm.route.file
  137. }
  138. var editHtml = '[:memo: Edit Document](' + url + ')\n\n'
  139. return editHtml
  140. + html
  141. + '\n\n----\n\n'
  142. + '<a href="https://docsify.js.org" target="_blank" style="color: inherit; font-weight: normal; text-decoration: none;">Powered by docsify</a>'
  143. })
  144. },
  145. // from custom scripts
  146. generateMultipleLanguagesNavbarPluginByListItemName("Translations"),
  147. ],
  148. };
  149. </script>
  150. <!-- docsify -->
  151. <script src="//unpkg.com/docsify@4.13.1/lib/docsify.min.js"></script>
  152. <!-- docsify plugins -->
  153. <!-- support search -->
  154. <script src="//unpkg.com/docsify@4.13.1/lib/plugins/search.min.js"></script>
  155. <!-- Support docsify sidebar catalog expand and collapse -->
  156. <script src="//unpkg.com/docsify-sidebar-collapse@1.3.5/dist/docsify-sidebar-collapse.min.js"></script>
  157. <!-- Medium's image zoom -->
  158. <script src="//unpkg.com/docsify@4.13.1/lib/plugins/zoom-image.min.js"></script>
  159. <!-- Add a simple Click to copy button to all preformatted code blocks to effortlessly allow users to copy example code from your docs -->
  160. <script src="//unpkg.com/docsify-copy-code@2.1.1/dist/docsify-copy-code.min.js"></script>
  161. <!-- docsify-pagination -->
  162. <script src="//unpkg.com/docsify-pagination@2.10.1/dist/docsify-pagination.min.js"></script>
  163. <!-- code highlight -->
  164. <script src="//unpkg.com/prismjs@1.27.0/components/prism-bash.min.js"></script>
  165. <script src="//unpkg.com/prismjs@1.27.0/components/prism-csharp.min.js"></script>
  166. <script src="//unpkg.com/prismjs@1.27.0/components/prism-java.min.js"></script>
  167. <script src="//unpkg.com/prismjs@1.27.0/components/prism-json.min.js"></script>
  168. <script src="//unpkg.com/prismjs@1.27.0/components/prism-markdown.min.js"></script>
  169. <script src="//unpkg.com/prismjs@1.27.0/components/prism-nginx.min.js"></script>
  170. <script src="//unpkg.com/prismjs@1.27.0/components/prism-properties.min.js"></script>
  171. <script src="//unpkg.com/prismjs@1.27.0/components/prism-sql.min.js"></script>
  172. <script src="//unpkg.com/prismjs@1.27.0/components/prism-xml-doc.min.js"></script>
  173. <script src="//unpkg.com/prismjs@1.27.0/components/prism-yaml.min.js"></script>
  174. </body>
  175. <!-- add qa bot -->
  176. <script>
  177. (function() {
  178. var link = document.createElement('link');
  179. link.rel = 'stylesheet';
  180. link.href = 'https://ai.apolloconfig.com/qa-bot.css';
  181. document.head.appendChild(link);
  182. var script = document.createElement('script');
  183. script.src = 'https://ai.apolloconfig.com/qa-bot.js';
  184. script.onload = function () {
  185. QABot.initialize({
  186. "serverUrl": "https://ai.apolloconfig.com/qa",
  187. "documentSiteUrlPrefix": "https://www.apolloconfig.com/#"
  188. });
  189. };
  190. document.body.appendChild(script);
  191. })();
  192. </script>
  193. <!-- mermaid -->
  194. <script src="//unpkg.com/mermaid@8.14.0/dist/mermaid.min.js"></script>
  195. <script>
  196. // mermaid
  197. var num = 0;
  198. mermaid.initialize({ startOnLoad: false });
  199. </script>
  200. <script>
  201. var _hmt = _hmt || [];
  202. (function() {
  203. var hm = document.createElement("script");
  204. hm.src = "https://hm.baidu.com/hm.js?d47d58dcc5ba5c0c7dccab29717379c6";
  205. var s = document.getElementsByTagName("script")[0];
  206. s.parentNode.insertBefore(hm, s);
  207. })();
  208. </script>
  209. </html>