Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

starlight-links-validator

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

starlight-links-validator

Astro integration for Starlight to validate internal links.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Astro integration for Starlight to validate internal links.

Screenshot of starlight-links-validator

Features

An Astro integration for Starlight Starlight to validate internal links in Markdown and MDX files.

  • Validate internal links to other pages
  • Validate internal links to anchors in other pages
  • Validate internal links to anchors in the same page
  • Ignore external links
  • Run only during a production build

Installation

Install the Starlight Links Validator integration using your favorite package manager, e.g. with pnpm:

pnpm add starlight-links-validator

Update your Astro configuration to include the Starlight Links Validator integration before the Starlight integration:

  import starlight from '@astrojs/starlight'
  import { defineConfig } from 'astro/config'
+ import starlightLinksValidator from 'starlight-links-validator'

  export default defineConfig({
    // …
    integrations: [
+     starlightLinksValidator(),
      starlight({
        sidebar: [
          {
            label: 'Guides',
            items: [{ label: 'Example Guide', link: '/guides/example/' }],
          },
        ],
        title: 'My Docs',
      }),
    ],
  })

License

Licensed under the MIT License, Copyright © HiDeoo.

See LICENSE for more information.

Keywords

FAQs

Package last updated on 23 Jun 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc