
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@lunariajs/starlight
Advanced tools
Lunaria integration for the Starlight documentation theme for Astro
@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.
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
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.
FAQs
Lunaria integration for the Starlight documentation theme for Astro
We found that @lunariajs/starlight demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.