Sharing. Connecting. Empowering
Find all the information about our community and projects at https://open-life-science.github.io.
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.
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.
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.
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.
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.
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.
GitHub Codespaces is a cloud development environment integrated with GitHub. You can use it to generate the website without installing anything on your computer.
-
Setting up a Codespace
-
Create a fork of the OLS GitHub repository (to do only once)
- Go to the GitHub repository: github.com/open-life-science/open-life-science.github.io
- Click on the Fork button (top-right corner of the page)
If you already have a fork, make sure to sync it first: go to your fork on GitHub and click "Sync fork" to get the latest changes from the main repository.
-
Open your fork on GitHub
-
Click the green "Code" button, then select the "Codespaces" tab
-
Click "Create codespace on main" (or your preferred branch)
GitHub will now configure your working space. This may take some time.
Once the setup is finished, you should see a VS Code-like interface 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
-
-
Build and preview the OLS website
- Set up the conda environment:
make create-env - Install the project's dependencies:
make install-codespaces - Start the website:
make serve-codespaces - A popup will appear offering to open the preview in your browser. Click "Open in Browser" (Or click on the "Ports" tab and open the forwarded port 4000)
- Set up the conda environment:
-
Make and view changes
- Open and/or create files via the file browser on the left
- Make and save the changes in the files
- Reload the preview page to view the changes
-
Saving changes back to GitHub
-
Option 1: via the terminal
- Create a new branch with
git checkout -b your-branch-nameorgit switch -c your-branch-name - Commit your changes with
git add .andgit commit -m "Your message" - Push changes with
git push origin your-branch-name
- Create a new branch with
-
Option 2: via the web interface
-
Create a new branch
- Click on the branch name at the bottom-left of the window
- Choose "+ Create new branch..." from the dropdown
- Give your new branch a name (at top of window)
-
Commit changes
- Click on the "Source Control" tab (branch icon) on the left menu to show changed files
- Click on the "+" icon next to the edited files to stage changes
- Enter a commit message in the text box at the top
- Click the checkmark icon to commit the changes
- Click "Publish Branch" to push your changes
Changes are now saved to your fork, and you can make a PR via the GitHub interface
-
-
Note: By default, Codespaces are automatically deleted after 30 days of inactivity. To prevent deletion, simply open the codespace again to reset the timer.
You need a ruby environment (version >= 3.0; last tested on 3.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
Windows users: The setup commands use bash scripts and Unix tools like Make. We suggest you to use WSL (Windows Subsystem for Linux) to run the commands below. Once WSL is installed, clone the repository inside the WSL filesystem (e.g., ~/open-life-science.github.io) for best performance.
In the sequel, we assume you use miniconda.
-
Open a terminal
-
Clone this GitHub repository:
$ git clone https://github.com/open-life-science/open-life-science.github.io.git -
Navigate to the
open-life-science.github.io/folder with thecdcommand -
Set up the conda environment:
$ make create-env -
Install the project's dependencies:
$ make install -
Start the website:
$ make serve -
Open the website in your favorite browser at: http://127.0.0.1:4000/
To avoid dead or wrong links, run the link checkers:
$ make check-html
Our knowledge about our different programs, our community, etc is managed via this repository, CiviCRM, and documents stored in Google Drive. It is then added to the website as explained in our Knowledge Management System documentation
This repository uses GitHub Actions to generate a preview deployment of pull requests from branches in this repository.
This allows contributors to see changes live before merging them into the main branch.
- When a pull request is created against
main, the GitHub Actions workflow (.github/workflows/deploy-preview.yml) runs automatically. - The workflow:
- Checks out the repository code.
- Sets up Ruby and installs dependencies.
- Builds the Jekyll site.
- Deploys the built site to a separate repository (
ols-site-preview) on thegh-pagesbranch. - Comments on the pull request with a preview link in the format:
π A preview of this PR is available at: https://we-are-ols.org/ols-site-preview
- Contributors can visit this link to view the changes live.
- Allows easy previewing of pull request changes without merging.
- Uses GitHub Pages for hosting, avoiding the need for third-party services.
- Automates the process via GitHub Actions to ensure consistency.
- The preview deploys to
ols-site-preview, keeping the main repo clean.
- The preview is only available while the PR is open. Once merged or closed, the preview will be removed.
- Ensure that the
PR_PREVIEW_TOKENsecret is correctly set up in the repository settings for authentication.
This workflow uses a Personal Access Token (PAT) (PR_PREVIEW_TOKEN) to deploy previews.
Due to GitHub security restrictions, contributors who are not part of the Open Life Science organisation may not have their PR previews generated automatically.
- PRs from organisation members working on branches in this repository will automatically receive a preview link.
- PRs from forks (even from organisation members) will not generate previews automatically.
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