Giter Club home page Giter Club logo

compiler-research.github.io's Introduction

Website setup

Running locally (Windows and Mac)

The site is built with Jekyll, and is easy to run locally if you have Ruby.

If you don't have Ruby version 2.5.0 or higher installed, please see the "Standard Setup" sections below.

Open command prompt and browse to your website's folder. To set up a "bundle" (local virtual environment in Python terms):

bundle install

Next, use bundle exec to run a command in the new environment you just created, such as:

bundle exec jekyll serve

This will incrementally rebuild if there were anything changes in your directory. Using an internet browser, browse to the server address shown in the output, e.g.: http://127.0.0.1:4000.

To stop the server, press Control+C.

Setup for local development

1. Standard setup (Mac)

Visit this page for information about installing Ruby if your current version is too old; the instructions there form the basis for what you see here, and come in variants for all major operating systems. You should have Ruby 2.4+ for Jekyll. Since versions of macOS before Catalina with 2.3 (and Apple is dropping scripting language from macOS in the future), you may want a newer version even on a mac. You can use rbenv to manage multiple ruby versions. On macOS with homebrew, you'll want:

brew install rbenv

You'll need to run:

rbenv init
# Prints out instructions

and follow the instructions for your current shell. After you've installed rbenv on your system, use:

rbenv install 2.7.0

to get a current version of ruby. Then, inside the main iris-hep website directory, run:

rbenv local 2.7.0

This will run the Ruby you just built whenever you enter this directory. You'll want to install bundler too:

gem install bundle

(You may want to add --user-install here if you are not using rbenv. And if you don't have permission to install, and you are using rbenv, this means you forgot to set it up with rbenv init.)

2. Standard setup (Windows)

Jekyll is a Ruby Gem that can be installed on most systems. Please view the official installation instructions for Windows, or follow the below steps.

Ruby Installer

  • Use default options for installation.

  • Run the ridk install step on the last stage of the installation wizard.

Ruby Installer Screenshot 2

  • This is needed for installing gems with native extensions.

  • From the options choose MSYS2 and MINGW development tool chain.

Ruby Installer Screenshot 3

  • On a new command prompt, type the following to enable it:
ridk enable
  • Open a new command prompt window from the start menu, so that changes to the PATH environment variable becomes effective.

  • Open command prompt and browse to your website's folder.

  • Install Jekyll and Bundler using:

gem install jekyll bundler
  • Check if Jekyll has been installed properly:
bundle exec jekyll -v

You may receive an error when checking if Jekyll has not been installed properly. Reboot your system and run jekyll -v again.

3. Docker setup

If you use docker, the following line will build and serve the site locally:

docker run --rm -v "$PWD:/srv/jekyll" -p 4000:4000 -it jekyll/jekyll:3.8 jekyll serve

If you want to enable LiveReload (pages automatically reload when jekyll rebuilds after detecting changes), then use this instead:

docker run --rm -v "$PWD:/srv/jekyll" \
           -p 4000:4000 -p 35729:35729 \
           -it jekyll/jekyll:3.8 \
           jekyll serve --livereload

Guide to Making Changes to the Website

Adding a Project to /projects/ directory on the Website

It is possible to

  • add a new page with a lot of project details (e.g., \_pages\testproject.md) and then add the project excerpt to the projects directory _data\projects.yml, or

  • you can simply add the project excerpt to the projects directory _data\projects.yml if there aren't enough details available for the project.

Next, use the link attribute in the projects.yml file to define the link to the detailed project page (if you created this in the previous step).

The project excerpt should now automatically show up on the '/Projects/' page along with the link to the detailed project page.

To change the layout of the Projects page itself, you can browse to _pages\projects.md and edit the Liquid code as needed.

Please note that the Projects page exists in parallel to the Open Projects page (_pages\open_projects.md), and you should add your project details where it makes more sense.

compiler-research.github.io's People

Contributors

vgvassilev avatar davidlange6 avatar sudo-panda avatar quillpusher avatar grimmmyshini avatar maximusron avatar ioanaif avatar junaire avatar argentite avatar krishna-13-cyber avatar capfredf avatar vaithak avatar sarabellei avatar parth-07 avatar sunho avatar petrozarytskyi avatar smit1603 avatar rohitrathore1 avatar phrygiangates avatar mizvekov avatar simeonehrig avatar purva-chaudhari avatar nirhar avatar abhigyan-ach avatar pavlo-svirin avatar ris-bali avatar saisoma123 avatar tapaswenipathak avatar satacker avatar hahnjo 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.