Giter Site home page Giter Site logo

devdocs's Introduction

Magento Developer Documentation

Welcome! This site contains the latest Magento developer documentation for ongoing Magento 2.x releases.

To contribute, please fork the develop branch.

Building this site

You can build this site locally in the following ways:

Build using Jekyll

For local builds, you need to install Bundler, and Ruby version manager.

To prepare your MacOS environment:

  1. Install Homebrew. See the Homebrew site for instructions.

  2. Use Homebrew to install a Ruby version manager.

    $ brew install rbenv ruby-build
    
  3. Add rbenv to bash so that it loads every time you open a terminal.

    $ echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
    
  4. Source your .bash_profile file.

    $ source ~/.bash_profile
    
  5. Install a specific version of Ruby.

    $ rbenv install 2.4.x
    $ rbenv global 2.4.x
    $ ruby -v
    
  6. Install the Bundler gem, which helps with Ruby dependencies.

    $ gem install bundler
    
  7. Run bundle install the first time you are in the devdocs directory or when you need to pick up theme changes.

To build locally:

Once you have completed preparing your environment, you can build locally and review the site in your browser.

  1. Run the serve command.

    $ bundle exec jekyll serve --incremental
    
     Configuration file: /Users/username/Github/devdocs/_config.yml
                 Source: /Users/username/Github/devdocs
            Destination: /Users/username/Github/devdocs/_site
      Incremental build: enabled
           Generating...
                         done in x.x seconds.
      Auto-regeneration: enabled for '/Users/username/Github/devdocs'
         Server address: http://127.0.0.1:4000//
       Server running... press ctrl-c to stop.
    
  2. Use the Server address URL http://127.0.0.1:4000/ in a browser to preview the content.

  3. Press Ctrl+C in the serve terminal to stop the server.

TIP
Leave the serve terminal open and running. Every time you save changes to a file, it automatically regenerates the site so you can test the output immediately. Changing the _config.yml file requires a fresh build. Using the --incremental option limits re-builds to posts and pages that have changed.

Build using Docker

This Docker container contains everything necessary to run Jekyll3 for working with Magento DevDocs.

Build using Vagrant

You can deploy the devdocs site locally using this Vagrant project.


If you have questions, open an issue and ask us. We're looking forward to hearing from you!

devdocs's People

Contributors

dshevtsov avatar jeff-matthews avatar marchenk-adobe avatar difleming avatar jfrontain avatar dmrachkovskyi avatar keharper avatar tdobbs avatar almarchenko avatar magento-team avatar jcalcaben avatar lambc40p avatar rakeshjesadiya avatar hguthrie avatar joni-jones avatar srsutasirisap avatar biharrison avatar buskamuza avatar rafaelstz avatar daowz avatar likemusic avatar yyevgenii avatar hostep avatar jessemaxwell avatar kevinbkozan avatar anupdugar avatar melnikovi avatar kumabotz avatar garystanton avatar mzeis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.