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

@lunariajs/starlight

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lunariajs/starlight

Lunaria integration for the Starlight documentation theme for Astro

  • 0.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
91
increased by68.52%
Maintainers
1
Weekly downloads
 
Created
Source

@lunariajs/starlight

The @lunariajs/starlight package integrates Lunaria into the Starlight documentation theme for Astro.

Read the official Lunaria documentation to learn more about it.

Installation

You can install @lunariajs/starlight using your preferred package manager:

# npm
npm install @lunariajs/starlight

# pnpm
pnpm add @lunariajs/starlight

# yarn
yarn add @lunariajs/starlight

To use @lunariajs/starlight properly you also need to install Lunaria's core package:

# npm
npm install @lunariajs/core

# pnpm
pnpm add @lunariajs/core

# yarn
yarn add @lunariajs/core

Basic Usage

Start using @lunariajs/starlight by setting up your own lunaria.config.json file and adding the provided integration to your astro.config.* file.

// lunaria.config.json
{
  "repository": {
    "name": "me/cool-docs"
  }
}

When using @lunariajs/starlight you only need to provide a repository field to get started, as defaultLocale, locales, and files can be generated by enabling sync in the integration's configuration. Do run astro build one first time before other commands to avoid validation errors during development.

// astro.config.mjs
import starlight from '@astrojs/starlight';
import lunaria from '@lunariajs/starlight';
import { defineConfig } from 'astro/config';

export default defineConfig({
  integrations: [
    starlight({
      plugins: [
        // All options are optional, values shown are the defaults.
        lunaria({
          // A relative path to your Lunaria configuration file.
          configPath: './lunaria.config.json',
          // The desired route to render the Lunaria dashboard.
          route: '/lunaria',
          // Option to enables syncing the Lunaria configuration file
          // with Starlight's configuration whenever you run
          // `astro build`, populating the Lunaria config's `defaultLocale`,
          // `locales`, and `files` fields automatically.
          sync: false,
        }),
      ],
    }),
  ],
});

After setting up the integration, you can run astro dev or astro build and go to the specified route, e.g. https://localhost:4321/lunaria to see your localization dashboard.

Keywords

FAQs

Package last updated on 23 Feb 2024

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