Skip to content

open-life-science/open-life-science.github.io-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OLS

Sharing. Connecting. Empowering

Find all the information about our community and projects at https://open-life-science.github.io.

Welcome!

First and foremost, Welcome! 🎉 Willkommen! 🎊 Bienvenue! 🙏 सुस्वागत (Suswagat)🎈🎈🎈

This document (the README file) is a hub to give you some information about the project. Jump straight to one of the sections below, or just scroll down to find out more.

What are we doing?

We are working to create a mentoring program for individuals interested in becoming ambassadors for Open Science practice, training and education in their communities.

Our outcome is to support early stage researchers and young leaders by sharing Open Science skills, connecting them to others in the community, and empowering them to become ambassadors for Open Science practice, training and education in their communities.

Who are we?

We are currently a team of people who share a passion for Open Research and inclusiveness in Open Science. Please read more on our website.

What do we need?

You! In whatever way you can help.

We need expertise in open-science, training, mentoring, communication. We'd love your feedback along the way, of course.

Get involved

If you think you can help in any of the areas listed above (and we bet you can) or in any of the many areas that we haven't yet thought of (and here we're sure you can), then please check out our contributors' guidelines and our roadmap.

Please note that it's very important to us that we maintain a positive and supportive environment for everyone who wants to participate. When you join us, we ask that you follow our code of conduct in all interactions, both on and offline.

How can I generate the website and contribute using GitPod?

GitPod is an open-source developer platform for remote development. You can use it to generate the website without installing anything on your computer.

  1. Setting up GitPod

    1. Create a fork of the OLS GitHub repository (to do only 1 time)

      1. Go on the GitHub repository: github.com/open-life-science/open-life-science.github.io
      2. Click on the Fork button (top-right corner of the page)
    2. Open your browser and navigate to gitpod.io

    3. Log in with GitHub

    4. Copy the link to your fork of the GTN, e.g. https://github.com/bebatut/open-life-science.github.io

      Gitpod will now configure your environment. This may take some time.

      Once the setup is finished, you should see a page with:

      • On the Left: All the files in the OLS repository.
      • Top: The main window where you can view and edit files.
      • Bottom: Terminal window, where you can type commands (e.g. to build the website preview) and read output and error messages.
  2. Build and preview the OLS website

    1. Type the following command make serve-gitpod in the terminal window (bottom)
    2. Click on the link in the terminal to see the OLS in full-screen: Server address: http://127.0.0.1:4000
  3. Make and view changes

    1. Open and/or create files via the file browser on the left
    2. Make and save the changes in the files
    3. Reload the preview page to view the changes
  4. Saving changes back to GitHub

    1. Option 1: via the terminal
      1. Create a new branch with git checkout
      2. Commit your changes with git add and git commit
      3. Push changes with git push origin
    2. Option 2: via the web interface
      1. Create a new branch
        1. Click on the bottom-left on the branch logo button on the bottom of the page with the current branch (probably "main")
        2. Give your new branch a name (at top of window)
        3. Choose "+ Create new branch..." from the dropdown
      2. Commit changes
        1. Click on the "Source Control" tab button (branch) on the left menu to show changed files.

        2. Click on the "+" icon next to the edited files to stage changes (stage changes button).

        3. Hit the checkmark icon at the top to commit the changes.

        4. Enter a commit message (top of window) - Publish changes.

        5. Click the cloud button at bottom left to publish your changes (publish changes button).

          Changes are now saved to your fork, and you can make a PR via the GitHub interface

How can I generate the website locally?

You need a ruby environment (version >= 2.4). Either you have it installed and you know how to install Bundler and Jekyll and then run Jekyll, or you use (mini-)conda, a package management system that can install all these tools for you. You can install it by following the instructions on this page: https://conda.io/docs/user-guide/install/index.html

