Git Product home page Git Product logo

dojo.io's Introduction

dojo.io

Build Status

This repository is the source of the dojo.io website, including the documentation, tutorials, and the blog.

Published to GitHub Pages and Dojo.io.

Quick Start to run the Dojo.io website locally

  1. npm install
  2. npm run build
  3. npm run serve
  4. open http://localhost:8888

Development

To have hexo and the docviewer rebuild when files change:

  1. npm run watch

Adding Content

Writing a Blog

Blogs are built using hexo and are located in site/source/_posts

Adding a static page

Static pages are built from markdown located in site/source. Please see site/source/tutorials for examples of static content.

Writing a Tutorial

Tutorials are located in site/source/tutorials and are similar to static pages. They use the tutorial layout (layout: tutorial) and have code content provided in the demo subdirectory that is archived during the tutorials build process (grunt tutorials).

If the finished directory of the tutorial should be built and tested as part of the CI build, it needs to be added to the list of TUTORIAL values in .travis.yml

API Documentation

API documentation is generated in each package using the intern-dev-api from @theintern/dev. A viewer application in this site loads API information from the package repos and renders it live.

Deployment

This site is built for continuous deployment via Travis-ci. This requires Travis to have write access to this repository so it can automatically deploy to the gh-pages branch.

On a Master Branch Commit:

  1. A change is checked in to the master branch
  2. Travis decrypts the deploy_key.enc file to deploy_key
  3. Travis begins a build by running grunt
  4. The build syncs the origin's gh-pages branch to a temporary directory
  5. Hexo builds against the gh-pages branch
  6. Tutorial files are packaged and added
  7. On master, travis runs grunt publish and pushes changes to gh-pages

On a Non-Master Branch Commit:

The same steps as above are followed except Travis does not decrypt the deploy_key and does not attempt to publish any changes. Automated scripts should not take any action requiring authentication to git or GitHub because credentials will not exist.

Automated Deploy to Production

Travis automatically builds and deploys the master branch to gh-pages on each push.

NOTE: pushing a commit with [skip ci] will disable the Travis build and prevent the site from updating. A maintainer can instruct Travis to manually build latest.

dojo.io's People

Contributors

sitepentorreyrice avatar agubler avatar vansimke avatar dylans avatar devpaul avatar nicknisi avatar maier49 avatar kitsonk avatar itorrey avatar umaar avatar rishson avatar jcfranco avatar smhigley avatar samends avatar tomdye avatar jason0x43 avatar jameslmilner avatar gavinr avatar edhager avatar dannyhellbane avatar dasa avatar schontz avatar jacobroufa avatar matt-gadd avatar pottedmeat avatar bitpshr avatar stdavis avatar scott-jensen avatar rorticus avatar steveoh 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.