starlight-announcement
v0.1.1
Published
A plugin to add custom announcements to your Starlight docs.
Maintainers
Readme
Features
- Display announcement banners at the top of your documentation,
- Schedule announcements with start and end dates,
- Multiple display modes: static, closable, and rotating,
- Fully customizable theming with built-in and custom styles,
- Internationalization (i18n) support for localized content,
- Accessible components with proper ARIA attributes,
- Works seamlessly with Starlight's existing configuration.
Installation
Install the plugin using your preferred package manager:
npm install starlight-announcementQuick Start
// astro.config.mjs
import starlight from '@astrojs/starlight';
import starlightAnnouncement from 'starlight-announcement';
export default defineConfig({
integrations: [
starlight({
plugins: [
starlightAnnouncement({
announcements: [
{
content: 'Welcome to our documentation!',
},
],
}),
],
}),
],
});Documentation
For comprehensive documentation, installation guides, configuration options, and examples, visit the plugin documentation.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
License
Licensed under the MIT License, Copyright © frostybee.
See LICENSE for more information.