In the sequel, we assume you use miniconda.

  1. Open a terminal

  2. Clone this GitHub repository:

    $ git clone https://github.com/open-life-science/open-life-science.github.io.git
    
  3. Navigate to the open-life-science.github.io/ folder with the cd command

  4. Set up the conda environment:

    $ make create-env
    
  5. Install the project's dependencies:

    $ make install
    
  6. Start the website:

    $ make serve
    
  7. Open the website in your favorite browser at: http://127.0.0.1:4000/

Run the link checks

To avoid dead or wrong links, run the link checkers:

$ make check-html

Create a new blog post

To create a new blog post:

  1. Create a file in the folder _posts with a file named following the pattern yyyy-mm-dd-name.md

  2. Add some metadata on the top of the file

    ---
    layout: post
    title: <title of the post>
    author: <github id of the author>
    image: images/yyyy-mm-dd-name.jpg
    ---
    
  3. Add content of the post to the file in Markdown

  4. Add images in images/posts/ directory

Add someone as mentor, expert or organizer

Add someone to the list of people:

  1. Open the _data/people.yaml file
  2. Create a new entry there (using the GitHub id, or firstname-lastname, if no GitHub id) following the alphabetical order
  3. Fill in information using the tags:
    • first-name (mandatory)
    • last-name (mandatory)
    • twitter
    • email
    • website
    • gitter
    • orcid
    • affiliation
    • city
    • country (mandatory)
    • pronouns
    • expertise
    • bio

Add the person to their corresponding list to be visible on the website:

  • If they are a participant for a cohort, add their GitHub id with their project to _data/ols-n-projects.yaml
  • If they are a potential mentor for a cohort, add their GitHub id in the _data/ols-n-metadata.yaml
  • If they are an expert for a cohort, add their GitHub id in the _data/ols-n-metadata.yaml
  • If they are a speaker for a cohort, add their GitHub id with their talk details in _data/ols-n-schedule.yaml

Add many people in a row to _data/people.yaml:

  1. Create a CSV file with at least the following columns (named this way):

    • First name
    • Last name
    • Email
    • Github username
    • Twitter username
    • Website
    • ORCID
    • Affiliation
    • City
    • Country
    • Pronouns
    • Areas of expertise (1 element per line)
    • Bio

    A form like this one can be used to generate such csv.

  2. Get a copy of the CSV file at the root of this folder

  3. Activate the conda environment:

    $ source activate open-life-science-website
    

    Or alternatively, get locally:

    • Python 3.*
    • pyyaml
    • pandas
  4. Run the script which extract information from the CSV file and add them to _data/people.yaml:

    $ python bin/prepare_website_data.py extractpeople \
       -df <path to csv file with participants> OR -du <URL to csv file with participants>
    

Add possible mentors and experts for a cohort

  1. Create a CSV file with at least the following columns (named this way):

    • First name
    • Last name
    • Email
    • Github username
    • Twitter username
    • Website
    • ORCID
    • Affiliation
    • City
    • Country
    • Pronouns
    • Areas of expertise (1 element per line)
    • Bio

    A form like this one can be used to generate such csv.

  2. Activate the conda environment:

    $ source activate open-life-science-website
    

    Or alternatively, get locally:

    • Python 3.*
    • pyyaml
    • pandas
  3. Run the script which extract information from the CSV file and add them to _data/people.yaml:

    $ python bin/prepare_website_data.py addmentorsexperts \
       -c <cohort id> \
       -t <mentors or experts> \
       -df <path to csv file with participants> OR -du <URL to csv file with participants>
    

Add a new organization

  1. Open the _data/organizations.yaml file.
  2. Create a new entry there (using the name in lowercase, with spaces replaced by -) following an alphabetical order.
  3. Fill in information using the tags:
    • name
    • website
    • description
    • country
  4. Add a logo (if possible) named as the entry in images/organizations folder.
  5. Add the path to the logo in _data/organizations.yaml using logo tag.

Add a partner

  1. Make sure the organization is listed in the _data/organizations.yaml file and add it otherwise (see above).
  2. Open the _data/partners.yaml file.
  3. Create a new entry there.
  4. Fill in information using the tags:
    • partner using its short name from the _data/organizations.yaml file.
    • details with details about the partnership.

