Code Monkey home page Code Monkey logo

Logo CoVprehension

Informative website about the corona virus.

License ยท GitHub issues ยท GitHub contributors
Jekyll site CI ยท Discord

This repository holds the Jekyll sources of the CoVprehension website!

CoVprehension is a collective of researchers trying to explain the current epidemic of COVID-19 simply yet with scientific tools.

You can publicly see tracking data here : https://covprehension.goatcounter.com/

How to contribute to the project

I'm a writer / translator

Please go to the _i18n/ sub-folder where everything's is explained ;)

> Click me <

I'm a dev

I want to work on this website

Read the contributing guidelines ๐Ÿ‘ฉโ€๐Ÿ’ป

I want to work on a NetLogo simulation

Go on this other repository covprehension/proto

Technical part

Structure of the repository

View contents
$ tree
.
โ”œโ”€โ”€ assets/
โ”‚ย ย  โ”œโ”€โ”€ lang/
โ”‚ย ย  |   โ”œโ”€โ”€ <translation files for JS simulations>
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ simu-XX.js -> ../../_i18n/fr/simu-XX.js
โ”‚ย ย  โ”œโ”€โ”€ vendor/ <default resources>
โ”‚ย ย  โ””โ”€โ”€ <custom JS/CSS files>
|
โ”œโ”€โ”€ _i18n/ <== Folder where website is translated
โ”‚ย ย  โ”œโ”€โ”€ <anyLanguageCode>/
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ pages/
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ about.html
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ resources.md
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ simulator.md
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ _posts/
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ YYYY-MM-DD-qXX.md
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ <All your questions>
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ simu-<anyLanguageCode>.js
โ”‚ย ย  โ””โ”€โ”€ <anyLanguageCode>.yml
|
โ”œโ”€โ”€ img/
โ”‚ย ย  โ”œโ”€โ”€ about/
โ”‚ย ย  โ”œโ”€โ”€ post/
โ”‚ย ย  โ””โ”€โ”€ <website images>
โ”‚
โ”œโ”€โ”€ _includes/
โ”‚ย ย  โ””โ”€โ”€ <Global part of website : Header/Footer/etc>
โ”‚
โ”œโ”€โ”€ _layouts/
โ”‚ย ย  โ””โ”€โ”€ <HTML pages template>
โ”‚
โ”œโ”€โ”€ posts/
โ”‚ย ย  โ””โ”€โ”€ <IGNORE ME, I'm a trap ๐Ÿ™Š>
โ”‚
โ”œโ”€โ”€ _pages/
โ”‚ย ย  โ””โ”€โ”€ <Defined layout for translated pages>
โ”‚
โ”œโ”€โ”€ simulations/
โ”‚ย ย  โ”œโ”€โ”€ js/
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ <JS simulation in sub-dir>
โ”‚ย ย  โ””โ”€โ”€ <Web NetLogo export simulations>
โ”‚
โ”œโ”€โ”€ _config.yml
โ”‚
โ””โ”€โ”€ <others uninteresting stuff...>

<plenty> directories, <too many> files

Local installation & Setup

First of all, make sure ruby is intalled on your computer.

  1. Clone the repo git clone https://github.com/covprehension/CoVprehension.git
  2. Move in the folder cd CoVprehension
  3. Install plugins: bundle install
  4. Replace the symlink JS translation files by the real ones rm -f assets/lang/*.js && cp _i18n/*/simu-*.js assets/lang/
  5. Build your site: bundle exec jekyll serve
  6. Connect to your running instance http://127.0.0.1:4000/CoVprehension/

Global configuration of the website

All the global configuration of the site can be found in the file _config.yml which is structured as follow :

View contents
  • General settings
    • title Global title
    • email Global mail
    • description
    • url
    • baseurl root position of the website in the url variable
      • Don't change me
    • include Jekyll collection list
  • Social Profiles (all optionals)
    • twitter_username
    • github_username
    • facebook_username
    • linkedin_username
    • rss_link
    • google_analytics
  • Build settings
    • markdown MarkDown compiler
    • paginate
    • paginate_path how to generate pagination url
    • plugins list of ruby plugins used in the website
  • Multi language website => See https://github.com/kurtsson/jekyll-multiple-languages-plugin/#4-configuration
    • languages list of enabled languages
    • exclude_from_localizations

Bugs and Issues

Have a bug or an issue with this template? Open a new issue here on GitHub!

Made with

Copyright and License

The code of this project is licensed under the LGPL-3.0 License.

The text content in posts is licensed under the CC BY-SA 4.0.

These illustrations in posts are licensed under CC BY-NC-ND 4.0.

CoVprehension's Projects

covprehension icon covprehension

๐Ÿ˜ท Informative website about the corona virus ๐Ÿฆ 

js-simulator icon js-simulator

The code source of the JavaScript simulator with test files

proto icon proto

โš™๏ธ ABM model in dev ... not yet validated ๐Ÿง 

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.