File tree Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 5454
5555你可以 fork 任何一个感兴趣的项目到你的个人 GitHub 帐户下,对项目作出修改后,提交你的 PR。Doocs 维护者会对你的提交内容进行 review。或许你最初的提交并不规范,这也没关系,改进之后,慢慢的,整个规范性就有了。当你的提交一直很符合项目的规范性,Doocs 维护者会将你添加到对应项目的 Collaborators 列表中,共同维护好项目。
5656
57- 如果你不熟悉 GitHub 操作流程,可以参考[ 这篇文章] ( https://github.com/firstcontributions/first-contributions/blob/main /translations/README.chs.md ) 。
57+ 如果你不熟悉 GitHub 操作流程,可以参考[ 这篇文章] ( https://github.com/firstcontributions/first-contributions/blob/master /translations/README.chs.md ) 。
5858
5959Doocs 期待你的加入。
6060
6161## 贡献者列表
6262
63- 感谢以下所有为此开源组织贡献的开发者朋友们 。
63+ 感谢以下所有为此开源组织做出贡献的开发者朋友们 。
6464
6565<a href =" https://opencollective.com/doocs/contributors.svg?width=890&button=false " ><img src =" https://opencollective.com/doocs/contributors.svg?width=890&button=false " /></a >
6666
Original file line number Diff line number Diff line change 5050 }
5151 } ,
5252 plugins : [
53- function ( hook ) {
54- var footer = [
55- "<hr/>" ,
56- "<footer>" ,
57- '<span>Copyright © 2018-2021 <a href="https://github.com/doocs" target="_blank">Doocs</a>. All rights reserved.' ,
58- "</footer>" ,
59- ] . join ( "" ) ;
53+ function ( hook , vm ) {
54+ hook . beforeEach ( function ( html ) {
55+ const cn = vm . route . file . indexOf ( 'README_CN' ) != - 1
56+ const userContent = / g i t h u b u s e r c o n t e n t \. c o m / . test ( vm . route . file )
57+ const url = userContent ? vm . route . file
58+ . replace ( 'raw.githubusercontent.com' , 'github.com' )
59+ . replace ( / \/ m a i n / , '/blob/main' ) : 'https://github.com/doocs/doocs.github.io/blob/main/' + vm . route . file
60+
61+ const github = `[GitHub](${ url } )`
62+ const gitee = `[Gitee](${ url . replace ( "github" , "gitee" ) . replace ( "doocs.github.io" , "doocs" ) } )`
63+ const editHtml = ! cn ? `:memo: Edit on ${ github } / ${ gitee } \n` : `:memo: 在 ${ github } / ${ gitee } 编辑\n`
64+ return editHtml + html
65+ } )
6066
6167 hook . afterEach ( function ( html ) {
62- return html + footer ;
68+ const cn = vm . route . file . indexOf ( 'README_CN' ) != - 1
69+ const copyright = cn ? ' 版权所有' : '. All Rights Reserved'
70+ const currentYear = new Date ( ) . getFullYear ( )
71+ const footer = `<footer><span>Copyright © 2018-${ currentYear } <a href="https://github.com/doocs" target="_blank">Doocs</a>${ copyright } </footer>`
72+ return html + footer
6373 } ) ;
6474 } ,
6575 ] ,
You can’t perform that action at this time.
0 commit comments