Skip to content

flowerfine/scaleph-gatsby-theme

Repository files navigation

This Theme is modified from @opensumi/gatsby-theme, thanks for their contribute.

# Scaleph Gatsby Theme for website

✨ Polished Gatsby theme for documentation website.

Features

  • 🔍 Docsearch v3, React 18, Gatsby 4 supported.
  • 🎨 Prerendered static site
  • 🌎 Internationalization support by i18next
  • 📝 Markdown-based documentation and menus
  • 🏗 Unified Theme and Layout
  • 🎲 Easy customized header nav
  • 🧩 Built-in home page components

Develop

yarn
yarn start

Visit https://localhost:8000 to preview.

Add Dependency

cd @opensumi/gatsby-theme
yarn add shallowequal

or

yarn workspace @opensumi/gatsby-theme add shallowequal

Q&A

How to customise layout footer?

// gatsby-browser.js
exports.wrapPageElement = ({ element, props }) => {
  return React.cloneElement(element, {
    ...props,
    ...element.props,
    // https://github.com/react-component/footer#api
    footerProps: {
      bottom: 'xxx',
    },
  });
};

How to embed other markdown document in a markdown document

`markdown:docs/common/data-mapping.zh.md`

docs/common/data-mapping.zh.md is the path relative to the current project. It supports multiple levels of nested.

Related libraries

About

Scaleph Gatsby theme for documentation website.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published