Code Monkey home page Code Monkey logo

mapit.poplus.org's Introduction

mapit.poplus.org

The promotional site for the Poplus component, MapIt. Compiled using Jekyll and hosted by Github at http://mapit.poplus.org

Local development

The MapIt site inherits almost all of its styling from the shared poplus-theme submodule. You should not edit the files inside the submodule directory (/theme) unless you want those changes to be shared with all other Poplus component sites.

Styling changes specific to the MapIt site should be made in assets/sass/_mapit-styles.scss.

Compile the Sass files using (docs):

sass --watch assets/sass:css

Running a local web server

You can preview your changes without pushing to Github by running a local Jekyll web server.

First, install Jekyll, as per the Jekyll docs, then go into the project folder and start a local server:

gem install jekyll
cd mapit.poplus.org
jekyll serve --watch --baseurl ''

The --baseurl option is part of an elegant hack to replicate the Github Pages hosting structure locally.

As long as the server is running, your site will be available at http://0.0.0.0:4000. Local changes will be reflected automatically, thanks to the --watch flag.

Remember, when you’re editing links or paths in the HTML, to use the {{ site.baseurl }} template tag for internal links. Take a look in _includes/html-head.html for an example.

Deploying changes

The site is hosted via Github Pages. To ‘deploy’ your changes from the master branch, merge them into the gh-pages branch:

git checkout gh-pages
git merge master
git push origin gh-pages

Your changes will then be visible at http://mapit.poplus.org

Remember to switch back into the master branch (or a feature branch) when continuing to make changes after deployment!

git checkout master

mapit.poplus.org's People

Contributors

chrismytton avatar dracos avatar jacksonj04 avatar mhl avatar mlandauer avatar wrightmartin avatar zarino avatar

Watchers

 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.