Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@graphql-markdown/docusaurus
Advanced tools
Docusaurus plugin for generating Markdown documentation from a GraphQL schema.
Docusaurus docs feature plugin for generating Markdown documentation from a GraphQL schema.
graphql
package is a peer-dependency, and it should be installed separately.
npm install @graphql-markdown/docusaurus graphql
Add @graphql-markdown/docusaurus
to your site's docusaurus.config.js
plugins option:
module.exports = {
// ...
plugins: ["@graphql-markdown/docusaurus"],
};
The plugin adds a new command graphql-to-doc
to the Docusaurus CLI.
npx docusaurus graphql-to-doc
Command line options are described in the documentation settings page.
See documentation settings page.
See documentation troubleshooting page.
GraphQL-Markdown packages are 100% free and open-source, under the MIT license.
This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
1.19.0 - 2023-06-03
:warning: This release introduces minor breaking changes, see section breaking changes.
:label: Building upon customDirective
released in 1.18.0, we added a new option tag
that allows one to display custom badges (tags) in the documentation pages.
The feature is an extension of the customDirective
by using the already available directive processing. It works the same way as descriptor
, and it also comes with an helper directiveTag
... more details in the documentation.
customDirective: {
beta: {
tag: (directive) => ({
text: directive?.name.toUpperCase(),
classname: "badge--danger",
}),
},
Since tags have now a dedicated handler, the directives declared in customDirective
for descriptor
won't display a badge. A helper helper.directiveTag
is provided for backward compatibility.
Users who want to keep the previous behavior just need to declare tag: helper.directiveTag
for each directive declared.
const { helper } = require("@graphql-markdown/utils");
//---//
auth: {
descriptor: (directive, type) =>
helper.directiveDescriptor(
directive,
type,
"This requires the current user to be in `${requires}` role.",
),
tag: helper.directiveTag,
},
The deprecated "warning badge" has been changed into an admonition for a clearer UI.
Last change is the change of position of the custom directive descriptions that are now after the type description instead of before.
FAQs
Docusaurus plugin for generating Markdown documentation from a GraphQL schema.
The npm package @graphql-markdown/docusaurus receives a total of 1,442 weekly downloads. As such, @graphql-markdown/docusaurus popularity was classified as popular.
We found that @graphql-markdown/docusaurus 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.