We’ve rebuilt Dev.Opera as a static site, powered by Jekyll, Sass and Grunt. In this repository, you find all the source files and content to build the site, make improvements, and submit new articles.
- Install Jekyll, Sass and all needed gems by running
sudo gem install jekyll kramdown stringex sasson the command line. - Download and install Node.js with the default installer options.
- Clone the project by running
git clone [email protected]:operasoftware/devopera.git. - Run
npm installinside thedevoperafolder. - Run
npm install grunt-cli -gto install Grunt globally. - Run
grunt buildto build Dev.Opera inside the_sitefolder.
Please install EditorConfig plugin for your editor to keep code style declared in the .editorconfig file.
To open Dev.Opera locally run grunt, it would take up to 1 minute to:
- Build the site in “limited mode” with only the latest 150 posts.
- Start local server at
http://0.0.0.0:33310address. - Open it in your default browser.
To start developing Dev.Opera run grunt dev, it would take up to 1 minute to:
- Build site in a limited mode with only latest 150 posts.
- Start local server on
http://0.0.0.0:33310address. - Open it in your default browser.
- Launch a
watchtask for all files.
So now every time you change project files, Dev.Opera will be rebuilt and you browser will update. For HTML and MD files it will still take up to 1 minute, for CSS it will be much faster (please request the same fast track for JS or anything else if needed).
To build a complete Dev.Opera, run grunt build: it will take a while to build the full site with all posts included. To deploy (sync build with remote server), run grunt deploy.
- All instructions are for Unix (OS X, Linux, etc.) because Jekyll is not compatible with Windows.
- You may require write access for all commands mentioned above. Type
sudo, space and command if needed. - If you get an error running
grunt dev, try to increase the file number limit with theulimit -n 10000command or use a nightly build of Node.JS 0.11 (could be installed alongside to 0.10 using nvm).