|
Last change
on this file since 34558 was 34317, checked in by renerr18, 7 years ago |
|
Initial checkin of MicrosoftStreetside source
|
|
File size:
589 bytes
|
| Line | |
|---|
| 1 | import groovy.io.FileType
|
|---|
| 2 |
|
|---|
| 3 | task prepareMarkdown(type:Sync) {
|
|---|
| 4 | from projectDir
|
|---|
| 5 | //into "$buildDir/src/markdown"
|
|---|
| 6 | into "$buildDir"
|
|---|
| 7 | include 'LICENSE.md'
|
|---|
| 8 | include 'README.md'
|
|---|
| 9 | }
|
|---|
| 10 |
|
|---|
| 11 | markdownToHtml {
|
|---|
| 12 | dependsOn prepareMarkdown
|
|---|
| 13 | sourceDir new File("$buildDir/src/markdown")
|
|---|
| 14 | inputEncoding 'UTF-8'
|
|---|
| 15 | outputEncoding 'UTF-8'
|
|---|
| 16 | fencedCodeBlocks true
|
|---|
| 17 | autoLinks true
|
|---|
| 18 |
|
|---|
| 19 | doLast {
|
|---|
| 20 | new File("$outputDir").eachFileRecurse(FileType.FILES, { file ->
|
|---|
| 21 | file.text = '<!DOCTYPE html><meta charset="utf-8">' + file.text
|
|---|
| 22 | })
|
|---|
| 23 | }
|
|---|
| 24 | }
|
|---|
| 25 | jar.dependsOn markdownToHtml
|
|---|
| 26 | jar.from markdownToHtml.outputDir
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.