Skip to content

Commit 9d3c3ff

Browse files
committed
Documentation
1 parent 6606c0a commit 9d3c3ff

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ body().add(page()
3333

3434
PatternFly Java aims to provide almost complete support for all components, charts, extensions, and layouts. To see it in action, head over to the [showcase](https://patternfly-java.github.io/). It demonstrates all currently supported components and layouts. To get all the details about using PatternFly Java, look at the [API documentation](https://patternfly-java.github.io/apidocs/).
3535

36-
# Get Started
36+
# Get started
3737

3838
PatternFly Java is available on [Maven Central](https://central.sonatype.com/search?q=g%3Aorg.patternfly). The easiest way is to import its BOM
3939

@@ -103,13 +103,13 @@ Here’s the dependency graph of these maven modules and its external dependenci
103103

104104
![Dependency graph](./dependency-graph.png)
105105

106-
# API Design
106+
# API design
107107

108108
PatternFly Java integrates with and builds upon Elemento's [builder API](https://github.com/hal/elemento#builder-api). Static factory methods are used to create the components, and public instances methods add child elements and modify the component.
109109

110110
In general the API for a component can be classified into these groups:
111111

112-
## Static Factory Methods
112+
## Static factory methods
113113

114114
These methods are used to create a component. They are usually named after the component, are overloaded to accept required and optional arguments, and return an instance of the newly created component:
115115

@@ -118,7 +118,7 @@ Button button1 = button("Click me!");
118118
Button button2 = button("PatternFly", "https://www.patternfly.org");
119119
```
120120

121-
## Add Methods
121+
## Add methods
122122

123123
These methods add subcomponents to a main component. They are usually called `add<SubComponent>()` and return the main component so that the method call can be chained with other methods.
124124

@@ -131,7 +131,7 @@ Dropdown dropdown = dropdown()
131131
.addItem(actionMenuItem("item-0", "Action"))))))
132132
```
133133

134-
## Builder / Modifier Methods
134+
## Builder / modifier methods
135135

136136
These methods modify the current component. They return the current component so that the method call can be chained with other methods.
137137

@@ -142,7 +142,7 @@ Card card = card()
142142
.large();
143143
```
144144

145-
## ARIA Related Methods
145+
## ARIA related methods
146146

147147
These methods set ARIA related attributes in the component. They're usually named `aria<Attribute>()` and return the component so that the method call can be chained with other methods.
148148

@@ -152,7 +152,7 @@ Navigation navigation = navigation(flat)
152152
.ariaScrollForwardLabel("→ forward");
153153
```
154154

155-
## Event Handlers
155+
## Event handlers
156156

157157
These methods add event handlers for various event to the component. They are usually named `on<Event>()`, accept an event handler, and return the component so that the method call can be chained with other methods. PatternFly Java defines some [common event handlers](https://patternfly-java.github.io/apidocs/org/patternfly/handler/package-summary.html) that are reused in all components. In some cases, components also use specific event handlers that only apply to the component.
158158

@@ -161,7 +161,7 @@ Drawer drawer = drawer().id("drw")
161161
.onToggle((e, c, expanded) -> console.log("Drawer expanded: " + expanded));
162162
```
163163

164-
## Public API / Getters
164+
## Public API / getters
165165

166166
These methods do something with the component or return a value, a property or some other kind of information. They return either `void` or a value/property.
167167

@@ -219,7 +219,7 @@ DescriptionList dl = descriptionList()
219219

220220
See also the PatternFly website about [icons](https://www.patternfly.org/design-foundations/icons#all-icons) to get an overview of the available icons.
221221

222-
# PatternFly Support
222+
# PatternFly support
223223

224224
PatternFly Java aims to provide almost complete support for all components, charts, extensions, and layouts. The following issues show how many components, charts, extensions, and layouts have already been implemented.
225225

@@ -228,7 +228,7 @@ PatternFly Java aims to provide almost complete support for all components, char
228228
- [extension progress](https://github.com/patternfly-java/patternfly-java/issues/126)
229229
- [layout progress](https://github.com/patternfly-java/patternfly-java/issues/128)
230230

231-
# Get Involved
231+
# Get involved
232232

233233
PatternFly Java is still under development. The API might change, and things might not work as expected. Please give it a try and share your feedback. Join the [chat](https://app.gitter.im/#/room/#pf4-java_core:gitter.im), enter the [discussions](https://github.com/orgs/patternfly-java/discussions) or use the GitHub [issues](https://github.com/patternfly-java/patternfly-java/issues) to report bugs or request new features.
234234

showcase/common/src/doc/get-involved.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Get Involved
1+
# Get involved
22

33
PatternFly Java is still under development. The API might change, and things might not work as expected. Please give it a try and share your feedback. Join the [chat](https://app.gitter.im/#/room/#pf4-java_core:gitter.im), enter the [discussions](https://github.com/orgs/patternfly-java/discussions) or use the GitHub [issues](https://github.com/patternfly-java/patternfly-java/issues) to report bugs or request new features.
44

showcase/common/src/doc/get-started.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Get Started
1+
# Get started
22

33
PatternFly Java is available on [Maven Central](https://central.sonatype.com/search?q=g%3Aorg.patternfly). The easiest way is to import its BOM
44

@@ -68,13 +68,13 @@ Here’s the dependency graph of these maven modules and its external dependenci
6868

6969
![Dependency graph](https://raw.githubusercontent.com/patternfly-java/patternfly-java/main/dependency-graph.png)
7070

71-
# API Design
71+
# API design
7272

7373
PatternFly Java integrates with and builds upon Elemento's [builder API](https://github.com/hal/elemento#builder-api). Static factory methods are used to create the components, and public instances methods add child elements and modify the component.
7474

7575
In general the API for a component can be classified into these groups:
7676

77-
## Static Factory Methods
77+
## Static factory methods
7878

7979
These methods are used to create a component. They are usually named after the component, are overloaded to accept required and optional arguments, and return an instance of the newly created component:
8080

@@ -83,7 +83,7 @@ Button button1 = button("Click me!");
8383
Button button2 = button("PatternFly", "https://www.patternfly.org");
8484
```
8585

86-
## Add Methods
86+
## Add methods
8787

8888
These methods add subcomponents to a main component. They are usually called `add<SubComponent>()` and return the main component so that the method call can be chained with other methods.
8989

@@ -96,7 +96,7 @@ Dropdown dropdown = dropdown()
9696
.addItem(actionMenuItem("item-0", "Action"))))))
9797
```
9898

99-
## Builder / Modifier Methods
99+
## Builder / modifier methods
100100

101101
These methods modify the current component. They return the current component so that the method call can be chained with other methods.
102102

@@ -107,7 +107,7 @@ Card card = card()
107107
.large();
108108
```
109109

