Skip to content
Snippets Groups Projects
README.md 2.17 KiB
Newer Older
  • Learn to ignore specific revisions
  • Erxleben, Fredo's avatar
    Erxleben, Fredo committed
    # HIFIS Software web page
    
    The HIFIS Software web page will be the home for gathering information about
    the activities and services offered by the HIFIS Software team. This website
    is built using Jekyll.
    
    ## Build the project locally
    
    
    Christian Meeßen's avatar
    Christian Meeßen committed
    ### Manually
    
    
    Erxleben, Fredo's avatar
    Erxleben, Fredo committed
    1. Clone the project locally
       ```bash
    
       git clone --recursive https://gitlab.hzdr.de/hifis/hifis.net.git
       cd hifis.net
    
    Erxleben, Fredo's avatar
    Erxleben, Fredo committed
       ```
    2. [Install](https://jekyllrb.com/docs/installation/) Jekyll.
    3. Install dependencies.
       ```bash
       bundle install
       ```
    
    Uwe Jandt (DESY, HIFIS)'s avatar
    Uwe Jandt (DESY, HIFIS) committed
    4. Install submodules (currently `bootstrap`, `Font-Awesome`, `jquery`, `MathJax`).
    
       ``` bash
       git submodule update --init --recursive
       ```
    
    5. Optionally, on _Linux_ systems install `FFmpeg` to be used to scale
       Jumbotron images.
       On systems with `Apt`
       ```bash
       apt install ffmpeg
       ```
       _or_ on systems with `Yum`
       ```bash
       yum install ffmpeg
       ```
    6. Optionally, on _Linux_ systems create scaled variants of Jumbotron images to
       be used on different devices.
       ```bash
       bash scripts/create_jumbotrons.sh assets/img/jumbotrons/
       ```
       _Note: Be aware that missing scaled variants of Jumbotron images may cause
       issues in your local installation when rendering the page in the next step._
    7. Build and preview the web page.
    
    Erxleben, Fredo's avatar
    Erxleben, Fredo committed
       ```bash
       bundle exec jekyll serve --future
       ```
    
    Erxleben, Fredo's avatar
    Erxleben, Fredo committed
    
    Execute the commands above from the root of your repository.
    
    More information is available in Jekyll's
    [documentation](https://jekyllrb.com/docs/)
    
    
    Christian Meeßen's avatar
    Christian Meeßen committed
    ### Using the Makefile
    
    If you are using Linux, you may also use the provided `Makefile`. After having
    cloned the repository (Step 1 above), make sure to have Jekyll and ffmpeg installed.
    Now you can start the local development server by running
    
    ```shell
    make all
    ```
    
    Individual steps can also be called:
    
    ```shell
    make install     # install dependencies and update submodule
    make jumbotrons  # build the jumbotrons using ffmpeg
    make serve       # start the dev server
    make clean       # Remove all generated/downloaded files
    ```
    
    
    ## Fetch the latest builds from gitlab
    
    Erxleben, Fredo's avatar
    Erxleben, Fredo committed
    
    
    The latest master branch (production) build artifacts can be downloaded using
    
    Christian Meeßen's avatar
    Christian Meeßen committed
    * https://gitlab.hzdr.de/hifis/hifis.net/-/jobs/artifacts/master/download?job=build:production