Policy Page Templates
This Antora UI includes ready-to-use policy page templates to help you create legally compliant documentation sites.
1. Overview
The UI bundle includes template policy pages that you can copy and customize for your project:
-
Terms of Use - Usage terms and conditions
-
Privacy Policy - Data protection and privacy practices
-
Cookie Policy - Website cookie usage and consent
-
Support Policy - Support channels and expectations
These templates are designed for:
-
GDPR compliance (EU privacy regulations)
-
Academic and research projects
-
Open-source software projects
-
General web application legal requirements
2. Quick Start
2.1. 1. Extract Templates
The policy templates are included in your UI bundle at:
_/templates/policy-pages/
├── README.md
├── terms-of-use.adoc
├── privacy-policy.adoc
├── cookie-policy.adoc
└── support-policy.adoc
After building your site, copy the templates to your content directory:
# Copy templates to your Antora pages directory
cp build/site/_/templates/policy-pages/*.adoc docs/modules/ROOT/pages/
2.2. 2. Customize Content
Each template contains placeholder sections to customize:
[NOTE]
====
Replace this section with information about your organization:
* Organization name and contact details
* Data controller information
* Jurisdiction and applicable laws
====
Update these sections with your specific information.
3. Template Details
3.1. Terms of Use
Covers:
-
Software licensing and usage rights
-
Academic and research use provisions
-
User responsibilities and restrictions
-
Liability limitations
-
Intellectual property rights
Key customizations: * Replace generic "software" references with your project name * Update licensing information to match your actual licenses * Add specific usage restrictions if applicable * Update contact information
3.2. Privacy Policy
Includes:
-
GDPR-compliant structure and language
-
Data collection categories and purposes
-
Legal basis for processing
-
User rights and contact information
-
Third-party service disclosures
Key customizations: * Add your organization’s contact details * Specify your actual data collection practices * List the third-party services you actually use * Update retention periods based on your practices * Add data protection officer contact if required
3.3. Cookie Policy
Provides:
-
Cookie categorization and descriptions
-
Third-party cookie disclosures
-
User control and opt-out options
-
Legal compliance information
Key customizations: * Update the cookie table with cookies you actually use * Remove sections for cookie types you don’t use * Add any additional third-party services * Update contact information
3.4. Support Policy
Defines:
-
Available support channels
-
Response time expectations
-
Community vs. commercial support
-
Support scope and limitations
Key customizations: * Update support channel URLs and contact methods * Adjust response time expectations to match your capacity * Modify support scope based on your project resources * Add or remove commercial support options
4. Legal Considerations
Legal Disclaimer These templates are provided as a starting point only. You should:
|
5. Maintenance
6. Advanced Usage
6.1. Multi-Component Sites
For sites with multiple components:
-
Shared policies: Place in a dedicated legal component
-
Component-specific: Customize per component
-
Centralized: Use includes to share common sections
Example shared policy structure:
legal-component/
└── modules/
└── ROOT/
└── pages/
├── terms-of-use.adoc
├── privacy-policy.adoc
├── cookie-policy.adoc
└── support-policy.adoc
6.2. Custom Footer Links
To customize footer links, override the footer partial:
<div class="footer-terms-links">
<a href="{{relativize 'legal/terms-of-use.html'}}">Terms of Use</a>
<a href="{{relativize 'legal/privacy-policy.html'}}">Privacy Policy</a>
<!-- Add custom links -->
<a href="{{relativize 'legal/accessibility.html'}}">Accessibility</a>
</div>
7. Contributing
Help improve these templates:
-
Report issues: Open GitHub issues for template problems
-
Suggest improvements: Propose enhancements
-
Legal updates: Share legal requirement changes
-
Translation: Help translate templates
8. Resources
-
Search Setup - Configure search for policy pages
-
GDPR Information - EU privacy regulation details
-
ICO Guidance - UK data protection guidance
-
CNIL - French data protection authority