Coder Social home page Coder Social logo

constmoon / opendataday Goto Github PK

View Code? Open in Web Editor NEW

This project forked from okfn/opendataday

0.0 1.0 0.0 11.29 MB

Open Data Day website

Home Page: http://opendataday.org/

License: Creative Commons Zero v1.0 Universal

JavaScript 15.98% HTML 42.07% Makefile 0.36% SCSS 28.57% Python 13.01%

opendataday's Introduction

opendataday

Build & Deploy to GH Pages

Open Data Day is a gathering of citizens in cities around the world to write applications, liberate data, create visualizations and publish analyses using open public data to show support for and encourage the adoption of open data policies by the world's local, regional and national governments.

You're invited. Again. The next Open Data Day will take place on Saturday 6 March 2021.

Check http://opendataday.org for public website.

Editing / contributing

  • This site is built with Lektor.
  • Install dependencies: make install
  • Start dev server: make serve
  • grunt will watch for changes to your SCSS files, and also icons (see svgstore).
  • lektor deploy will deploy to the gh-pages branch, putting changes live, if you have deploy permissions.

Translations

To translate the site we need to duplicate the contents.lr file, and save with the language code in the file name, like contents+de.lr.

We also need to add translations to:

If we are adding new language to the site we also need to:

Updating the Site

Events are populated using a very lightweight import script which:

  • Imports data from a google sheet
  • Does some cleaning and checks on it
  • Writes it out to a JSON file
  • Commits it to the repo
  • Builds and deploys the site

This is run in a github action with a workflow_dispatch trigger, which allows our content manager to maintain the events in a spreadsheet update the site via a button in github.

screenshot

There are three bits of setup we need to do each year:

  • 1. Create a new import job:
  • 2. Update the map:
  • 3. Create a new events page:
    • Create ./content/events/202x/contents.lr based on a previous year's file
    • Fill in the fields
    • Create a stub ./content/events/202x/contents.<lang>.lr for each supported alternate language
    • It is not necessary to manually create the ./content/events/202x/reports dir or edit any content under it. This will be automatically generated by the import job.
    • Add the new 202x events page to the menu:
      • Add /events/202x to the list of events pages.
      • Update the 'Search events' link to the current year
      • Repeat for each supported alternate language

Previous version

The previous version of the site has been moved to the v1 branch.

opendataday's People

Contributors

aelcenganda avatar amercader avatar augusto-herrmann avatar bact avatar chris48s avatar clkao avatar danfowler avatar dependabot[bot] avatar givemetarte avatar hcorinna avatar jjalcolea avatar kant avatar loleg avatar lwinfree avatar mandyr avatar morchickit avatar namkyu9395 avatar nikeshbalami avatar nvitucci avatar nyampire avatar pdelboca avatar pwalsh avatar roll avatar sadless74 avatar shubhamghimire avatar smth avatar supaplextw avatar tlacoyodefrijol avatar tuukka avatar typingmonk avatar

Watchers

 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.