|
| 1 | +// @deno-types="https://deno.land/x/types/react/v16.13.1/react.d.ts" |
| 2 | +import React from 'https://dev.jspm.io/react@16.13.1' |
| 3 | + |
| 4 | +export default { |
| 5 | + srcDir: '.', |
| 6 | + ignore: [/\/demos\//, /\/public\//, /\/\./, /\/LICENSE/, /\/original-articles\//], |
| 7 | + theme: 'docs', |
| 8 | + // prev_next, gitalk |
| 9 | + plugins: ['sidebar', 'script', 'ga'], |
| 10 | + title: 'Deno 钻研之术', |
| 11 | + description: '循序渐进学 Deno & 先易后难补 Node & 面向未来的 Deno Web 应用开发。', |
| 12 | + github: 'https://github.com/hylerrix/deno-tutorial', |
| 13 | + head: (<link rel="icon" type="image/png" href="/favicon.png" />), |
| 14 | + nav: [ |
| 15 | + { |
| 16 | + text: '打赏一下!!', |
| 17 | + link: 'https://github.com/xcatliu/buy-me-a-coffee', |
| 18 | + target: '_blank', |
| 19 | + popover: ( |
| 20 | + <> |
| 21 | + <img src="/assets/wechat.png" width="256" style={{ marginRight: '1rem', verticalAlign: 'top' }} /> |
| 22 | + <img src="/assets/alipay.png" width="256" style={{ verticalAlign: 'top' }} /> |
| 23 | + </> |
| 24 | + ) |
| 25 | + }, |
| 26 | + { text: '官网', link: 'https://deno.land' }, |
| 27 | + { text: '资源', link: 'https://github.com/hylerrix/awesome-deno-cn' }, |
| 28 | + { text: '手册', link: 'https://nugine.github.io/deno-manual-cn' }, |
| 29 | + { text: 'deno.js.cn', link: 'https://deno.js.cn' }, |
| 30 | + { text: 'denocn.org', link: 'https://denocn.org' }, |
| 31 | + { text: 'Deno 库排行', link: 'https://yoshixmk.github.io/deno-x-ranking/' }, |
| 32 | + { text: '关于作者', link: 'https://github.com/hylerrix' }, |
| 33 | + 'articles/THANKS.md', |
| 34 | + ], |
| 35 | + sidebar: [ |
| 36 | + 'README.md', |
| 37 | + { |
| 38 | + link: 'articles/basic/README.md', |
| 39 | + children: [ |
| 40 | + 'articles/basic/install-and-hello-world.md', |
| 41 | + ] |
| 42 | + }, |
| 43 | + { |
| 44 | + link: 'articles/ecology/README.md', |
| 45 | + children: [ |
| 46 | + 'articles/ecology/awesome-deno-cn.md' |
| 47 | + ] |
| 48 | + }, |
| 49 | + { |
| 50 | + link: 'translations/README.md', |
| 51 | + children: [ |
| 52 | + 'translations/001-the-deno-handbook.md', |
| 53 | + 'translations/002-deno-chat-app.md', |
| 54 | + 'translations/003-from-node-to-deno.md', |
| 55 | + 'translations/004-deno-oak-todo-api.md', |
| 56 | + 'translations/005-deno-oak-mysql.md', |
| 57 | + ] |
| 58 | + } |
| 59 | + ], |
| 60 | + tools: { |
| 61 | + editOnGithub: true, |
| 62 | + backToTop: true |
| 63 | + }, |
| 64 | + gitalk: { |
| 65 | + clientID: '60180eea2c09238f8998', |
| 66 | + clientSecret: 'e9ea0ff6555185eda28eff4dfd4b755b1764abf3', |
| 67 | + repo: 'deno-tutorial', |
| 68 | + owner: 'hylerrix', |
| 69 | + admin: ['hylerrix'], |
| 70 | + pagerDirection: 'first' |
| 71 | + }, |
| 72 | + ga: { |
| 73 | + id: window.Deno?.env.get('GA_ID') ?? 'UA-169223577-1' |
| 74 | + } |
| 75 | +} |
0 commit comments