|
48 | 48 | </ul> |
49 | 49 | </nav> |
50 | 50 | <div id="app">本系列知识由 Doocs 技术社区总结发布</div> |
51 | | - <script> |
52 | | - window.$docsify = { |
53 | | - name: 'advanced-java', |
54 | | - repo: 'doocs/advanced-java', |
55 | | - lastModifiedText: '最近更新时间:', |
56 | | - maxLevel: 3, |
57 | | - auto2top: true, |
58 | | - coverpage: true, |
59 | | - coverpage: 'docs/extra-page/cover.md', |
60 | | - loadSidebar: 'summary.md', |
61 | | - alias: { |
62 | | - '/.*/.*/summary': 'summary.md', |
63 | | - '/.*/summary.md': 'summary.md', |
64 | | - }, |
65 | | - pagination: { |
66 | | - previousText: '上一篇', |
67 | | - nextText: '下一篇', |
68 | | - crossChapter: true, |
69 | | - crossChapterText: true, |
70 | | - }, |
71 | | - contributors: { |
72 | | - repo: 'doocs/advanced-java', |
73 | | - ignores: ['/README.md'], |
74 | | - image: { |
75 | | - margin: '0.2em', |
76 | | - isRound: true, |
77 | | - }, |
78 | | - }, |
79 | | - search: { |
80 | | - maxAge: 1800000, |
81 | | - paths: [ |
82 | | - '/docs/high-concurrency/', |
83 | | - '/docs/distributed-system/', |
84 | | - '/docs/high-availability/', |
85 | | - '/docs/micro-services/', |
86 | | - '/docs/big-data/', |
87 | | - ], |
88 | | - depth: 3, |
89 | | - }, |
90 | | - darklightTheme: { |
91 | | - defaultTheme: 'light', |
92 | | - siteFont: 'Source Sans Pro,Helvetica Neue,Arial,sans-serif', |
93 | | - codeFontFamily: 'Roboto Mono, Monaco, courier, monospace', |
94 | | - bodyFontSize: '15px', |
95 | | - dark: { |
96 | | - background: 'rgb(28,32,34)', |
97 | | - highlightColor: '#e96900', |
98 | | - codeBackgroundColor: 'rgb(34,39,46)', |
99 | | - codeTextColor: '#b4b4b4', |
100 | | - }, |
101 | | - light: { |
102 | | - highlightColor: '#e96900', |
103 | | - }, |
104 | | - }, |
105 | | - plugins: [ |
106 | | - function (hook, vm) { |
107 | | - hook.beforeEach(function (content) { |
108 | | - const { file, path } = vm.route; |
109 | | - const en = file.indexOf('README_EN') > -1; |
110 | | - if (/githubusercontent\.com/.test(file)) { |
111 | | - url = file |
112 | | - .replace( |
113 | | - 'raw.githubusercontent.com', |
114 | | - 'github.com', |
115 | | - ) |
116 | | - .replace(/\/main/, '/blob/main'); |
117 | | - } else { |
118 | | - url = `https://github.com/doocs/advanced-java/blob/main/${file}`; |
119 | | - } |
120 | | - |
121 | | - const github = `[GitHub](${url})`; |
122 | | - const gitee = `[Gitee](${url.replace('github', 'gitee' )})`; |
123 | | - |
124 | | - const editHtml = en |
125 | | - ? `:memo: Edit on ${github} / ${gitee}\n` |
126 | | - : `:memo: 在 ${github} / ${gitee} 编辑\n`; |
127 | | - |
128 | | - if (path === '/') { |
129 | | - return editHtml + content; |
130 | | - } |
131 | | - const subscription = `--- |
132 | | -## 公众号 |
133 | | -
|
134 | | -[Doocs](https://github.com/doocs) 技术社区旗下唯一公众号「**Doocs**」,欢迎扫码关注,**专注分享技术领域相关知识及业内最新资讯**。当然,也可以加我个人微信(备注:GitHub),拉你进技术交流群。 |
135 | | -
|
136 | | -关注「**Doocs**」公众号,回复 **PDF**,即可获取本项目离线 PDF 文档,学习更加方便! |
137 | | -
|
138 | | -<table> |
139 | | - <tr> |
140 | | - <td align="center" style="width: 200px;"> |
141 | | - <a href="https://github.com/doocs"> |
142 | | - <img src="./images/qrcode-for-doocs.jpg" style="width: 400px;"><br> |
143 | | - <sub>公众平台</sub> |
144 | | - </a><br> |
145 | | - </td> |
146 | | - <td align="center" style="width: 200px;"> |
147 | | - <a href="https://github.com/yanglbme"> |
148 | | - <img src="./images/qrcode-for-yanglbme.jpg" style="width: 400px;"><br> |
149 | | - <sub>个人微信</sub> |
150 | | - </a><br> |
151 | | - </td> |
152 | | - </tr> |
153 | | -</table>`; |
154 | | - return editHtml + content + `\n` + subscription; |
155 | | - }); |
156 | | - |
157 | | - hook.afterEach(function (html) { |
158 | | - const currentYear = new Date().getFullYear(); |
159 | | - const footer = `<footer><span>Copyright © 2018-${currentYear} <a href="https://github.com/doocs" target="_blank">Doocs</a>. All Rights Reserved.</footer>`; |
160 | | - return html + footer; |
161 | | - }); |
162 | | - }, |
163 | | - ], |
164 | | - }; |
165 | | - </script> |
| 51 | + <script src="./main.js"></script> |
166 | 52 | <script src="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/docsify/lib/docsify.min.js"></script> |
167 | 53 | <script src="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/prismjs/components/prism-java.min.js"></script> |
168 | 54 | <script src=" https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/[email protected]/dist/docsify-copy-code.min.js" ></script> |
|
0 commit comments