Skip to content

Commit 59ac7f9

Browse files
Merge pull request #23 from adityabhaskar/ab/relative_link_paths
Style graph links correctly
2 parents d3dc629 + 309a7a2 commit 59ac7f9

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ The plugin is available in the [Gradle plugins repository](https://plugins.gradl
2424
Kotlin:
2525
```kotlin
2626
plugins {
27-
id("io.github.adityabhaskar.dependencygraph") version "0.1.3"
27+
id("io.github.adityabhaskar.dependencygraph") version "0.1.4"
2828
}
2929
```
3030

3131
Groovy:
3232
```groovy
3333
plugins {
34-
id "io.github.adityabhaskar.dependencygraph" version "0.1.3"
34+
id "io.github.adityabhaskar.dependencygraph" version "0.1.4"
3535
}
3636
```
3737

@@ -118,7 +118,7 @@ subgraph Legend
118118
end
119119
120120
%% Modules
121-
subgraph
121+
subgraph
122122
direction LR;
123123
:example:data{{:example:data}}:::javaNode;
124124
:example:domain{{:example:domain}}:::javaNode;
@@ -166,7 +166,7 @@ classDef andNode fill:#baffc9;
166166
classDef javaNode fill:#ffb3ba;
167167
168168
%% Modules
169-
subgraph
169+
subgraph
170170
direction LR;
171171
:example:data{{:example:data}}:::javaNode;
172172
:example:domain[:example:domain]:::javaNode;
@@ -213,4 +213,4 @@ Feel free to open a issue or submit a pull request for any bugs/improvements.
213213

214214
## License 📄
215215

216-
This template is licensed under the MIT License - see the [License](License) file for details.
216+
This template is licensed under the MIT License - see the [License](License) file for details.

plugin-build/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ID=io.github.adityabhaskar.dependencygraph
2-
VERSION=0.1.3
2+
VERSION=0.1.4
33
GROUP=io.github.adityabhaskar
44
DISPLAY_NAME=Gradle module dependency graphs
55
DESCRIPTION=A plugin to automatically produce Github/mermaid compatible dependency graphs

plugin-build/plugin/src/main/kotlin/io/github/adityabhaskar/dependencygraph/plugin/core/DrawGraph.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ internal fun drawDependencyGraph(
5151
5252
%% Styling for module nodes by type
5353
classDef rootNode stroke-width:4px;
54-
classDef mppNode fill:#ffd2b3;
55-
classDef andNode fill:#baffc9;
56-
classDef javaNode fill:#ffb3ba;
54+
classDef mppNode fill:#ffd2b3,color:#333333;
55+
classDef andNode fill:#baffc9,color:#333333;
56+
classDef javaNode fill:#ffb3ba,color:#333333;
5757
$legendText
5858
%% Modules
5959
@@ -110,7 +110,7 @@ internal fun drawDependencyGraph(
110110
val relativePath = project.projectDir.relativeTo(config.rootDir)
111111
val nodeText = if (config.shouldLinkModuleText && config.moduleBaseUrl != null) {
112112
val link = "${config.moduleBaseUrl}/$relativePath/${config.fileName}"
113-
"<a href='$link' style='color:#333;text-decoration:auto;'>${project.path}</a>"
113+
"<a href='$link' style='text-decoration:auto'>${project.path}</a>"
114114
} else {
115115
project.path
116116
}

0 commit comments

Comments
 (0)