Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
86eb7a42
Commit
86eb7a42
authored
Apr 25, 2017
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: removed waffle link + added git author config
parent
57299dba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
12 deletions
+11
-12
README.md
README.md
+0
-1
data.yml
app/data.yml
+2
-3
config.sample.yml
config.sample.yml
+6
-3
git.js
libs/git.js
+3
-5
No files found.
README.md
View file @
86eb7a42
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
-
[
Requirements
](
#requirements
)
-
[
Requirements
](
#requirements
)
-
[
Change Log
](
https://github.com/Requarks/wiki/blob/master/CHANGELOG.md
)
-
[
Change Log
](
https://github.com/Requarks/wiki/blob/master/CHANGELOG.md
)
-
[
Feature Requests
](
https://wikijs.canny.io/features
)
-
[
Feature Requests
](
https://wikijs.canny.io/features
)
-
[
Project Planning
](
https://waffle.io/Requarks/wiki
)
-
[
Milestones
](
#milestones
)
-
[
Milestones
](
#milestones
)
-
[
Chat with us
](
#gitter
)
-
[
Chat with us
](
#gitter
)
-
[
Special Thanks
](
#special-thanks
)
-
[
Special Thanks
](
#special-thanks
)
...
...
app/data.yml
View file @
86eb7a42
...
@@ -50,9 +50,8 @@ defaults:
...
@@ -50,9 +50,8 @@ defaults:
password
:
null
password
:
null
privateKey
:
null
privateKey
:
null
sslVerify
:
true
sslVerify
:
true
signature
:
serverEmail
:
wiki@example.com
name
:
Wiki
showUserEmail
:
true
email
:
wiki@example.com
features
:
features
:
mathjax
:
true
mathjax
:
true
externalLogging
:
externalLogging
:
...
...
config.sample.yml
View file @
86eb7a42
...
@@ -127,9 +127,12 @@ git:
...
@@ -127,9 +127,12 @@ git:
privateKey
:
/etc/wiki/keys/git.pem
privateKey
:
/etc/wiki/keys/git.pem
sslVerify
:
true
sslVerify
:
true
signature
:
name
:
Marty
# Default email to use as commit author
email
:
marty@example.com
serverEmail
:
marty@example.com
# Whether to use user email as author in commits
showUserEmail
:
true
# ---------------------------------------------------------------------
# ---------------------------------------------------------------------
# Features
# Features
...
...
libs/git.js
View file @
86eb7a42
...
@@ -20,8 +20,7 @@ module.exports = {
...
@@ -20,8 +20,7 @@ module.exports = {
exists
:
false
exists
:
false
},
},
_signature
:
{
_signature
:
{
name
:
'Wiki'
,
email
:
'wiki@example.com'
email
:
'user@example.com'
},
},
_opts
:
{
_opts
:
{
clone
:
{},
clone
:
{},
...
@@ -52,8 +51,7 @@ module.exports = {
...
@@ -52,8 +51,7 @@ module.exports = {
// Define signature
// Define signature
if
(
appconfig
.
git
)
{
if
(
appconfig
.
git
)
{
self
.
_signature
.
name
=
appconfig
.
git
.
signature
.
name
||
'Wiki'
self
.
_signature
.
email
=
appconfig
.
git
.
serverEmail
||
'wiki@example.com'
self
.
_signature
.
email
=
appconfig
.
git
.
signature
.
email
||
'user@example.com'
}
}
return
self
return
self
...
@@ -102,7 +100,7 @@ module.exports = {
...
@@ -102,7 +100,7 @@ module.exports = {
self
.
_url
=
URL
.
format
(
urlObj
)
self
.
_url
=
URL
.
format
(
urlObj
)
let
gitConfigs
=
[
let
gitConfigs
=
[
()
=>
{
return
self
.
_git
.
exec
(
'config'
,
[
'--local'
,
'user.name'
,
self
.
_signature
.
name
])
},
()
=>
{
return
self
.
_git
.
exec
(
'config'
,
[
'--local'
,
'user.name'
,
'Wiki'
])
},
()
=>
{
return
self
.
_git
.
exec
(
'config'
,
[
'--local'
,
'user.email'
,
self
.
_signature
.
email
])
},
()
=>
{
return
self
.
_git
.
exec
(
'config'
,
[
'--local'
,
'user.email'
,
self
.
_signature
.
email
])
},
()
=>
{
return
self
.
_git
.
exec
(
'config'
,
[
'--local'
,
'--bool'
,
'http.sslVerify'
,
_
.
toString
(
appconfig
.
git
.
auth
.
sslVerify
)])
}
()
=>
{
return
self
.
_git
.
exec
(
'config'
,
[
'--local'
,
'--bool'
,
'http.sslVerify'
,
_
.
toString
(
appconfig
.
git
.
auth
.
sslVerify
)])
}
]
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment