Socket
Book a DemoInstallSign in
Socket

@liquidlight/docusaurus-framework

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liquidlight/docusaurus-framework

Liquid Light Docusaurus Framework

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

Docusaurus Framework

This is a framework around a framework. It is a quick, kick-start package allowing minimal setup for a documentation site.

At Liquid Light we have our documentation located within the main site repo, so we made this to allow for lightweight deployment of our documentation framework. It comes with some (hopefully) sensible defaults.

This can work as both a contained documentation framework within a site (e.g. if you have a docs folder in your repo) or as a documentation repo in itself.

Setup

  • npm init if this is a brand new project
  • npm i @liquidlight/docusaurus-framework --save
  • Create a docusaurus.config.js in the root of your project (or subfolder) with the following contents:
module.exports = require('@liquidlight/docusaurus-framework/docusaurus.config')({
	title: 'Liquid Light',
});
  • Add the following scripts to the package.json
"scripts": {
  "watch": "docusaurus start",
  "build": "docusaurus build",
  "serve": "docusaurus serve"
}
  • Create a docs folder, here you can add a series of folders and .md (or .mdx files) for you documentation content - see below if your package.json is located inside your docs folder
  • Create a static folder - anything in here can be directly referenced in your Markdown files without the static/ - e.g. ./static/img/logo.png can be referenced as img/logo.png

Customisation

A lot of the settings can be customised, along with allowing further expansion if required. All of the options are stored as defaults and can be overridden - check the top of docusaurus.config.js

Self-contained in the docs folder

If you want your package.json file inside the docs folder so it is all self-contained, you need to set the following in your docusaurus.config.js

docs: {
	path: './',
}

If you don't want the logo to appear in the nav bar, set logo: {} in the config object

FAQs

Package last updated on 18 Sep 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.