| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d4c1ff3 commit 45b5041
7 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49,4 +49,11 @@ DescriptionList dl = descriptionList() | |||
| 49 | 49 | .addDescription(descriptionListDescription("2 annotations"))); | |
| 50 | 50 | ``` | |
| 51 | 51 | ||
| 52 | - See also the PatternFly website about [icons](https://www.patternfly.org/design-foundations/icons#all-icons) to get an overview of the available icons. | ||
| 52 | + ## Custom Icons | ||
| 53 | + | ||
| 54 | + If you need an icon that's not included in the predefined sets, you can create a custom icon using Elemento's SVG builder API. Wrap your SVG markup in an `svg()` builder and use it wherever a `PredefinedIcon` is accepted. | ||
| 55 | + | ||
| 56 | + ## Resources | ||
| 57 | + | ||
| 58 | + - [PatternFly icons](https://www.patternfly.org/design-foundations/icons#all-icons) — Browse all available icons on the PatternFly website | ||
| 59 | + - [`IconSets` Javadoc](https://patternfly-java.github.io/apidocs/org/patternfly/icon/IconSets.html) — Full API reference for predefined icon sets | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,3 +41,8 @@ HTMLElement container = div() | |||
| 41 | 41 | .style("font-size", globalFontSizeSm.var) | |
| 42 | 42 | .element(); | |
| 43 | 43 | ``` | |
| 44 | + | ||
| 45 | + ## Resources | ||
| 46 | + | ||
| 47 | + - [PatternFly tokens](https://www.patternfly.org/tokens/all-patternfly-tokens) — Browse all available tokens on the PatternFly website | ||
| 48 | + - [`Token` Javadoc](https://patternfly-java.github.io/apidocs/org/patternfly/token/Token.html) — Full list of available token enum constants | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -106,8 +106,8 @@ This executes `markdown.mjs`, which: | |||
| 106 | 106 | ||
| 107 | 107 | 1. Walks the `showcase/markdown/` directory recursively | |
| 108 | 108 | 2. Parses each `.md` file (frontmatter, GFM, syntax highlighting) | |
| 109 | - 3. Writes JSON files to `src/web/markdown/`, preserving the directory structure | ||
| 110 | - 4. Generates `src/web/markdown/manifest.json` with the full navigation tree | ||
| 109 | + 3. Writes JSON files to `src/web/public/markdown/`, preserving the directory structure | ||
| 110 | + 4. Generates `src/web/public/markdown/manifest.json` with the full navigation tree | ||
| 111 | 111 | ||
| 112 | 112 | ### JSON Output | |
| 113 | 113 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,6 +5,41 @@ title: Get involved | |||
| 5 | 5 | ||
| 6 | 6 | # Get involved | |
| 7 | 7 | ||
| 8 | - 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. | ||
| 8 | + PatternFly Java is an open source project, and we welcome contributions of all kinds. Whether you want to report a bug, suggest a feature, or contribute code, there are many ways to get involved. | ||
| 9 | 9 | ||
| 10 | - Of course, you're welcome to [contribute](https://github.com/patternfly-java/patternfly-java/blob/main/CONTRIBUTING.md) to PatternFly Java. If you like what you're seeing, leave us a star! | ||
| 10 | + ## Report Bugs | ||
| 11 | + | ||
| 12 | + Found something that doesn't work as expected? Open an issue on [GitHub Issues](https://github.com/patternfly-java/patternfly-java/issues). Please include: | ||
| 13 | + | ||
| 14 | + - A clear description of the problem | ||
| 15 | + - Steps to reproduce the issue | ||
| 16 | + - The expected vs. actual behavior | ||
| 17 | + - Your environment (Java version, GWT or J2CL, browser) | ||
| 18 | + | ||
| 19 | + ## Request Features | ||
| 20 | + | ||
| 21 | + Have an idea for a new component or improvement? Start a conversation in [GitHub Discussions](https://github.com/orgs/patternfly-java/discussions) or open an issue with the `enhancement` label. | ||
| 22 | + | ||
| 23 | + ## Contribute Code | ||
| 24 | + | ||
| 25 | + We'd love your help! Check out the [contributing guide](https://github.com/patternfly-java/patternfly-java/blob/main/CONTRIBUTING.md) to get started. Good first contributions include: | ||
| 26 | + | ||
| 27 | + - Adding missing component variations | ||
| 28 | + - Improving documentation and examples | ||
| 29 | + - Writing tests | ||
| 30 | + - Fixing bugs from the issue tracker | ||
| 31 | + | ||
| 32 | + ## Join the Discussion | ||
| 33 | + | ||
| 34 | + Connect with the community: | ||
| 35 | + | ||
| 36 | + - **[GitHub Discussions](https://github.com/orgs/patternfly-java/discussions)** — Ask questions, share ideas, and discuss the project | ||
| 37 | + - **[Gitter](https://app.gitter.im/#/room/#pf4-java_core:gitter.im)** — Chat with the community in real time | ||
| 38 | + - **[GitHub Issues](https://github.com/patternfly-java/patternfly-java/issues)** — Track bugs and feature requests | ||
| 39 | + | ||
| 40 | + ## Stay Updated | ||
| 41 | + | ||
| 42 | + - Watch the [GitHub repository](https://github.com/patternfly-java/patternfly-java) for releases and updates | ||
| 43 | + - Check the [changelog](https://github.com/patternfly-java/patternfly-java/blob/main/CHANGELOG.md) for recent changes | ||
| 44 | + | ||
| 45 | + If you like what you're seeing, leave us a star on [GitHub](https://github.com/patternfly-java/patternfly-java)! | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,23 +5,27 @@ title: Get started | |||
| 5 | 5 | ||
| 6 | 6 | # Get started | |
| 7 | 7 | ||
| 8 | - PatternFly Java is available on [Maven Central](https://central.sonatype.com/search?q=g%3Aorg.patternfly). The easiest way is to import its BOM | ||
| 8 | + PatternFly Java is available on [Maven Central](https://central.sonatype.com/search?q=g%3Aorg.patternfly). The easiest way is to import its BOM and add a dependency for your compilation target. | ||
| 9 | + | ||
| 10 | + ## Maven Setup | ||
| 11 | + | ||
| 12 | + Import the BOM in your `pom.xml`. Replace `${patternfly-java.version}` with the [latest version](https://central.sonatype.com/search?q=g%3Aorg.patternfly) from Maven Central: | ||
| 9 | 13 | ||
| 10 | 14 | ```xml | |
| 11 | 15 | <dependencyManagement> | |
| 12 | 16 | <dependencies> | |
| 13 | 17 | <dependency> | |
| 14 | 18 | <groupId>org.patternfly</groupId> | |
| 15 | 19 | <artifactId>patternfly-java-bom</artifactId> | |
| 16 | - <version>0.9.1-SNAPSHOT</version> | ||
| 20 | + <version>${patternfly-java.version}</version> | ||
| 17 | 21 | <type>pom</type> | |
| 18 | 22 | <scope>import</scope> | |
| 19 | 23 | </dependency> | |
| 20 | 24 | </dependencies> | |
| 21 | 25 | </dependencyManagement> | |
| 22 | 26 | ``` | |
| 23 | 27 | ||
| 24 | - and add a dependency to either | ||
| 28 | + Then add a dependency to either | ||
| 25 | 29 | ||
| 26 | 30 | ```xml | |
| 27 | 31 | <dependency> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,13 @@ title: PatternFly Java | |||
| 5 | 5 | ||
| 6 | 6 | # PatternFly Java | |
| 7 | 7 | ||
| 8 | - PatternFly Java is a 💯 Java implementation of [PatternFly](https://www.patternfly.org/) without any JavaScript dependencies (except for the charts – see below). Its goal is to provide an easy-to-use, elegant, and efficient API to build complex web applications with PatternFly in Java. PatternFly Java integrates with and builds upon Elemento's [builder API](https://hal-console.gitbook.io/elemento/builder-api). It works with both GWT and J2CL. The following code snippet gives a taste of what PatternFly Java looks like: | ||
| 8 | + Build enterprise web applications in pure Java with [PatternFly](https://www.patternfly.org/) components — no JavaScript required. | ||
| 9 | + | ||
| 10 | + PatternFly Java is a 💯 Java implementation of PatternFly that integrates with and builds upon Elemento's [builder API](https://hal-console.gitbook.io/elemento/builder-api). It works with both GWT and J2CL, giving you a type-safe, fluent API to create complex web applications entirely in Java. | ||
| 11 | + | ||
| 12 | + ## A Taste of the API | ||
| 13 | + | ||
| 14 | + The following code snippet shows how PatternFly Java lets you build a complete page layout with just a few lines of Java: | ||
| 9 | 15 | ||
| 10 | 16 | ```java | |
| 11 | 17 | body().add(page() | |
@@ -38,7 +44,26 @@ body().add(page() | |||
| 38 | 44 | .add(".")))))); | |
| 39 | 45 | ``` | |
| 40 | 46 | ||
| 41 | - PatternFly Java aims to provide almost complete support for all components, charts, extensions, and layouts. This showcase 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/). | ||
| 47 | + Static factory methods, method chaining, and type-safe builders make it easy to create components, compose layouts, and wire up event handlers — all with full IDE support. | ||
| 48 | + | ||
| 49 | + ## What You Get | ||
| 50 | + | ||
| 51 | + PatternFly Java aims to provide almost complete support for PatternFly's design system: | ||
| 52 | + | ||
| 53 | + - **50+ Components** — Alerts, buttons, cards, dropdowns, modals, tables, tabs, and many more. Browse the component demos in the sidebar. | ||
| 54 | + - **Charts** — Area, bar, donut, line, pie, and other chart types via the [`@patternfly-java/charts`](https://www.npmjs.com/package/@patternfly-java/charts) NPM package. | ||
| 55 | + - **Layouts** — Bullseye, flex, gallery, grid, level, split, and stack layouts for responsive page design. | ||
| 56 | + - **Extensions** — Code editor and finder extensions for specialized use cases. | ||
| 57 | + - **Design Tokens** — All PatternFly [design tokens](https://www.patternfly.org/tokens/about-tokens) available as type-safe Java enum constants. | ||
| 58 | + - **Icons** — FontAwesome, PatternFly, and Red Hat icon sets with convenient factory methods. | ||
| 59 | + | ||
| 60 | + ## Get Started | ||
| 61 | + | ||
| 62 | + Ready to try PatternFly Java? Here's how to begin: | ||
| 63 | + | ||
| 64 | + - **[Get started](/get-started)** — Add PatternFly Java to your Maven project | ||
| 65 | + - **[API documentation](https://patternfly-java.github.io/apidocs/)** — Full Javadoc reference | ||
| 66 | + - **[GitHub](https://github.com/patternfly-java/patternfly-java)** — Source code, issues, and discussions | ||
| 42 | 67 | ||
| 43 | 68 | ## Charts | |
| 44 | 69 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -63,7 +63,7 @@ public Iterable<HTMLElement> elements(Place place, Parameter parameter, LoadedDa | |||
| 63 | 63 | MarkdownData md = data.get(); | |
| 64 | 64 | removeChildrenFrom(root); | |
| 65 | 65 | root.appendChild( | |
| 66 | - content().html(SafeHtmlUtils.fromSafeConstant(md.html)).element()); | ||
| 66 | + content().editorial().html(SafeHtmlUtils.fromSafeConstant(md.html)).element()); | ||
| 67 | 67 | return singletonList(root); | |
| 68 | 68 | } | |
| 69 | 69 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments