Giter Site home page Giter Site logo

designmynight / designmynight-developers Goto Github PK

View Code? Open in Web Editor NEW
2.0 6.0 3.0 22.98 MB

DesignMyNight Third Party Documentation

Home Page: http://developers.designmynight.com

JavaScript 3.76% CSS 24.60% HTML 68.33% Makefile 0.20% Dockerfile 2.73% SCSS 0.38%
other

designmynight-developers's Introduction

DesignMyNight Developer Documentation

Build Status

Contributing

The documentation is compiled from Markdown to HTML using Hugo.

Running Locally

To build and use the documentation locally, you will need the following:

  • Git
  • Docker (>= v1.10.0)

First clone the repository

$ git clone https://github.com/designmynight/designmynight-developers

Now, launch the Docker container.

$ docker-compose up

Go to http://localhost:1313 to see the documentation. Live reloading is enabled, so any changes will appear as soon as you save a file.

If you just want to build the docs and assets without serving them, you can use the make file:

$ make

The compiled documentations and assets will be outputted to the /dist directory.

dist/ is .gitignore'd, so you won't be able to manually deploy by mistake.

What is make doing?

docker-compose run hugo hugo

Runs the hugo container, and specifies that the hugo command should be run (instead of hugo server). This builds the docs and outputs them to /dist.

docker-compose run assets npm run build

Runs the assets container which will install javascript dependencies and run gulp build task. Assets will be outputted inside the /dist directory.

Deployment

To deploy your changes, merge them into the master branch.

When changes are merged to master, Travis will run the deploy part of the .travis.yml config file. This will:

  • Clone the repository and checkout the master branch
  • Run make
  • Remove the .gitignore from /dist (so that we can commit the contents)
  • Creates a CNAME file using the FQDN specified in the Travis config
  • Commits the contents of /dist into the gh-pages branch*

* Using the gh-pages branch means that Travis will never commit to master, so we don't have to worry about conflicts or overwritten data.

Once built, your changes will be live at http://developers.designmynight.com

designmynight-developers's People

Contributors

alasdairmackenzie avatar alexwybraniec avatar casi-tomuta avatar chrisdmn avatar danjohnson95 avatar eddmn avatar jmosul avatar lukeburdettdmn avatar meldmn avatar robbytaylor avatar samc05 avatar seanmcn avatar traviscibot avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.