Skip to content

Commit 71745c8

Browse files
committed
restore
1 parent 9ed77da commit 71745c8

366 files changed

Lines changed: 22804 additions & 67196 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

_pages/404.md renamed to 404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
redirect: true
77
---
88

9-
You will be redirected to the main page within 3 seconds. If not redirected, please go back to the [home page]({{ site.baseurl | prepend: site.url }}).
9+
<p>You will be redirected to the main page within 3 seconds. If not redirected, please go back to the <a href="{{ site.baseurl }}/">home page</a>.</p>

CONTRIBUTING.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
# Contributing to al-folio
2+
Thank you for considering to contribute to al-folio!
23

3-
Thank you for considering contributing to al-folio!
44

55
## Pull Requests
6-
76
We welcome your pull requests (PRs).
87
For minor fixes (e.g., documentation improvements), feel free to submit a PR directly.
98
If you would like to implement a new feature or a bug, please make sure you (or someone else) has opened an appropriate issue first; in your PR, please mention the issue it addresses.
109

11-
Note that since [#2048](https://github.com/alshedivat/al-folio/pull/2048) al-folio uses the [prettier formatter](https://prettier.io/) for its code, meaning all new submitted code must conform to its standard. If you don't have `prettier` installed for your setup and the `prettier` code check fails when submitting a PR, you can check the referred failed action in our repo. In that action there will be an artifact with an HTML diff showing the needed changes.
1210

1311
## Issues
14-
1512
We use GitHub issues to track bugs and feature requests.
1613
Before submitting an issue, please make sure:
1714

18-
1. You have read [the FAQ section](FAQ.md) of the README and your question is NOT addressed there.
15+
1. You have read [the FAQ section](https://github.com/alshedivat/al-folio#faq) of the README and your question is NOT addressed there.
1916
2. You have done your best to ensure that your issue is NOT a duplicate of one of [the previous issues](https://github.com/alshedivat/al-folio/issues).
2017
3. Your issue is either a bug (unexpected/undesirable behavior) or a feature request.
21-
If it is just a question, please ask it in the [Discussions](https://github.com/alshedivat/al-folio/discussions) forum.
18+
If it is just a question, please ask it in the [Discussions](https://github.com/alshedivat/al-folio/discussions) forum.
2219

2320
When submitting an issue, please make sure to use the appropriate template.
2421

25-
## License
2622

23+
## License
2724
By contributing to al-folio, you agree that your contributions will be licensed
2825
under the LICENSE file in the root directory of the source tree.

CUSTOMIZE.md

Lines changed: 0 additions & 322 deletions
This file was deleted.

Dockerfile

Lines changed: 24 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,40 @@
1-
FROM ruby:slim
1+
FROM bitnami/minideb:latest
22

3-
# uncomment these if you are having this issue with the build:
4-
# /usr/local/bundle/gems/jekyll-4.3.4/lib/jekyll/site.rb:509:in `initialize': Permission denied @ rb_sysopen - /srv/jekyll/.jekyll-cache/.gitignore (Errno::EACCES)
5-
# ARG GROUPID=901
6-
# ARG GROUPNAME=ruby
7-
# ARG USERID=901
8-
# ARG USERNAME=jekyll
3+
Label MAINTAINER Amir Pourmand
94

10-
ENV DEBIAN_FRONTEND noninteractive
5+
RUN apt-get update -y
116

12-
LABEL authors="Amir Pourmand,George Araújo" \
13-
description="Docker image for al-folio academic template" \
14-
maintainer="Amir Pourmand"
15-
16-
# uncomment these if you are having this issue with the build:
17-
# /usr/local/bundle/gems/jekyll-4.3.4/lib/jekyll/site.rb:509:in `initialize': Permission denied @ rb_sysopen - /srv/jekyll/.jekyll-cache/.gitignore (Errno::EACCES)
18-
# add a non-root user to the image with a specific group and user id to avoid permission issues
19-
# RUN groupadd -r $GROUPNAME -g $GROUPID && \
20-
# useradd -u $USERID -m -g $GROUPNAME $USERNAME
21-
22-
# install system dependencies
23-
RUN apt-get update -y && \
24-
apt-get install -y --no-install-recommends \
25-
build-essential \
26-
curl \
27-
git \
28-
imagemagick \
29-
inotify-tools \
30-
locales \
31-
nodejs \
32-
procps \
33-
python3-pip \
34-
zlib1g-dev && \
35-
pip --no-cache-dir install --upgrade --break-system-packages nbconvert
36-
37-
# clean up
38-
RUN apt-get clean && \
39-
apt-get autoremove && \
40-
rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/* /tmp/*
41-
42-
# set the locale
7+
# add locale
8+
RUN apt-get -y install locales
9+
# Set the locale
4310
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
4411
locale-gen
12+
ENV LANG en_US.UTF-8
13+
ENV LANGUAGE en_US:en
14+
ENV LC_ALL en_US.UTF-8
15+
16+
# add ruby and jekyll
17+
RUN apt-get install --no-install-recommends ruby-full build-essential zlib1g-dev -y
18+
RUN apt-get install imagemagick -y
4519

46-
# set environment variables
47-
ENV EXECJS_RUNTIME=Node \
48-
JEKYLL_ENV=production \
49-
LANG=en_US.UTF-8 \
50-
LANGUAGE=en_US:en \
51-
LC_ALL=en_US.UTF-8
20+
# install python3 and jupyter
21+
RUN apt-get install python3-pip -y
22+
RUN python3 -m pip install jupyter --break-system-packages
23+
24+
# install jekyll and dependencies
25+
RUN gem install jekyll bundler
5226

53-
# create a directory for the jekyll site
5427
RUN mkdir /srv/jekyll
5528

56-
# copy the Gemfile and Gemfile.lock to the image
57-
ADD Gemfile.lock /srv/jekyll
5829
ADD Gemfile /srv/jekyll
5930

60-
# set the working directory
6131
WORKDIR /srv/jekyll
6232

63-
# install jekyll and dependencies
64-
RUN gem install --no-document jekyll bundler
65-
RUN bundle install --no-cache
33+
RUN bundle install
6634

67-
EXPOSE 8080
35+
# Set Jekyll environment
36+
ENV JEKYLL_ENV=production
6837

69-
COPY bin/entry_point.sh /tmp/entry_point.sh
70-
71-
# uncomment this if you are having this issue with the build:
72-
# /usr/local/bundle/gems/jekyll-4.3.4/lib/jekyll/site.rb:509:in `initialize': Permission denied @ rb_sysopen - /srv/jekyll/.jekyll-cache/.gitignore (Errno::EACCES)
73-
# set the ownership of the jekyll site directory to the non-root user
74-
# USER $USERNAME
38+
EXPOSE 8080
7539

76-
CMD ["/tmp/entry_point.sh"]
40+
CMD ["/bin/bash", "-c", "rm -f Gemfile.lock && exec jekyll serve --watch --port=8080 --host=0.0.0.0 --livereload --verbose --trace"]

0 commit comments

Comments
 (0)