Skip to content

Tomiiwa/ifood-docusaurus-theme

 
 

Repository files navigation

Docusaurus

iFood Docusaurus Theme

npm prettier

iFood's official Docusaurus theme

About

This project was created to provide a consistent experience trought iFood project's documentations using Docusaurus. It relies in Swizzling feature of Docusaurus, which allows deeper site customizations. Swizzling permits to swap a theme component with our implementation. Thanks to this feature and all customization given to us by the tool, we could easily create this theme.

Note: It's currently unstable due the not full support to themes from Docusaurus. If there's any problem with the usage, please open an issue.

Preview

Docusaurus

Getting started

Required:

  1. Install docusaurus

Due the unstable version of Docusaurus, we currently recomend use the version 2.0.0-beta.9. We don't guarantee that the theme will work properly in other versions.

The Docusaurus theme must be the classic in order to the customization work properly.

npx [email protected] [project-name] classic
  1. Install the package
npm i @ifood/docusaurus-theme
  1. Push the theme to the themes array in docusaurus.config.js
...
projectName: 'docusaurus', // Usually your repo name.
themes: [
    '@ifood/docusaurus-theme'
],
presets: [
...

Code of Conduct

iFood has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing

Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to the project.

Examples

Example folder here.

About

Docusaurus theme for all iFood open source projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 51.7%
  • JavaScript 24.3%
  • CSS 24.0%