110-
## ARIA Related Methods
110+
## ARIA related methods
111111

112112
These methods set ARIA related attributes in the component. They're usually named `aria<Attribute>()` and return the component so that the method call can be chained with other methods.
113113

@@ -117,7 +117,7 @@ Navigation navigation = navigation(flat)
117117
.ariaScrollForwardLabel("→ forward");
118118
```
119119

120-
## Event Handlers
120+
## Event handlers
121121

122122
These methods add event handlers for various event to the component. They are usually named `on<Event>()`, accept an event handler, and return the component so that the method call can be chained with other methods. PatternFly Java defines some [common event handlers](https://patternfly-java.github.io/apidocs/org/patternfly/handler/package-summary.html) that are reused in all components. In some cases, components also use specific event handlers that only apply to the component.
123123

@@ -126,7 +126,7 @@ Drawer drawer = drawer().id("drw")
126126
.onToggle((e, c, expanded) -> console.log("Drawer expanded: " + expanded));
127127
```
128128

129-
## Public API / Getters
129+
## Public API / getters
130130

131131
These methods do something with the component or return a value, a property or some other kind of information. They return either `void` or a value/property.
132132

showcase/common/src/main/java/org/patternfly/showcase/GetInvolvedPage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import org.jboss.elemento.router.Route;
1919

20-
@Route(value = "/get-involved", title = "Get Involved")
20+
@Route(value = "/get-involved", title = "Get involved")
2121
public class GetInvolvedPage extends DocumentationPage {
2222

2323
public GetInvolvedPage() {

0 commit comments

Comments
 (0)