Add a funding

  1. Make sure the organization is listed in the _data/organizations.yaml file and add it otherwise (see above).
  2. Open the _data/funding.yaml file.
  3. Create a new entry there.
  4. Fill in information using the tags:
    • funder using its short name from the _data/organizations.yaml file
    • amount of funding
    • currency of funding
    • duration
    • date_award
    • purpose
    • proposal with link to the proposal

Update schedule for a cohort

The schedule displayed in a cohort page is automatically generated from a file _data/ols-n-schedule.yaml.

In this file, for each week, it is listed the timeframe and the different calls planned. For each call, several information are given:

  • type: Mentor-Mentee, Cohort, Mentors or Coworking
  • duration in min
  • title
  • date in the format Month Day, Year
  • time in the format '14:00' and for Berlin time
  • calendar-event: link to calendar event
  • agenda: tldr
  • notes: link to notes
  • recording: link to recording
  • content with details of the content written in Markdown
  • before with tasks to do before as a list written in Markdown
  • after with tasks to do after as a list written in Markdown
  • resources: list of useful resources with for each of them:
    • type: slides, document, or external-link
    • title
    • speaker: username in _data/people.yaml, if slides
    • link

Update schedule automatically

  1. Create a spreadsheet or CSV with columns:

    • Week
    • Start Date
    • Start Time
    • End Date
    • Duration
    • Title
    • Type
    • Learning objectives
    • Slides
    • Confirmed speaker
    • Note link
    • Recording
    • Hosts
    • Facilitators
    • Before
    • After
  2. Adapt the script in bin/update_schedule.sh with cohort id and link to CSV export of the spreadsheet

Order experts and possible mentors by areas of expertise

In metadata file for cohort, experts and possible mentors can be ordered by areas of expertise, to be display in the cohort page given these areas.

To order them:

  1. Activate the conda environment:

    $ source activate open-life-science-website
    

    Or alternatively, get locally:

    • Python 3.*
    • pyyaml
    • pandas
  2. Run the script which sort expertise and save information in metadata file:

    $ python bin/prepare_website_data.py sortexpertises -c <cohort id>
    

Add projects

  1. Create a CSV file with for each project the following information

    • Title
    • Mentor 1
    • Authors
    • Project-description
    • Comment regarding review (with rejected if needed)
    • Keywords
  2. Create a CSV file with participant information (similar to the one needed to add new people) and an extra column with project name

  3. Activate the conda environment:

    $ source activate open-life-science-website
    

    Or alternatively, get locally:

    • Python 3.*
    • pyyaml
    • pandas
  4. Run the script which extracts project information from a CSV file and add them in project file:

    $ python bin/prepare_website_data.py addprojects \
       -c <cohort id> \
       -pf <path to csv file with projects> OR -pu <URL to csv file with projects> \
       -df <path to csv file with participants> OR -du <URL to csv file with participants>
    

Add events to Google calendar

  1. Create CSV file with

    • Week
    • Type
    • Optional
    • Subject
    • Start Date
    • Start Time
    • End Date
    • Duration
    • End Time
    • All Day Event
    • Note link
    • Description
  2. Add events to Google calendar.

Create files for a new cohort

  1. Activate the conda environment:

    $ source activate open-life-science-website
    

    Or alternatively, get locally:

    • Python 3.*
    • pyyaml
    • pandas
  2. Run the script which create new cohort files:

    $ python bin/prepare_website_data.py createcohort \
       -c <cohort id> \
    
  3. Update _config.yml file to add new cohort in collection

License

The content of this website are licensed under the Creative Commons Attribution 4.0 International License.

The code behind the infrastructure is licensed under the MIT License

About

A mentoring program for Open Life Science

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • Sass 60.6%
  • HTML 17.1%
  • Python 15.5%
  • SCSS 3.3%
  • JavaScript 1.2%
  • Makefile 1.1%
  • Other 1.2%