Socket
Book a DemoInstallSign in
Socket

hygen-docusaurus

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hygen-docusaurus

A hygen package for Docusaurus

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

hygen-docusaurus

A Hygen package for Docusaurus that supercharges your workflow.

Getting Started

Install hygen-add:

npm i -g hygen-add

And add the hygen-docusaurus package:

hygen-add docusaurus

Generators

Blog Post

Creates a blog/YYYY-MM-DD-name/index.md file for the blog content plugin:

hygen blog new [name]
ArgumentTypeDescription
[name]stringName of blog post (my-blog-post)
--authorsstringComma separated list of blog post authors.
--titlestringThe blog post title.
--tagsstringComma separated list of tags.
--draftbooleanA boolean flag to indicate that the blog post is work-in-progress and therefore should not be published yet. However, draft blog posts will be displayed during development.
--hide_table_of_contentsbooleanWhether to hide the table of contents to the right.
--toc_min_heading_levelnumberThe minimum heading level shown in the table of contents. Must be between 2 and 6 and lower or equal to the max value.
--toc_max_heading_levelnumberThe max heading level shown in the table of contents. Must be between 2 and 6.
--keywordsstringKeywords meta tag, which will become the <meta name="keywords" content="keyword1,keyword2,..."/> in <head>, used by search engines.
--descriptionstringThe description of your document, which will become the <meta name="description" content="..."/> and <meta property="og:description" content="..."/> in <head>, used by search engines.
--imagestringCover or thumbnail image that will be used when displaying the link to your post.
--slugstringAllows to customize the blog post url.
-ibooleanRun the generator in interactive mode to prompt for all arguments.

Component

Creates a React component in the src/components directory:

hygen component new [name]
ArgumentTypeDescription
[name]stringName of component (MyButton).

Doc

Creates a markdown file in the docs directory for the docs content plugin:

hygen doc new [name]
ArgumentTypeDescription
[name]stringSupport multiple patterns: getting-started, /my/path/to/getting-started.
--idstringA unique document id.
--titlestringThe text title of your document.
--pagination_labelstringThe text used in the document next/previous buttons for this document.
--sidebar_labelstringThe text shown in the document sidebar for this document.
--sidebar_positionnumberControls the position of a doc inside the generated sidebar slice when using autogenerated sidebar items. See also Autogenerated sidebar metadata.
--sidebar_class_namestringGives the corresponding sidebar label a special class name when using autogenerated sidebars.
--hide_titlebooleanWhether to hide the title at the top of the doc. It only hides a title declared through the front matter, and have no effect on a Markdown title at the top of your document.
--hide_table_of_contentsbooleanWhether to hide the table of contents to the right.
--toc_min_heading_levelnumberThe minimum heading level shown in the table of contents. Must be between 2 and 6 and lower or equal to the max value.
--toc_max_heading_levelnumberThe max heading level shown in the table of contents. Must be between 2 and 6.
--pagination_nextstringThe ID of the documentation you want the "Next" pagination to link to. Use null to disable showing "Next" for this page.
--pagination_prevstringThe ID of the documentation you want the "Previous" pagination to link to. Use null to disable showing "Previous" for this page.
--keywordsstringKeywords meta tag for the document page, for search engines.
--descriptionstringThe description of your document, which will become the <meta name="description" content="..."/> and <meta property="og:description" content="..."/> in <head>, used by search engines.
--imagestringCover or thumbnail image that will be used when displaying the link to your post.
--slugstringAllows to customize the document url.
--tagsstringComma separated list to tag to your docs.
-ibooleanRun the generator in interactive mode to prompt for all arguments.

Page

Creates a React component in the src/pages directory:

hygen page new [name]
ArgumentTypeDescription
[name]stringName of component (Home).

Keywords

hygen

FAQs

Package last updated on 03 Apr 2022

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