Skip to content

Commit d682d2c

Browse files
committed
chore: add markdown formatting and README.md
1 parent 4fdfe2e commit d682d2c

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# <img align="left" src="../_images/spotless_logo.png"> Spotless Command Line Interface CLI
2+
3+
_Keep your code Spotless with Gradle_
4+
5+
<!---freshmark shields
6+
output = [
7+
link(shield('Changelog', 'changelog', '{{versionLast}}', 'blue'), 'CHANGES.md'),
8+
'',
9+
link(shield('OS Win', 'OS', 'Windows', 'blueviolet'), 'README.md'),
10+
link(shield('OS Linux', 'OS', 'Linux', 'blueviolet'), 'README.md'),
11+
link(shield('OS macOS', 'OS', 'macOS', 'blueviolet'), 'README.md'),
12+
].join('\n');
13+
-->
14+
15+
[![Changelog](https://img.shields.io/badge/changelog-versionLast%3DUNKNOWN-blue.svg)](CHANGES.md)
16+
17+
[![OS Win](https://img.shields.io/badge/OS-Windows-blueviolet.svg)](README.md)
18+
[![OS Linux](https://img.shields.io/badge/OS-Linux-blueviolet.svg)](README.md)
19+
[![OS macOS](https://img.shields.io/badge/OS-macOS-blueviolet.svg)](README.md)
20+
21+
<!---freshmark /shields -->
22+
23+
`spotless` is a command line interface (CLI) for the [spotless code formatter](../README.md).
24+
It intends to be a simple alternative to its siblings: the plugins for [gradle](../plugin-gradle/README.md), [maven](../plugin-maven/README.md)
25+
and others.
26+
27+
- TODO: add usage and examples
28+
- TBD: can usage be generated automatically e.g. via freshmark?
29+
-
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
plugins {
2+
id 'buildlogic.spotless-common-conventions'
3+
}
4+
5+
spotless {
6+
freshmark { // freshmark for keeping markdown files up to date
7+
target '*.md'
8+
prettier() // prettier for markdown formatting
9+
}
10+
11+
}

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id 'buildlogic.spotless-gradle-conventions'
3+
id 'buildlogic.spotless-markdown-conventions'
34
}
45

56
subprojects {

0 commit comments

Comments
 (0)