A Jekyll theme for Magento documentation sites. Uses NPM to build SCSS and JS files. Includes basic layouts and html includes.
- In your project
Gemfile
, add this:
gem 'devdocs', git: 'https://github.com/magento-devdocs/devdocs-theme.git'
- Then, in your Jekyll
_config.yml
file, add this:
theme: devdocs
- Do a
bundle install
to fetch the theme and install all dependencies.
Do a npm install
and then bundle install
.
Then run npm run watch:all
.
- To work with the theme locally and test how it works with DevDocs or any project that uses the theme, you'll want to specify this theme as local gem:
bundle config local.devdocs /path/to/theme/git/repository
- Now you can build your project locally, and it will look for the latest theme gem in your filesystem instead of GitHub. Just make sure that your project requires the same branch as your local theme branch:
gem 'devdocs', git: 'https://github.com/magento-devdocs/devdocs-theme.git', :branch => "your_branch_name"
- Do a
bundle install
in your project to get the latest theme from local filesystem.
Clone this repository and create a feature branch. Do your work there, and then make a Pull request to a master
branch.