Sentry Software
Sentry Maven Skin 8.0.00
-
Home
- Advanced
Configuration Reference
All Sentry Maven Skin features can be configured globally in site.xml or per-page using frontmatter headers.
Configuration Methods
site.xml (Global)
Configure settings in src/site/site.xml under the <custom> section:
<site xmlns="http://maven.apache.org/SITE/2.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SITE/2.0.0 https://maven.apache.org/xsd/site-2.0.0.xsd"
name="${project.name}">
<skin>
<groupId>org.sentrysoftware.maven</groupId>
<artifactId>sentry-maven-skin</artifactId>
<version>8.0.00</version>
</skin>
<custom>
<bodyClass>sentry-purple</bodyClass>
<buildIndex>true</buildIndex>
<convertImagesToWebp>true</convertImagesToWebp>
</custom>
</site>
These settings apply to all pages in your documentation.
Frontmatter (Per-Page)
Override settings for individual pages using frontmatter at the top of Markdown files:
title: API Reference
buildIndex: false
buildAiIndex: false
copyToClipboard: false
# API Reference
Your content here...
Frontmatter takes precedence over site.xml settings.
Configuration Precedence
When a setting is defined in multiple places, the precedence order is:
- Frontmatter (per-page) - highest priority
- site.xml
<custom>(global) - Default value - lowest priority
Use site.xml for global defaults, then override specific pages with frontmatter when needed.
Complete Settings Reference
Content Processing
| Setting | Type | Description | Default |
|---|---|---|---|
interpolation |
String | How ${...} expressions are processed. See Maven Properties[1]. |
maven |
publishDate |
Date | Publication date for metadata | Build timestamp |
projectVersion |
String | Version displayed in the header | ${project.version} |
UI Text Labels
| Setting | Type | Description | Default |
|---|---|---|---|
tocHeadingText |
String | Heading displayed above generated table of contents | Localized by $locale |
publishDateText |
String | Label displayed before publish date in footer | Localized by $locale |
copyrightText |
String | Prefix displayed in footer copyright line | Localized by $locale |
searchFieldText |
String | Search input placeholder and aria-label text | Localized by $locale |
searchResultsText |
String | Heading displayed above search results | Localized by $locale |
searchResultSingleText |
String | Text displayed for a single search result | Localized by $locale |
searchResultCountText |
String | Text displayed after the number of search results | Localized by $locale |
projectVersionText |
String | Label displayed before version in header | Localized by $locale |
By default, these labels are loaded from the skin ResourceBundle (resources*.properties) using the current $locale. English, French, Spanish and Simplified Chinese bundles are provided out of the box. See Multilingual Documentation[2] for end-to-end locale setup.
Images
| Setting | Type | Description | Default |
|---|---|---|---|
checkImageLinks |
Boolean | Verify image files exist during build | true |
convertImagesToWebp |
Boolean | Convert images to WebP format | true |
setExplicitImageSize |
Boolean | Add width/height attributes to images | true |
convertImagesToThumbnails |
Selector | CSS selector for zoomable images. Set to false to disable. |
img:not([alt=inline]):not([uib-carousel] img) |
Code
| Setting | Type | Description | Default |
|---|---|---|---|
syntaxHighlighting |
Selector | CSS selector for code blocks. Set to false to disable PrismJS. |
pre > code[class*=language-] |
copyToClipboard |
Selector | CSS selector for copy button. Set to false to disable. |
pre |
Navigation
| Setting | Type | Description | Default |
|---|---|---|---|
tocSelector |
Selector | CSS selector for the table of contents | ul#toc |
fixProtocolRelativeUrls |
Boolean | Convert // URLs to https:// |
true |
fixHeadings |
Boolean | Fix heading anchors and IDs | true |
externalLinkClass |
String | CSS class for external links. Set to false to disable. |
externalLink |
Search
| Setting | Type | Description | Default |
|---|---|---|---|
buildIndex |
Boolean | Include page in search index | true |
buildAiIndex |
Boolean | Generate .html.md files and update llms.txt |
true |
keywords |
String | Comma-separated keywords for SEO and search | None |
Appearance
| Setting | Type | Description | Default |
|---|---|---|---|
bodyClass |
String | CSS class(es) for the <body> element |
None |
Examples
Disable Features for a Page
Exclude a page from search and AI indexing:
Site-Wide (site.xml)
<custom>
<buildIndex>false</buildIndex>
<buildAiIndex>false</buildAiIndex>
</custom>
Per-Page (Frontmatter)
buildIndex: false
buildAiIndex: false
# Internal Notes
This page won't appear in search results or AI indexes.
Disable Image Processing
Keep original images without WebP conversion:
Site-Wide (site.xml)
<custom>
<convertImagesToWebp>false</convertImagesToWebp>
<setExplicitImageSize>false</setExplicitImageSize>
</custom>
Per-Page (Frontmatter)
convertImagesToWebp: false
setExplicitImageSize: false
# Legacy Images
Images on this page stay in their original format.
Disable All Automatic Processing
For pages where you want complete control:
Site-Wide (site.xml)
<custom>
<fixHeadings>false</fixHeadings>
<fixProtocolRelativeUrls>false</fixProtocolRelativeUrls>
<copyToClipboard>false</copyToClipboard>
<convertImagesToThumbnails>false</convertImagesToThumbnails>
</custom>
Per-Page (Frontmatter)
fixHeadings: false
fixProtocolRelativeUrls: false
copyToClipboard: false
convertImagesToThumbnails: false
# Raw Content
No automatic enhancements on this page.
Boolean Values
Boolean settings accept these values:
| True values | False values |
|---|---|
true |
false |
yes |
no |
on |
off |
1 |
0 |
CSS Selector Settings
Several settings use CSS selectors[3] to target HTML elements:
convertImagesToThumbnails- Which images get zoom functionalitysyntaxHighlighting- Which code blocks get PrismJScopyToClipboard- Which elements get copy buttonstocSelector- Which element is the table of contents
Set any selector setting to false to completely disable that feature.
Selector Examples
<!-- Only highlight code blocks with specific languages -->
<syntaxHighlighting>pre > code[class*=language-java], pre > code[class*=language-xml]</syntaxHighlighting>
<!-- Copy button for code and YAML blocks -->
<copyToClipboard>pre, .yaml-example</copyToClipboard>
<!-- Disable zoom for all images -->
<convertImagesToThumbnails>false</convertImagesToThumbnails>
Additional site.xml Settings
These settings are only available in site.xml (not frontmatter):
Banners
<bannerLeft>
<src>images/logo.png</src>
<href>https://example.com</href>
<name>My Project</name>
<alt>Project Logo</alt>
</bannerLeft>
<bannerRight>
<!-- Same structure as bannerLeft -->
</bannerRight>
Navigation
<body>
<links>
<item name="GitHub" href="https://github.com/you/project"/>
</links>
<breadcrumbs>
<item name="Home" href="https://example.com"/>
</breadcrumbs>
<menu name="Documentation">
<item name="Overview" href="index.html"/>
</menu>
</body>
Social Media
<custom>
<social>
<twitter>YourHandle</twitter>
<linkedin>company/YourCompany</linkedin>
<facebook>YourPage</facebook>
<custom>
<title>Join us on Slack!</title>
<href>https://slack.example.com</href>
<icon>fa-brands fa-slack</icon>
</custom>
</social>
</custom>
Footer Links
<custom>
<additionalLinks>
<link>
<name>Terms of Service</name>
<href>https://example.com/terms</href>
</link>
<link>
<name>Privacy Policy</name>
<href>https://example.com/privacy</href>
</link>
</additionalLinks>
</custom>
See Also
- Front Matter Headers[4] - Per-page metadata
- Maven Properties[1] - Property interpolation
- Styling[5] - Color themes and CSS
- Top Links[6] - Header and footer links
- Navigation Menu[7] - Sidebar menu configuration
- Multilingual Documentation[2] - Locale-specific pages and labels
- [1] maven-properties.html
- [2] multilingual.html
- [3] https://www.w3schools.com/cssref/css_selectors.php
- [4] headers.html
- [5] styles.html
- [6] top-links.html
- [7] nav-menu.html
