index.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>不可替代的团队领袖培养计划</title>
  6. <meta name="description" content="Description">
  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/lib/themes/vue.css">
  9. <link rel="stylesheet" href="//unpkg.com/mermaid/dist/mermaid.min.css">
  10. <style>.markdown-section{max-width:95% !important;}</style>
  11. </head>
  12. <body>
  13. <div id="app"></div>
  14. <script type="text/javascript">
  15. window.$docsify = {
  16. name: '《团队领袖培养计划》',
  17. repo: 'https://github.com/js-cool/leader.js.cool.git',
  18. loadSidebar: true,
  19. subMaxLevel: 2,
  20. formatUpdated: '{YYYY}-{MM}-{DD} {HH}:{mm}',
  21. executeScript: true,
  22. alias: {
  23. '/basic/_sidebar.md': '/_sidebar.md',
  24. '/basic/algorithm/_sidebar.md': '/_sidebar.md',
  25. '/basic/db/_sidebar.md': '/_sidebar.md',
  26. '/basic/framework/_sidebar.md': '/_sidebar.md',
  27. '/basic/js/_sidebar.md': '/_sidebar.md',
  28. '/basic/knowledge/_sidebar.md': '/_sidebar.md',
  29. '/basic/md/_sidebar.md': '/_sidebar.md',
  30. '/basic/node/_sidebar.md': '/_sidebar.md',
  31. '/basic/resource/_sidebar.md': '/_sidebar.md',
  32. '/experience/_sidebar.md': '/_sidebar.md',
  33. '/experience/advanced/_sidebar.md': '/_sidebar.md',
  34. '/experience/azure/_sidebar.md': '/_sidebar.md',
  35. '/experience/design/_sidebar.md': '/_sidebar.md',
  36. '/experience/operation/_sidebar.md': '/_sidebar.md',
  37. '/experience/project/_sidebar.md': '/_sidebar.md',
  38. '/experience/project/user/_sidebar.md': '/_sidebar.md',
  39. '/mind/_sidebar.md': '/_sidebar.md',
  40. '/mind/capability/_sidebar.md': '/_sidebar.md',
  41. '/mind/team/_sidebar.md': '/_sidebar.md',
  42. '/mind/thinking/_sidebar.md': '/_sidebar.md'
  43. },
  44. search:{
  45. placeholder: '搜索',
  46. noData: '未找到结果'
  47. },
  48. plugins: [
  49. function(hook, vm) {
  50. hook.ready(function () {
  51. mermaid.initialize({startOnLoad: false});
  52. var adScript = document.createElement('script');
  53. adScript.src = '//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';
  54. adScript.setAttribute('async', true);
  55. document.body.appendChild(adScript);
  56. });
  57. hook.beforeEach(function (md) {
  58. var url = 'https://github.com/js-cool/leader.js.cool/blob/master' + vm.route.file
  59. var editUrl = '[:memo: 编辑本章节](' + url + ')\n'
  60. return md
  61. + '\n----\n'
  62. + '最后更新 {docsify-updated} '
  63. + editUrl
  64. });
  65. hook.doneEach(function () {
  66. mermaid.init(undefined,'.mermaid');
  67. var main = document.getElementById('main');
  68. var paragraphs = main.getElementsByTagName('p');
  69. var ads = [];
  70. if(paragraphs.length > 15) {
  71. ads.push(paragraphs[Math.ceil(Math.random() * 15)]);
  72. }
  73. ads.push(paragraphs[paragraphs.length-1]);
  74. for(var i = 0; i < ads.length; i += 1) {
  75. ads[i].insertAdjacentHTML('afterend', '<ins class="adsbygoogle" style="display:block;margin: 1.5em auto;" data-ad-client="ca-pub-5059418763237956" data-ad-slot="9518721243" data-ad-format="auto"></ins>');
  76. (adsbygoogle = window.adsbygoogle || []).push({});
  77. }
  78. });
  79. }
  80. ],
  81. markdown: {
  82. renderer: {
  83. code: function(code, lang) {
  84. var html = '';
  85. if(code.match(/^sequenceDiagram/) || code.match(/^graph/) || code.match(/^gantt/)){
  86. html = '<div class="mermaid">' + code + '</div>';
  87. }
  88. var hl = Prism.highlight(code, Prism.languages[lang] || Prism.languages.markup)
  89. return html + '<pre v-pre data-lang="' + lang + '"><code class="lang-' + lang + '">' + hl + '</code></pre>'
  90. }
  91. }
  92. }
  93. }
  94. if (typeof navigator.serviceWorker !== 'undefined') {
  95. navigator.serviceWorker.register('sw.js')
  96. }
  97. </script>
  98. <script type="text/javascript" src="//unpkg.com/docsify/lib/docsify.min.js"></script>
  99. <script type="text/javascript" src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
  100. <script type="text/javascript" src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
  101. <script type="text/javascript" src="//unpkg.com/prismjs/components/prism-sql.min.js"></script>
  102. <script type="text/javascript" src="//unpkg.com/mermaid/dist/mermaid.min.js"></script>
  103. </body>
  104. </html>