https://github.com/try0/wicket-component-document
Assists in browsing documents related to components.
https://github.com/try0/wicket-component-document
apache-wicket devtools java javascript js wicket
Last synced: 7 months ago
JSON representation
Assists in browsing documents related to components.
- Host: GitHub
- URL: https://github.com/try0/wicket-component-document
- Owner: try0
- Created: 2021-08-16T15:50:27.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-29T13:47:11.000Z (over 4 years ago)
- Last Synced: 2025-07-10T21:46:44.462Z (8 months ago)
- Topics: apache-wicket, devtools, java, javascript, js, wicket
- Language: Java
- Homepage:
- Size: 71.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wicket-component-document
Assists in browsing documents related to components.
Links to source code, javadoc, wiki, and more...
## console
```java
if (getConfigurationType() == RuntimeConfigurationType.DEVELOPMENT) {
ComponentDocumentOption defaultOption = new ComponentDocumentOption();
ComponentDocumentSetting.createInitializer(this)
.setDefaultOption(defaultOption)
// wicket-component-document-samples GitHub
.addBaseUrl("jp.try0.wicket",
"https://github.com/try0/wicket-component-document/tree/main/wicket-component-document-samples/src/main/java/")
// wicket GitHub
.addBaseUrl("org.apache.wicket",
"https://github.com/apache/wicket/tree/wicket-8.x/wicket-core/src/main/java/")
.initialize();
}
```

## multiple documents, tooltip
```java
if (getConfigurationType() == RuntimeConfigurationType.DEVELOPMENT) {
ComponentDocumentOption defaultOption = new ComponentDocumentOption();
defaultOption.setEnabledTooltip(true);
ComponentDocumentSetting.createInitializer(this)
.setDefaultOption(defaultOption)
// wicket-component-document-samples GitHub
.addBaseUrl("jp.try0.wicket",
"https://github.com/try0/wicket-component-document/tree/main/wicket-component-document-samples/src/main/java/")
// wicket GitHub
.addBaseUrl("org.apache.wicket",
"https://github.com/apache/wicket/tree/wicket-8.x/wicket-core/src/main/java/")
// wicket javadoc.io
.addBaseUrl("org.apache.wicket",
"https://javadoc.io/doc/org.apache.wicket/wicket-core/8.13.0/")
.setUrlAppender(new DocumentUrlAppender() {
@Override
protected String getComponentDocumentUrl(String baseUrl, Component component) {
String url = super.getComponentDocumentUrl(baseUrl, component);
if (baseUrl.startsWith("https://javadoc.io")) {
url = url.replaceAll("java$", "html");
}
return url;
}
})
.initialize();
}
```
