Welcome! This site contains the latest Magento developer documentation for ongoing Magento 2.x releases. For additional information, see our Contribution Guide.
Our goal is to provide the Magento community with comprehensive and quality technical documentation. We believe that to accomplish that goal we need experts from the community to share their knowledge with us and each other. We are thankful to all of our contributors for improving Magento documentation.
You can build this site locally in the following ways:
- Installing the project dependencies locally (Mac, Linux)
- Using a Docker container (Mac, Linux)
- Using a Vagrant virtual machine (Mac, Linux, Windows)
- Build DevDocs in Windows (Windows 7 & 10)
For local builds, you need to install Ruby 2.4 or later.
To check the Ruby version on your environment, run in your terminal:
$ ruby -v
MacOS users
-
Install Homebrew. See the Homebrew site for instructions.
-
Use Homebrew to install the latest stable version of Ruby:
$ brew install ruby
Unix, Windows and other OS users
See the Ruby site for instructions.
Install the Bundler gem, which helps with Ruby dependencies:
$ gem install bundler
Once you have completed preparing your environment, you can build locally and review the site in your browser.
Clone or download the repository. The first time you are at the devdocs
directory, run:
$ bundle install
Once you have completed preparing your environment, you can build locally and review the site in your browser.
rake is a native Ruby tool that helps to automate tasks.
-
Run the rake task that installs all required dependencies and starts the Jekyll server:
$ rake preview
-
Press
Ctrl+C
in the serve terminal to stop the server.
If rake fails on your environment, generate the preview using jekyll.