[![Gem Version](https://badge.fury.io/rb/elixir-toolkit-theme.svg)](https://badge.fury.io/rb/elixir-toolkit-theme) [![Jekyll site CI](https://github.com/ELIXIR-Belgium/elixir-toolkit-theme/actions/workflows/jekyll.yml/badge.svg)](https://github.com/ELIXIR-Belgium/elixir-toolkit-theme/actions/workflows/jekyll.yml) [![DOI](https://zenodo.org/badge/421495867.svg)](https://zenodo.org/badge/latestdoi/421495867)

ELIXIR toolkit theme

The ELIXIR toolkit theme is a Jekyll theme designed to support easy deployment of documentation websites but also more complex ones that require a central tool table and linking towards ELXIR resources. Its key features: - Easy deployment using GitHub pages - Advanced content search - Create your own look with the many theme variables - Change style using custom classes - Support for a central tools table - Page tagging and listing of those tagged pages - Linking to ELIXIR resources including Bio.tools, FAIRSHARING, FAIR Cookbook, TeSS and DSW - Easy side navigation, top navigation and footer management - Mobile friendly - Create website sections with each section having its own sidebar - Out of the box search engine optimizations including schema.org attributes and many other matadata attributes - Support for Google Analytics and Plausible ## Installation ### via GitHub Pages remote theme (installation free!) The quickest way to use the elixir-toolkit-theme is to use the GitHub pages [remote theme](https://blog.github.com/2017-11-29-use-any-theme-with-github-pages/) feature in your `config.yml` file: ```yaml remote_theme: ELIXIR-Belgium/elixir-toolkit-theme ``` It also allows you to use a specific version of the theme by add `@X.X.X` to make sure your website keeps working iif breaking changes get introduced. ### via RubyGems: Alternatively you can install it as a Ruby Gem (preferred way if you use GitLab). Add this line to your Jekyll site's Gemfile: ```ruby gem "elixir-toolkit-theme" ``` And add this line to your Jekyll site's `_config.yml`: ```yaml theme: elixir-toolkit-theme ``` ## Usage [View the documentation](https://elixir-belgium.github.io/elixir-toolkit-theme/) for usage information (under development). ## Deployment ### Using GitHub pages This theme can be used to deploy the website using GitHub pages. Visit the [GitHub documentation](https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/) to find out more about how to setup GitHub pages. ### Locally using Jekyll 1. If not already present on your machine, install ruby. Note that incompatibility issues may arise with ruby 3.0.0 (released 25.12.20) or newer versions. 1. Install Jekyll If you have never installed or run a Jekyll site locally on your computer, follow these instructions to install Jekyll: * Install Jekyll on MacOS/Ubuntu/Other_Linux/Windows: [https://jekyllrb.com/docs/installation/](https://jekyllrb.com/docs/installation/) 1. Install Bundler and Jekyll ``` gem install jekyll bundler ``` 1. Install dependencies ``` bundle install ``` 1. deploy website ``` bundle exec jekyll serve ``` Additional information can be found at the following link: [https://docs.github.com/en/free-pro-team@latest/github/working-with-github-pages/testing-your-github-pages-site-locally-with-jekyll](https://docs.github.com/en/free-pro-team@latest/github/working-with-github-pages/testing-your-github-pages-site-locally-with-jekyll) ### Using Docker If not already installed on your machine, install Docker. From the root of the `elixir-toolkit-theme` directory, run: ``` docker run -it --rm -p [::1]:4000:4000 -v $PWD:/srv/jekyll jekyll/jekyll:latest /bin/bash -c "chmod a+w /srv/jekyll/Gemfile.lock && chmod 777 /srv/jekyll && bundle install && bundle exec jekyll serve --host 0.0.0.0" ``` This will start the docker container and serve the website locally. Make sure the `.\_site` is not yet created to avoid permission errors. ## This theme is known to be used in - [RDMkit](https://rdmkit.elixir-europe.org/) - [WorkflowHub project](https://about.workflowhub.eu/) - [RDMGuide](https://rdm.elixir-belgium.org/) - [Infectious Diseases Toolkit](https://www.infectious-diseases-toolkit.org/) - [Applied Bioinformatics and Biostatistics intranet page](https://intranet.psb.ugent.be/abb/) - [FAIRDOM](https://fair-dom.org/) - [Australian BioCommons How-to-Guides](https://australianbiocommons.github.io/how-to-guides/) ## Used packages This theme would not be possible without following open source projects: - [Bootstrap5](https://github.com/twbs/bootstrap) - As main CSS framework - [DataTables](https://github.com/DataTables/DataTablesSrc) - To generate tables that are sortable, searchable and contain pagination - [AnchorJS](https://github.com/bryanbraun/anchorjs) - Adds deep anchor links to the headings - [lunr.js](https://github.com/olivernn/lunr.js) - Main tool behind the search bar enabling content search - [jQuery](https://github.com/jquery/jquery) - A fast, small, and feature-rich JavaScript library for easy scripting - [jekyll-table-of-contents](https://github.com/ghiculescu/jekyll-table-of-contents) - Lightweight JS script to render the table of contents - [jQuery Navgoco Menus](https://github.com/tefra/navgoco) - Multi-level slide navigation with accordion effect - [Font-Awesome](https://github.com/FortAwesome/Font-Awesome) - The famous icon library - [flag-icons](https://github.com/lipis/flag-icons) - A curated collection of all country flags in SVG + css integration ## Attribution If you like our work, you can add following badge to the readme of your project: ``` [![theme badge](https://img.shields.io/badge/ELIXIR%20toolkit%20theme-jekyll-blue?color=0d6efd)](https://github.com/ELIXIR-Belgium/elixir-toolkit-theme) ``` [![theme badge](https://img.shields.io/badge/ELIXIR%20toolkit%20theme-jekyll-blue?color=0d6efd)](https://github.com/ELIXIR-Belgium/elixir-toolkit-theme) ## License The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).