Skip to content

Commit 87060ad

Browse files
committed
chore: add links to documentation
1 parent cbfb3fd commit 87060ad

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

src/main/kotlin/com/github/xepozz/mago/configuration/MagoConfigurable.kt

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,16 @@ class MagoConfigurable(val project: Project) : Configurable {
3737
var myPanel = panel {
3838
row {
3939
browserLink("Download Mago", "https://github.com/carthage-software/mago")
40-
browserLink("Report a plugin bug", "https://github.com/j-plugins/mago-plugin/issues")
41-
browserLink("Request a plugin feature", "https://github.com/j-plugins/mago-plugin/issues")
40+
browserLink("Documentation", "https://mago.carthage.software/guide/getting-started")
41+
browserLink("Report bug", "https://github.com/j-plugins/mago-plugin/issues")
42+
browserLink("Request feature", "https://github.com/j-plugins/mago-plugin/issues")
4243

4344
cell(JBLabel("Debug", AllIcons.Toolwindows.ToolWindowDebugger, SwingConstants.RIGHT))
4445
.align(AlignX.RIGHT)
4546
.resizableColumn()
4647
cell(OnOffButton())
47-
.bindSelected(settings::debug)
48-
.align(AlignX.RIGHT)
48+
.bindSelected(settings::debug)
49+
.align(AlignX.RIGHT)
4950
}
5051
group(MagoBundle.message("settings.options.title")) {
5152
row {
@@ -72,7 +73,7 @@ class MagoConfigurable(val project: Project) : Configurable {
7273
)
7374
}
7475
}
75-
group(MagoBundle.message("settings.inspections.title")) {
76+
group(MagoBundle.message("settings.analyzer.title")) {
7677
row {
7778
cell(
7879
PhpInspectionsUtil.createPanelWithSettingsLink(
@@ -95,6 +96,8 @@ class MagoConfigurable(val project: Project) : Configurable {
9596
inspectionProfileManager.currentProfile
9697
.setToolEnabled(getInspectionShortName(), it)
9798
})
99+
browserLink("Documentation", "https://mago.carthage.software/tools/analyzer/overview")
100+
.align(AlignX.RIGHT)
98101
}.layout(RowLayout.PARENT_GRID)
99102
row {
100103
textField()
@@ -109,6 +112,8 @@ class MagoConfigurable(val project: Project) : Configurable {
109112
cell(OnOffButton())
110113
.label(MagoBundle.message("settings.enabled"))
111114
.bindSelected(settings::formatterEnabled)
115+
browserLink("Documentation", "https://mago.carthage.software/tools/formatter/overview")
116+
.align(AlignX.RIGHT)
112117
}.layout(RowLayout.PARENT_GRID)
113118
row {
114119
textField()
@@ -123,6 +128,8 @@ class MagoConfigurable(val project: Project) : Configurable {
123128
cell(OnOffButton())
124129
.label(MagoBundle.message("settings.enabled"))
125130
.bindSelected(settings::linterEnabled)
131+
browserLink("Documentation", "https://mago.carthage.software/tools/linter/overview")
132+
.align(AlignX.RIGHT)
126133
}
127134
.layout(RowLayout.PARENT_GRID)
128135
.visible(true)
@@ -134,6 +141,8 @@ class MagoConfigurable(val project: Project) : Configurable {
134141
cell(OnOffButton())
135142
.label(MagoBundle.message("settings.enabled"))
136143
.bindSelected(settings::guardEnabled)
144+
browserLink("Documentation", "https://mago.carthage.software/tools/guard/overview")
145+
.align(AlignX.RIGHT)
137146
}
138147
.layout(RowLayout.PARENT_GRID)
139148
.visible(true)

src/main/resources/messages/MagoBundle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ quality.tool.mago.quick.fix.text=Mago: fix the whole file
66
quality.tool.settings.link.inspection={0} inspections
77

88
settings.enabled=Enabled
9-
settings.inspections.title=Inspections
9+
settings.analyzer.title=Analyzer
1010
settings.linter.title=Linter
1111
settings.formatter.title=Formatter
1212
settings.options.title=Options

0 commit comments

Comments
 (0)