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

@q42/sanity-plugin-user-guide

Package Overview
Dependencies
Maintainers
17
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@q42/sanity-plugin-user-guide

A Sanity plugin to add a simple user guide to the CMS

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15
decreased by-82.76%
Maintainers
17
Weekly downloads
 
Created
Source

https://nodei.co/npm/@q42/sanity-plugin-user-guide.png?downloads=true&downloadRank=true&stars=true

sanity-plugin-user-guide

This is a Sanity Studio v3 plugin.

Installation

npm install sanity-plugin-user-guide

Usage

Define your page structure for the user guide:

const userGuideStructure = defineUserGuide([
  page('Home', home).icon(HomeIcon),
  divider(),
  page('ContactPage', contactPage).icon(CommentIcon).documentType('contactPage'),
  multiPage('ContentPage', [
    page('Creating a content page', creatingAContentPage).documentType(contentPage),
    page('Content Blocks', contentBlocks),
    page('Uploading media', uploadingMedia),
  ]).icon(DocumentIcon),
]);

Add it as a plugin in sanity.config.ts (or .js):

import {defineConfig} from 'sanity'
import {userGuidePlugin} from 'sanity-plugin-user-guide'

export default defineConfig({
  //...
  plugins: [userGuidePlugin({userGuideStructure})],
})

License

MIT © Q42

Develop & test

This plugin uses @sanity/plugin-kit with default configuration for build & watch scripts.

See Testing a plugin in Sanity Studio on how to run this plugin with hotreload in the studio.

Keywords

FAQs

Package last updated on 03 May 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