Giter Site home page Giter Site logo

jrl-umi3218 / jrl-umi3218.github.com Goto Github PK

View Code? Open in Web Editor NEW
7.0 46.0 39.0 161.08 MB

JRL webpage

Home Page: http://jrl-umi3218.github.io/

License: Apache License 2.0

HTML 13.68% CSS 4.69% JavaScript 3.55% Ruby 0.01% Dockerfile 0.01% TeX 73.84% SCSS 4.21%

jrl-umi3218.github.com's Introduction

JRL website

Build Status

Providing information for the website

The website relies on yaml data to generate most of its content. Most of the time this all you will need to change to update the website. In this section we describe the data expected by the website for each data types.

Members

Data about members is stored in /_data/members.yml. If you do not already have an entry, feel free to add yours!

Field Description Required
id A unique user id, all lower-case is prefered
given Given name(s)
family Family name
name-jp Japanese name
role One of: director/deputy-director/permanent/adjunct/engineer/admin/postdoc/phd/master/undergraduate/non-degree/alumni-star/alumni
from Start date of the role in ISO-8601 format
past-roles past roles and periods
nationality Lower-case ISO 3166-1 alpha 2 code of the member's nationality
nationality2 Lower-case ISO 3166-1 alpha 2 code of the member's nationality
nationality3 Lower-case ISO 3166-1 alpha 2 code of the member's nationality
linkedin Link to the member's linkedin profile
website Link to the member's personal website
scholar Link to the member's google scholar prefix
github Link to the member's github profile
bio The member's bio (see 1)
rawbio The member's bio (raw HTML)
research A list of reseach interests (HTML)
selected_publications A subset of publications-id
videos A list of video entries (see Video entry)

Note 1: Biography given through bio will start with a title Bio and firstname lastname (in bold). rawbio is included as is.

Optional asset

If the user's id is jrlmember, the site expects to find a picture of the member at the following location: /en/assets/members/jrlmember.jpg. Otherwise it will use an anonymous picture.

The image should be 150x200 for the sake of the website's layout.

Note

While the linkedin, website, scholar and github are all optionals it is mandatory to provide at least 1 to prevent a break of the members' page layout.

Publications

Publications should not be entered by hand: the publication file is generated automatically from here (private repository)

Field Description Required
id A unique publication id, typically firstauthor:journal:year
year The publication's year
title The publication's title
booktitle The publication's conference or book name
authors The publication's list of authors, if the authors is part of the JRL members' database then you should use his/her id otherwise provide given and family entries
bib Link to a bib file
pdf Link to a pdf file (or any link that could link to the pdf, e.g. HAL or ieeexplore)
projects List of related projects' ids

Projects

Field Description Required
id A unique project id
title Project title (typically the acronym e.g. VERE)
longtitle A more descriptive title (typically the acronym significance e.g Virtual Embodiment and Robotics Re-Embodiment)
year-start Starting year
year-end Ending year
active true for active projects, false otherwise
url Website of the project
partners A list of the projects' partner id
description Description of the project (HTML)
videos A list of video entries (see Video entry)
Mandatory asset

For a project whose id is jrlproject, a logo is expected at /en/assets/projects/jrlproject.png.

The image resolution should be 700x450.

Note

The active property is very important to properly showcase your project on the website's front page.

If the project active property is set to true:

  • the project will appear on the front-page
  • the project will be directly listed in the projects menu

If the project active property is set to false:

  • the project will only appear in the Past projects page

Partners

Field Description Required
id A unique partner id
logo A link to the partner's logo (for the sake of the website's layout, this logo should be a in square image)
name The full name of the partner
shortname An abbreviated name
website A link to the partner's website

Video entry

