Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@neo4j-antora/antora-modify-sitemaps
Advanced tools
Override default Antora sitemap generator to include only pages for the current version, and optionally move sitemaps into the component folder for the current version
Readme
Use the antora-modify-sitemaps
extension to modify the default Antora sitemap generation.
Add the extension in a playbook
antora:
extensions:
- require: "@neo4j-antora/antora-modify-sitemaps"
sitemap_version: '1.0'
sitemap_loc_version: 'current'
move_sitemaps_to_components: true
data:
components:
my-component: 'my-version'
Required.
Specifies a version that will be used for the sitemap for all components in the site catalog.
You can override this value for specific components by using the data
property.
Note: For versionless content, where the antora.yml file specifies version: ~
, use sitemap_version: '~'
.
Optional.
If this is specified, updates the paths in the entries in each generated sitemap file, replacing the version with the value of sitemap_loc_version
.
For example, with sitemap_loc_version: 'current'
<loc>https://example.com/my-component/my-version/path/to/page/</loc>
is updated to:
<loc>https://example.com/my-component/current/path/to/page/</loc>
Note: If your content is versionless only, you do not need to specify a value for sitemap_loc_version, and any value you do specify is ignored for any versionless content.
Optional.
If set to true, the sitemap for each component will be moved to site/<component>/<sitemap_version>/sitemap.xml
Optional.
If some of your components have different versions that you want to generate a sitemap for, you can specify them with this option.
For example, if you have specified sitemap_version: '2.0'
, but you have a component, my-component
that is at version 1.0, you can generate a sitemap at my-component/1.0/sitemap.xml with the following:
data:
components:
my-component: '1.0'
FAQs
Override default Antora sitemap generator to include only pages for the current version, and optionally move sitemaps into the component folder for the current version
The npm package @neo4j-antora/antora-modify-sitemaps receives a total of 176 weekly downloads. As such, @neo4j-antora/antora-modify-sitemaps popularity was classified as not popular.
We found that @neo4j-antora/antora-modify-sitemaps demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.