This website is designed to further the goals of the long-term Data and Analysis Preservation (DAP) of the PHENIX Collaboration. It leverages the following Web services, portals and frameworks:
- Zenodo -- state of the art digital repository at CERN
- HEPData -- an archive of numerical data published in papers
- REANA -- a platform for "reproducible analysis"
- OpenData -- a CERN portal with the capability to host packages consisting of documentation, software and data, in order to capture and document substantial parts of interesting analyses
The GitHub Pages
version is the development version.
For the current production version of the site please
see phenix.bnl.gov
There is no set schedule for releases, these are done "as required".
Please see the "how-to" section in the "About" menu of the site for the
information being constantly updated. We use the Jekyll static site generator
and the Liquid
template language.
Pay attention to the following dependencies (need to be installed and also included in the Gemfile in this folder):
gem "jekyll", "~> 4.0"
gem 'jekyll-mentions', '~> 1.5', '>= 1.5.1'
gem 'jekyll-sitemap', '~> 1.4'
gem 'jekyll-redirect-from', '~> 0.16.0'
...and a few others. The best source is likely https://rubygems.org/
NB. When running a freshly installed instance of jekyll, you'll get error messages concerning possibly missing gems. These are trivial to install, e.g. running commands like
gem install jekyll-mentions
Documentation on the Liquid
template language is plentiful
and easy to locate on the Web.
A useful trick for concatenation of arrays in Liquid:
{% for host in site.data.shared_hosts %}
{% assign all_hosts = all_hosts | push: host %}
{% endfor %}
{% for host in site.data.paas_hosts %}
{% assign all_hosts = all_hosts | push: host %}
{% endfor %}
The site content can be captured using wget
or a similar utility. Once it's
done, it can be accessed statically on a local machine or copied to a different server.
Note that links will need to be converted hence there must be a corresponding CLI option:
wget --convert-links -r http://localhost:4000/web/
In certain situations the default port that Jekyll uses may be blocked (e.g. in WSL2), or it may be otherwise desirable to use a different port number. In this cases it can be run with an alternative port set by the user, as shown in the following example:
bundle exec jekyll serve --port 8000