public class ResourceContentProvider extends java.lang.Object implements ContentProvider
Beware that the manual is unaware of resource domains. In other words, two paths that are identical except for their resource domain will be the same, as seen from the manual. This means you should probably place your documentation somewhere other than doc/, because that's where the OpenComputers documentation lives, and it is queried first - meaning if you have a page with the same path as one in OpenComputers, it is practically unreachable (because the OC provider is always queried first).
| Constructor and Description |
|---|
ResourceContentProvider(java.lang.String resourceDomain) |
ResourceContentProvider(java.lang.String resourceDomain,
java.lang.String basePath) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<java.lang.String> |
getContent(java.lang.String path)
Called to get the content of a path pointed to by the specified path.
|
public ResourceContentProvider(java.lang.String resourceDomain,
java.lang.String basePath)
public ResourceContentProvider(java.lang.String resourceDomain)
public java.lang.Iterable<java.lang.String> getContent(java.lang.String path)
ContentProviderThis should provide an iterable over the lines of a Markdown document (with the formatting provided by the in-game manual, which is a small subset of "normal" Markdown).
If this provider cannot provide the requested path, it should return null to indicate so, allowing other providers to be queried.
getContent in interface ContentProviderpath - the path to the manual page we're looking for.