
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
gatsby-theme-documentation
Advanced tools
A minimalist [Gatsby Theme](https://gatsbyjs.org/docs/themes) for documentation sites built with [MDX](https://mdxjs.com) and [Theme UI](https://theme-ui.com).
A minimalist Gatsby Theme for documentation sites built with MDX and Theme UI.
Get up and running in seconds with a beautiful docs site so you can do what's more important: write docs.
yarn add gatsby-theme-documentation
Name | Command |
---|---|
Base | gatsby new johno/gatsby-starter-documentation |
Dark | gatsby new johno/gatsby-starter-documentation-dark |
Tomato | gatsby new johno/gatsby-starter-documentation-tomato |
// gatsby-config.js
module.exports = {
plugins: [
'gatsby-theme-documentation'
]
}
gatsby-theme-documentation
uses a sidebar.mdx
file to populate the navigation.
In order to customize it you can shadow it by creating a file at
src/gatsby-theme-documentation/sidebar.mdx
.
sidebar.mdx
- [Introduction](/introduction/)
- [Getting Started](/getting-started/)
- [GitHub](https://github.com/johno/gatsby-theme-documentation)
Similarly to sidebar customization, you can also change the header content by
writing MDX. You can shadow the default header by creating a file at
src/gatsby-theme-documentation/header.mdx
header.mdx
# 
- [GitHub](https://github.com/johno/gatsby-theme-documentation)
- [Twitter](https://twitter.com/4lpine)
You can add shortcodes to your docs site which can be used throughout
your docs pages by extending the components passed to MDXProvider. You
can do this by using component shadowing and creating the following file
in the root of your project: src/gatsby-theme-documentation/components.js
.
components.js
import baseComponents from 'gatsby-theme-documentation/src/components'
import MyCustomH1 from '../components/my-custom-h1'
export default {
...baseComponents,
h1: MyCustomH1
}
In order to get documents rendered in directories on GitHub, it's common
to specify a readme.md
similarly to the index.html
on normal websites.
Since this theme is meant to work seamlessly with docs directories on GitHub,
file/path/readme.md
will be automatically turned into /file/path/index.html
in the built site. Links will also be redirected to support the new url scheme.
This theme creates a Docs
type which can be queried as
an individual document or a collection. This data can be
used to create additional pages, create summaries, etc.
{
docs(slug: {eq: "/some-page"}) {
slug
body
}
}
{
allDocs {
slug
}
}
FAQs
A minimalist [Gatsby Theme](https://gatsbyjs.org/docs/themes) for documentation sites built with [MDX](https://mdxjs.com) and [Theme UI](https://theme-ui.com).
The npm package gatsby-theme-documentation receives a total of 0 weekly downloads. As such, gatsby-theme-documentation popularity was classified as not popular.
We found that gatsby-theme-documentation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Β It has 2 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.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnamβs Telegram ban.