-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathmkdocs.gradle
More file actions
27 lines (25 loc) · 936 Bytes
/
mkdocs.gradle
File metadata and controls
27 lines (25 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
apply plugin: 'ru.vyarus.mkdocs'
mkdocs {
// mkdocs sources
sourcesDir = "." // default is 'doc' in the root directory.
// strict build (fail on build errors)
strict = true
// target build directory (publication root)
buildDir = 'build/mkdocs'
// automatically update site_url in mkdocs.yml before mkdocsBuild
updateSiteUrl = true
publish {
// publication sub-folder (by default project version)
docPath = 'doc'
// generate index.html' for root redirection to the last published version
rootRedirect = true
// publish repository uri (by default the same as current repository)
repoUri = null
// publication branch
branch = 'gh-pages'
// publication comment
comment = 'Publish github pages documentation'
// directory publication repository checkout, update and push
repoDir = '.gradle/gh-pages'
}
}