Security News
OpenJS: “XZ Utils Cyberattack Likely Not an Isolated Incident”
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
@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
Weekly downloads
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 126 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.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
Company News
Come meet the Socket team at BSidesSF and RSA! We're sponsoring several fun networking events and we would love to see you there.
Security News
OSI is starting a conversation aimed at removing the excuse of the SaaS loophole for companies navigating licensing and the complexities of doing business with open source.