Skip to content

Mobilization/2019.mobilization.pl

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
api
 
 
bin
 
 
doc
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Mobilization 2019 - Website

Hi, in this repository (on master branch) you can find source code of static page generator powered by DocPad for the official website (http://2019.mobilization.pl). The result page is hosted on the gh-pages branch.

"API"

Would you like to integrate your mobile app with our website? Or even create a dedicated app? It's more than welcome! We've prepared some json files you can use to retrieve all data which are being used by the website to make your programs perfectly synchronized!

Links to the files

for Https use raw user content github full path:

As you probably noticed some of the files are empty. If you'd like to start now, please take a look at demo files below. We can guarantee the original files will have exactly the same structure.

How do we know the data has been updated

At some point you'll need to decide if synchronization is needed or not. Also you probably would like to know if the json files has been changed since the last update or not. To solve the issue pretty effectively you can use simple GitHub API call which gives you sha1 checksum for all files in api directory.

curl -i 'https://api.github.com/repos/Mobilization/2019.mobilization.pl/contents/api?ref=gh-pages'
And one more thing you should know about the images

You don't need to download images everytime you sync json files. If a field (i.e. img_url) refers to the same filename you'd already downloaded then you can be sure the image has not been changed. Everytime we update an image its filename is changed as well.

How to install 2019.mobilization.pl locally

Before you start pulling down the repository please ensure you've got Node.js (https://nodejs.org/download/) installed on your computer. The project was tested on Node.js v0.12.4.

Here https://raw.githubusercontent.com/mobilization/2019.mobilization.pl/master/bin/install.sh you can find a simple script to install both src (docpad) & out (html) projects.

You can install this via the command-line with curl.

sh -c "$(curl -fsSL https://raw.githubusercontent.com/mobilization/2019.mobilization.pl/master/bin/install.sh)"

The script will pull the project and put into the following structure:

mobilization.pl/2019.mobilization.pl - for master branch (src project) mobilization.pl/2019.mobilization.pl-gh-pages - for gh-pages branch (out project)

In most of cases you won't need to update 2019.mobilization.pl-gh-pages, docpad will do it for you.

How to run the page locally

cd mobilization.pl/2019.mobilization.pl
./run.sh

How to push changes to gh-pages branch (production)

In mobilization.pl/2019.mobilization.pl/bin you will find few scripts simplifying publishing process. Please run the scripts via symbolic links in mobilization.pl/2019.mobilization.pl.

  • ./clean.sh - Clean up the out folder and sync with remote repository.
  • ./generate.sh - Re-generate the out files.
  • ./publish.sh - Commit the out files and push to remote.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published