open-index/open-npm huggingface dataset:
npm package: @springio/antora-xref-extension
Description: An Antora extension to improve xref support.
Author: Spring
Latest version: 1.0.0-alpha.5

# Antora Xref Extension

The Antora Xref Extension augments Antora’s support for xref macros with the following features:

* Validate that the target file contains an anchor that matches the fragment.
* Use default link text from the title or `reftext` of the target.
* Stub links that don’t yet exist
* Produce warnings if link text is unnecessary 

See https://github.com/spring-io/antora-xref-extension/ for more details and usage instructions.
npm package: @springio/antora-zip-contents-collector-extension
Description: An Antora extension that runs a collects the content from local or remote zip files.
Author: Spring
Latest version: 1.0.0-alpha.10

# Antora Zip Contents Collector Extension

Typically this extension is used to load supplemental content that is generated and published when a project is built, but isn’t directly committed into the git repository.

See https://github.com/spring-io/antora-zip-contents-collector-extension/ for more details and usage instructions.
npm package: @springio/utils
Description: Utilities for Spring documentation and websites
Author: dsyer
Latest version: 2.0.1

Javascript library with utilities for [Spring](https://spring.io) documentation and websites.

## Usage

```
<link rel="stylesheet" type="text/css" href="https://unpkg.com/@springio/utils/style.css" />
<script async src="https://unpkg.com/@springio/utils"></script>
```

## Block Switcher

Often used for switching code samples globally between different high level options (Java and Kotlin, Java and XML, YAML and Properties, etc.). If HTML is rendered with Asciidoctor then code snippets like this:

```
[source,xml,indent=0,role="primary"]
.Maven
----
<dependency>
    <groupId>com.example</groupId>
    <artifactId>some-library</artifactId>
    <version>1.2.3</version>
</dependency>
----

[source,indent=0,role="secondary"]
.Gradle
----
compile 'com.example:some-library:1.2.3'
----
```

Then the HTML will be generated with "title" elements, like this:

```
<div class="content primary">
  <div class="title">Maven</div>
  <div class="content">
    <pre>
<dependency>
    <groupId>com.example</groupId>
    <artifactId>some-library</artifactId>
    <version>1.2.3</version>
</dependency>
    </pre>
  </div>
</div>
<div class="content secondary">
  <div class="title">Gradle</div>
  <div class="content">
    <pre>
compile 'com.example:some-library:1.2.3'
    </pre>
  </div>
</div>
```

The script scans for this kind of structure and re-organizes it so that only one snippet is visible and the others are selectable by a click. It works for all blocks with "Maven|Gradle" choices in the whole document, on the assumption that the user only wants to select this once. It's a bit like classic navigation tabs, but applied to the whole content, not just navigation.

## Publishing

This library is published in NPMJS (following instructions [here](https://docs.npmjs.com/creating-and-publishing-scoped-public-packages)). That's how the `unpkg.com` links work above:

```
$ npm login
$ npm publish --access public
```