Field Description Required
title Video title
url Video url (youtube-only)
img Image used for the vignette (http://i1.ytimg.com/vi/[YOURVIDEOHASH]/mqdefault.jpg can be used)

Creating a new page

Normally, providing the additional information is enough to display it on the website. An additional step is required for two operations:

  1. Create a member's page
  2. Create a project's page

Create a member page

In the following example, the user id is jrlmember.

  • Create a new page named member-jrlmember.html in en/members/
  • Put the following content
---
layout: default
---
{% include member_full.html id="jrlmember" %}
  • (optional) Add pictures to the carousel by puting pictures in the en/assets/members/jrlmember/ folder (note: the picture wil appear in their alphabetical order)

The page will display:

  • A carousel including the member's picture and all pictures added in step 3
  • The content of the bio entry
  • A video gallery corresponding to the videos entry
  • Either the full list of publications or a list of selected publications and the full (hidden by default) list of publications.

Create a project page

In the following example, the project id is jrlproject.

  • Create a new page named project-jrlproject.html in /en/projects/
  • Put the following content
---
layout: default
---
{% include project.html id="jrl-project" %}
  • (optional) Add pictures to the carousel by putting pictures in the en/assets/projects/jrlproject/ folder (note: the picture will appear in their alphabetical order)

The page will display:

  • A carousel including ll pictures added in step 3 or the project logo if no pictures were added
  • The content of the description entry
  • A video gallery corresponding to the videos entry
  • The full list of publications related to the project
  • A list of partners in the project

Testing locally

In order to test your modifications locally before pushing to GitHub, install jekyll according to the instructions in https://jekyllrb.com/docs/installation/, and run the following command at the root of the project folder:

$ bundle exec jekyll server --safe --trace

Note on Ubuntu 18.04 and earlier, you will need probably to uninstall the Jekyll version installed by apt.
Note If you're getting the error ERROR /favicon.ico not found, remove the --safe.

You will get something like:

Configuration file: /path/to/jrl-umi3218.github.com/_config.yml
           Source:  /path/to/jrl-umi3218.github.com
       Destination: /path/to/jrl-umi3218.github.com/_site
      Generating...
                    done.
Configuration file: /path/to/jrl-umi3218.github.com/_config.yml
    Server address: http://0.0.0.0:4000/
  Server running... press ctrl-c to stop

Then simply type the server address in your browser (http://0.0.0.0:4000/ here).

With Docker

  1. Install Docker on your system
  2. Create the image, e.g. docker build -t jekyll
  3. Serve docker run --rm -p 4000:4000 -v $(pwd):/site jekyll serve --trace -H 0.0.0.0

You can now browse the website in your browser at http://localhost:4000

Deploy

To deploy to AIST server, first build the site with baseurl to /jrl-22022:

bundle exec jekyll build -b /jrl-22022

Then upload the folder _site/jp and the folder _site/en using FTP over Explicit SSL/TLS

Jekyll theme

We use the startbootstrap-modern-business.

jrl-umi3218.github.com's People

Contributors

aescande avatar antoineandre avatar arnauddmt avatar bchretien avatar caillotantoine avatar dependabot[bot] avatar dwaaap avatar eiichi avatar evagoichon avatar fkanehiro avatar g-ganesh avatar gergondet avatar glorthioir avatar guicarmis avatar haudren avatar kayusawa avatar kheddar avatar mariries avatar mehdi-benallegue avatar mmurooka avatar noeamiot avatar orikuma avatar rafaelxero avatar robot-yang avatar rohanpsingh avatar soucail avatar stanislas-brossette avatar tsurumasato avatar yiliqin avatar yumeko-imamura avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jrl-umi3218.github.com's Issues

Jekyll on Windows 10 : `require': cannot load such file -- webrick (LoadError)

I am trying to test the website locally. The first problem that I saw was

`require': cannot load such file -- webrick (LoadError)`

This can be solved using

 bundle add webrick

according to jekyll/jekyll#8523

After that, I had the same issue as #51 (error message favicon.ico not found on local test) and the fix (deleting the --safe option from the command line) removed the error message and the site is visible (after a few trials strangely enough)

how to add an ongoing project?

When I follow instructions in Readme.md and try to add an ongoing project, it appears as a past project.
How can I add an ongoing project?

Fix htmlproofer >= 3.0 issue

On travis, builds with html-proofer >= 3.0 are currently broken. I have not been able to reproduce the issue locally and I lack the ruby ecosystem's knowledge to understand and fix this issue on travis.

Therefore, I have forced the version to be < 3.0 for CI on the master branch. I've setup a CI branch that uses the latest html-proofer version. We should check on it once in a while to see if this build. If someone has the time to figure out this issue, feel free to toy with this branch...

Style is not entirely responsive (On Firefox)

Although the front page and publications pages looks fine on a half-screen, most pages that start with a photo, i.e. members, projects, and individual member pages stretch the screen depending on the size of the photo.

This is probably because the columns are set to 100% width (col-md-6 col-middle), even is there is more than one.

Screenshot with problem:
buggy_responsive

Better:
better_responsive

Alhtough I don't think responsive is a big goal for the website, it could be nice to keep usable on small viewports. To go a bit further, the title, breadcrumbs, and publications table should probably span both columns. To go even deeper, we could switch dynamically the number of columns depending on the width of the device.

Joris papers

Need to upload Joris's papers (pre-IEEE versions) on HAL or other in order to put the links to the pdf and bib in the website.

favicon.ico not found on local test

When testing locally the website, a warning occurs when running the recommended command "bundle exec jekyll server --safe --trace":
/home/guillaume/gems/gems/pathutil-0.16.2/lib/pathutil.rb:502: warning: Using the last argument as keyword parameters is deprecated

And then, when loading the website in a browser the following appears in the shell:
[2021-12-09 18:02:57] ERROR `/favicon.ico' not found

No webpage appears.

By removing the --safe argument, no warning, no error happens and the website can be tested.

I am using Xubuntu 20.04 with a fresh install of the tools recommended in the readme of the website.

fails to run jekyll locally

I could run jekyll locally until 4187d6d but it fails with the following error message since 332d676.

jekyll server --safe --trace
Configuration file: /home/jenkinshrg/src/jrl-umi3218.github.com/_config.yml
       Deprecation: The 'plugins' configurationoption has been renamed to 'plugins_dir'. Please update your config file accordingly.
            Source: /home/jenkinshrg/src/jrl-umi3218.github.com
       Destination: /home/jenkinshrg/src/jrl-umi3218.github.com/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
  Liquid Exception: Liquid syntax error (line 84): Tag '{%- if page.title -%}' was not properly terminated with regexp: /\%\}/ in _layouts/default.html
Traceback (most recent call last):
	24: from /usr/bin/jekyll:11:in `<main>'
	23: from /usr/lib/ruby/vendor_ruby/mercenary.rb:19:in `program'
	22: from /usr/lib/ruby/vendor_ruby/mercenary/program.rb:42:in `go'
	21: from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in `execute'
	20: from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in `each'
	19: from /usr/lib/ruby/vendor_ruby/mercenary/command.rb:220:in `block in execute'
	18: from /usr/lib/ruby/vendor_ruby/jekyll/commands/serve.rb:34:in `block (2 levels) in init_with_program'
	17: from /usr/lib/ruby/vendor_ruby/jekyll/commands/build.rb:33:in `process'
	16: from /usr/lib/ruby/vendor_ruby/jekyll/commands/build.rb:60:in `build'
	15: from /usr/lib/ruby/vendor_ruby/jekyll/command.rb:26:in `process_site'
	14: from /usr/lib/ruby/vendor_ruby/jekyll/site.rb:59:in `process'
	13: from /usr/lib/ruby/vendor_ruby/jekyll/site.rb:177:in `render'
	12: from /usr/lib/ruby/vendor_ruby/jekyll/site.rb:177:in `each'
	11: from /usr/lib/ruby/vendor_ruby/jekyll/site.rb:179:in `block in render'
	10: from /usr/lib/ruby/vendor_ruby/jekyll/renderer.rb:70:in `run'
	 9: from /usr/lib/ruby/vendor_ruby/jekyll/renderer.rb:146:in `place_in_layouts'
	 8: from /usr/lib/ruby/vendor_ruby/jekyll/renderer.rb:106:in `render_liquid'
	 7: from /usr/lib/ruby/vendor_ruby/jekyll/liquid_renderer/file.rb:10:in `parse'
	 6: from /usr/lib/ruby/vendor_ruby/jekyll/liquid_renderer/file.rb:43:in `measure_time'
	 5: from /usr/lib/ruby/vendor_ruby/jekyll/liquid_renderer/file.rb:11:in `block in parse'
	 4: from /usr/lib/ruby/vendor_ruby/liquid/template.rb:108:in `parse'
	 3: from /usr/lib/ruby/vendor_ruby/liquid/template.rb:122:in `parse'
	 2: from /usr/lib/ruby/vendor_ruby/liquid/document.rb:5:in `parse'
	 1: from /usr/lib/ruby/vendor_ruby/liquid/tag.rb:10:in `parse'
/usr/lib/ruby/vendor_ruby/liquid/block.rb:41:in `parse': Liquid syntax error (line 84): Tag '{%- if page.title -%}' was not properly terminated with regexp: /\%\}/ (Liquid::SyntaxError)

I'm using ubuntu18.04 and jekyll installed by apt (3.1.6).

Jekyll fails locally

When I try running Jekyll on the root I have the following

jrl-umi3218.github $ jekyll server --safe --trace                                                                                                    1 18:30:52
/home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/lib/bundler/runtime.rb:302:in `check_for_activated_spec!': You have already activated i18n 1.8.9, but your Gemfile requires i18n 0.9.5. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/lib/bundler/runtime.rb:31:in `block in setup'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/lib/bundler/spec_set.rb:152:in `each'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/lib/bundler/spec_set.rb:152:in `each'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/lib/bundler/runtime.rb:26:in `map'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/lib/bundler/runtime.rb:26:in `setup'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/lib/bundler.rb:148:in `setup'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/plugin_manager.rb:52:in `require_from_bundler'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/exe/jekyll:11:in `<top (required)>'
        from /home/benallegue/.rbenv/versions/3.0.0/bin/jekyll:23:in `load'
        from /home/benallegue/.rbenv/versions/3.0.0/bin/jekyll:23:in `<main>'

And if I follow the advice I have

jrl-umi3218.github $ bundle exec jekyll server --safe --trace                                                                                                     1 18:30:59
Configuration file: /media/benallegue/work/Mehdi/AIST/other/websites/jrl-umi3218.github/_config.yml
            Source: /media/benallegue/work/Mehdi/AIST/other/websites/jrl-umi3218.github
       Destination: /media/benallegue/work/Mehdi/AIST/other/websites/jrl-umi3218.github/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
                    done in 6.903 seconds.
bundler: failed to load command: jekyll (/home/benallegue/.rbenv/versions/3.0.0/bin/jekyll)
/home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/pathutil-0.16.2/lib/pathutil.rb:502:in `read': no implicit conversion of Hash into Integer (TypeError)
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/pathutil-0.16.2/lib/pathutil.rb:502:in `read'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-3.9.0/lib/jekyll/utils/platforms.rb:75:in `proc_version'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-3.9.0/lib/jekyll/utils/platforms.rb:40:in `bash_on_windows?'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-3.9.0/lib/jekyll/commands/build.rb:77:in `watch'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-3.9.0/lib/jekyll/commands/build.rb:43:in `process'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-3.9.0/lib/jekyll/commands/serve.rb:93:in `block in start'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-3.9.0/lib/jekyll/commands/serve.rb:93:in `each'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-3.9.0/lib/jekyll/commands/serve.rb:93:in `start'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-3.9.0/lib/jekyll/commands/serve.rb:75:in `block (2 levels) in init_with_program'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-3.9.0/exe/jekyll:15:in `<top (required)>'
        from /home/benallegue/.rbenv/versions/3.0.0/bin/jekyll:23:in `load'
        from /home/benallegue/.rbenv/versions/3.0.0/bin/jekyll:23:in `<top (required)>'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/lib/bundler/cli/exec.rb:63:in `load'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/lib/bundler/cli/exec.rb:63:in `kernel_load'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/lib/bundler/cli/exec.rb:28:in `run'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/lib/bundler/cli.rb:494:in `exec'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/lib/bundler/cli.rb:30:in `dispatch'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/lib/bundler/cli.rb:24:in `start'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/exe/bundle:49:in `block in <top (required)>'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/lib/bundler/friendly_errors.rb:130:in `with_friendly_errors'
        from /home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/bundler-2.2.15/exe/bundle:37:in `<top (required)>'
        from /home/benallegue/.rbenv/versions/3.0.0/bin/bundle:23:in `load'
        from /home/benallegue/.rbenv/versions/3.0.0/bin/bundle:23:in `<main>'

It seems it fails when checking for the version of the OS.

/home/benallegue/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/jekyll-3.9.0/lib/jekyll/utils/platforms.rb:

      @proc_version ||= begin
         Pathutil.new(
           "/proc/version"
         ).read

It is weird that it fails there (I thought it would be a very tested code) but I have no clue. Sorry


Additional information
OS Ubuntu 18.04.
Local installation of Ruby (I tried with apt version and I had many problems. However if it should have worked I can show these problems)
The content of my /proc/version
Linux version 5.4.0-47-generic (buildd@lgw01-amd64-038) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #51~18.04.1-Ubuntu SMP Sat Sep 5 14:35:50 UTC 2020

Open TODO list

This a list of small and big things to do to enhance the website, Anyone is welcome to pick up an item to work on.

  • Linking the github, youtube and mc-rtc website to the main page (#71)
  • Adding the new JRL logo
  • Having a real English/Japanese dual language version
  • Create a "Join Us" page.

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.