
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@jobber/docz-tools
Advanced tools
Jobber Docz Tools contains the theme and components to create Jobber flavored documentation. Documentation is powered by Docz and uses Theme UI for styling.
Install the package using npm.
npm install --save @jobber/docz-tools
Next, add the theme to a gatsby-config.js file at the root of your project.
// gatsby-config.js
module.exports = {
plugins: [
"@jobber/docz-tools",
{
resolve: "gatsby-plugin-compile-es6-packages",
options: {
modules: ["@jobber/docz-tools"],
},
},
],
};
Jobber flavored documentation is powered by Docz. However
it also adds a few custom config options added to your doczrc.js to allow
minor customizations to the theme.
The Logo can be added by adding a relative path to the logo image that you would like to use.
// doczrc.js
export default {
...,
themeConfig: {
...,
logo: `/relative/path/to/logo/file.svg`
}
}
The sidebar width can be adjusted.
// doczrc.js
export default {
...,
themeConfig: {
...,
sideBarWidth: 275
}
}
The sidebar offset can be adjusted if you have a wrapping component at the top,
such as a primary navigation bar. By default, it is 0 and represents
pixels / px.
// doczrc.js
export default {
...,
themeConfig: {
...,
sidebarOffset: 100
}
}
The container width can be adjusted. This will adjust the width that the content of the documention is displayed at.
// doczrc.js
export default {
...,
themeConfig: {
...,
containerWidth: 768
}
}
The actions in the top right can be hidden if required by adjusting hasActions
to false. By default it is true.
// doczrc.js
export default {
...,
themeConfig: {
...,
hasActions: false
}
}
The logo within the sidebar can be hidden if required by adjusting hasLogo to
false. By default it is true.
// doczrc.js
export default {
...,
themeConfig: {
...,
hasLogo: false
}
}
The @jobber/docz-tools allows for some custom front matter to be added to your
mdx files.
Adding showDirectoryLink will add a new link to the directory where the mdx
file is located on Github.
showDirectoryLink must be set to a boolen of true.
---
name: Component Name
showDirectoryLink: true
---
@jobber/docz-tools allows you to prioritize items within the sidebar
navigation by adding a (0x) prefix to the name or menu item in the
frontmatter.
In the following example, we will prioritize the Switch item over the Button
item in the menu.
## <!-- Button.mdx -->
name: Button menu: Components/Actions
---
## <!-- Switch.mdx -->
name: (01) Switch menu: Components/Actions
---
The same can be done for menus. In the example below, we are prioritizing the
Layout menu before the Actions menu.
## <!-- Button.mdx -->
name: Button menu: Components/Actions
---
## <!-- Banner.mdx -->
name: Banner menu: Components/(01) Layout
---
FAQs
--- name: Docz Tools menu: Packages route: /packages/docz-tools ---
The npm package @jobber/docz-tools receives a total of 68 weekly downloads. As such, @jobber/docz-tools popularity was classified as not popular.
We found that @jobber/docz-tools demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.