Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
graphdoc-plugin-erase
Advanced tools
GraphQL schema HTML documentation generation, erasing unwanted types using graphdoc
1 . Add dependencies:
package.json
:
"devDependencies": {
"@2fd/graphdoc": "2.4.0",
"graphdoc-plugin-erase": "1.1.0",
2 . If default options are not suitable, then Configure graphdoc-plugin-erase
:
package.json
:
{
"graphdoc-plugin-erase": {
"eraseByNameRegex": "\\w*No",
"eraseByDescriptionRegex": "@RemoveFromDocumentation",
"eraseByKindRegex": "(?:UNION|SCALAR)"
}
}
3 Use graphdoc-plugin-erase
:
package.json
:
"scripts": {
"doc": "graphdoc -p graphdoc/../../graphdoc-plugin-erase -p graphdoc/plugins/default -s ./schema.graphql -o ./build/documentation"
}
or if using graphdoc-plugin-flexible
instead of graphdoc default plugins
"scripts": {
"doc": "graphdoc -p graphdoc/../../graphdoc-plugin-erase -p graphdoc/../../graphdoc-plugin-flexible -s ./schema.graphql -o ./build/documentation"
}
graphdoc/../../
this is required to get external plugins working ingraphdoc
.
graphdoc-plugin-erase
provides a way to use graphdoc
and remove some types that are not required in the documentation, e.g. __Directive
, __EnumValue
, __DirectiveLocation
, etc.
package.json
:
(default values)
{
"graphdoc-plugin-erase": {
"eraseByNameRegex": "^__",
"eraseByDescriptionRegex": "^$",
"eraseByKindRegex": "^$"
}
}
eraseByNameRegex
: Regular Expression to be used to remove types, based on name
.eraseByDescriptionRegex
: Regular Expression to be used to remove types, based on description
.eraseByKindRegex
: Regular Expression to be used to remove types, based on kind
.
graphdoc-plugin-erase
plugin should be add before the plugins we want to have filtered types.
graphdoc can work with older versions of GraphQL (description syntax: #), and new versions (description syntax: """), How to configure graphdoc.
CHANGELOG
: contains the information about changes in each version, chronologically ordered (Keep a Changelog).
Don't forget:
At life:
At work:
1.1.0 - June 2021
eraseByDescriptionRegex
to allow removing specific types from documentation, based on description
.FAQs
GraphQL schema HTML documentation generation, erasing unwanted types using graphdoc
The npm package graphdoc-plugin-erase receives a total of 0 weekly downloads. As such, graphdoc-plugin-erase popularity was classified as not popular.
We found that graphdoc-plugin-erase demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.