Static webpages generator for GitHub pages.
Using plugins DSL:
plugins {
id('com.hanggrian.pages') version "$version"
}
Using legacy plugin application:
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath("com.hanggrian:pages-gradle-plugin:$version")
}
}
apply plugin: 'com.hanggrian.pages'
Configure base extension, then select one of the available themes.
pages {
// custom local resources
resources {
from('images')
}
// map markdown files to HTML
contents {
index('README.md')
add('About.md', 'about.html')
}
}
pages {
materialist {
darkMode.set(true)
}
}
pages {
cayman {
darkMode.set(true)
authorName.set('John Doe')
projectName.set('My Project')
projectDescription.set('A very awesome project')
markdownFile.set(file('path/to/README.md'))
button('Download', 'Sources', 'https://somewhere.com')
}
}
pages {
minimal {
authorName.set('John Doe')
projectName.set('My Project')
projectDescription.set('A very awesome project')
markdownFile.set(file('path/to/README.md'))
button('Download', 'Sources', 'https://somewhere.com')
}
}