Skip to content

Commit 4811a10

Browse files
Merge branch 'master' of https://github.com/alshedivat/al-folio into update-bootstrap
2 parents 2f1ea24 + edd9fb7 commit 4811a10

File tree

15 files changed

+288
-18
lines changed

15 files changed

+288
-18
lines changed

.all-contributorsrc

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"files": [
3+
"README.md"
4+
],
5+
"imageSize": 100,
6+
"commit": false,
7+
"contributorsPerLine": 7,
8+
"projectName": "al-folio",
9+
"projectOwner": "alshedivat",
10+
"repoType": "github",
11+
"repoHost": "https://github.com",
12+
"badgeTemplate": "[core_contributors]: https://img.shields.io/badge/core_contributors-<%= contributors.length %>-orange.svg 'Number of core contributors'",
13+
"contributorTemplate": "<a href=\"<%= contributor.profile %>\"><img src=\"<%= contributor.avatar_url %>\" width=\"<%= options.imageSize %>px;\" alt=\"\"/><br /><sub><b><%= contributor.name %></b></sub></a>",
14+
"skipCi": true,
15+
"contributors": [
16+
{
17+
"login": "alshedivat",
18+
"name": "Maruan",
19+
"avatar_url": "https://avatars.githubusercontent.com/u/2126561?v=4",
20+
"profile": "http://maruan.alshedivat.com",
21+
"contributions": [
22+
"design",
23+
"code"
24+
]
25+
},
26+
{
27+
"login": "rohandebsarkar",
28+
"name": "Rohan Deb Sarkar",
29+
"avatar_url": "https://avatars.githubusercontent.com/u/50144004?v=4",
30+
"profile": "http://rohandebsarkar.github.io",
31+
"contributions": [
32+
"code"
33+
]
34+
},
35+
{
36+
"login": "pourmand1376",
37+
"name": "Amir Pourmand",
38+
"avatar_url": "https://avatars.githubusercontent.com/u/32064808?v=4",
39+
"profile": "https://amirpourmand.ir",
40+
"contributions": [
41+
"code"
42+
]
43+
}
44+
]
45+
}

.github/workflows/deploy-image.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- name: Buildx
19+
uses: docker/setup-buildx-action@v1
20+
21+
- name: Login
22+
uses: docker/login-action@v1
23+
with:
24+
username: ${{ secrets.DOCKER_USERNAME }}
25+
password: ${{ secrets.DOCKER_PASSWORD }}
26+
27+
- name: Build and push
28+
uses: docker/build-push-action@v2
29+
with:
30+
context: .
31+
push: true
32+
tags: amirpourmand/al-folio

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM jekyll/jekyll
2+
Label MAINTAINER Amir Pourmand
3+
#install imagemagick tool for convert command
4+
RUN apk add --no-cache --virtual .build-deps \
5+
libxml2-dev \
6+
shadow \
7+
autoconf \
8+
g++ \
9+
make \
10+
&& apk add --no-cache imagemagick-dev imagemagick
11+
WORKDIR /srv/jekyll
12+
ADD Gemfile /srv/jekyll/
13+
RUN bundle install

README.md

Lines changed: 89 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
# al-folio
2+
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
3+
[core_contributors]: https://img.shields.io/badge/core_contributors-3-orange.svg 'Number of core contributors'
4+
<!-- ALL-CONTRIBUTORS-BADGE:END -->
25

36
[![deploy](https://github.com/alshedivat/al-folio/actions/workflows/deploy.yml/badge.svg)](https://github.com/alshedivat/al-folio/actions/workflows/deploy.yml)
47
[![demo](https://img.shields.io/badge/theme-demo-brightgreen.svg)](https://alshedivat.github.io/al-folio/)
58
[![GitHub contributors](https://img.shields.io/github/contributors/alshedivat/al-folio.svg)](https://github.com/alshedivat/al-folio/graphs/contributors/)
9+
[![Core Contributors][core_contributors]](#core-contributors-)
610
[![GitHub release](https://img.shields.io/github/v/release/alshedivat/al-folio)](https://github.com/alshedivat/al-folio/releases/latest)
711
[![GitHub license](https://img.shields.io/github/license/alshedivat/al-folio?color=blue)](https://github.com/alshedivat/al-folio/blob/master/LICENSE)
812
[![GitHub stars](https://img.shields.io/github/stars/alshedivat/al-folio)](https://github.com/alshedivat/al-folio)
913
[![GitHub forks](https://img.shields.io/github/forks/alshedivat/al-folio)](https://github.com/alshedivat/al-folio/fork)
10-
[![support](https://img.shields.io/badge/support-Ko--fi-yellow.svg)](https://ko-fi.com/alshedivat)
1114

1215
A simple, clean, and responsive [Jekyll](https://jekyllrb.com/) theme for academics.
1316
If you like the theme, give it a star!
@@ -110,13 +113,64 @@ Neural Compression (ICLR: <a href="https://neuralcompression.github.io/" target=
110113

111114
## Getting started
112115

113-
For more about how to use Jekyll, check out [this tutorial](https://www.taniarascia.com/make-a-static-website-with-jekyll/).
116+
Want to learn more about Jekyll? Check out [this tutorial](https://www.taniarascia.com/make-a-static-website-with-jekyll/).
114117
Why Jekyll? Read [Andrej Karpathy's blog post](https://karpathy.github.io/2014/07/01/switching-to-jekyll/)!
115118

116119

117120
### Installation
118121

119-
#### Local setup
122+
For a hands-on walkthrough of al-folio installation, check out [this cool video tutorial](https://www.youtube.com/watch?v=g6AJ9qPPoyc) by one of the community members! 🎬 🍿
123+
124+
---
125+
126+
#### Local setup using Docker (Recommended on Windows)
127+
128+
You need to take the following steps to get `al-folio` up and running in your local machine:
129+
130+
- First, [install docker](https://docs.docker.com/get-docker/)
131+
- Then, clone this repository to your machine:
132+
133+
```bash
134+
$ git clone [email protected]:<your-username>/<your-repo-name>.git
135+
$ cd <your-repo-name>
136+
```
137+
138+
Finally, run the following command that will pull a pre-built image from DockerHub and will run your website.
139+
140+
```bash
141+
$ ./bin/dockerhub_run.sh
142+
```
143+
144+
Note that when you run it for the first time, it will download a docker image of size 300MB or so.
145+
146+
Now, feel free to customize the theme however you like (don't forget to change the name!). After you are done, you can use the same command (`bin/dockerhub_run.sh`) to render the webpage with all you changes. Also, make sure to commit your final changes.
147+
148+
<details><summary>(click to expand) <strong>Build your own docker image (more advanced):</strong></summary>
149+
150+
> Note: this approach is only necessary if you would like to build an older or very custom version of al-folio.
151+
152+
First, download the necessary modules and install them into a docker image called `al-folio:Dockerfile` (this command will build an image which is used to run your website afterwards. Note that you only need to do this step once. After you have the image, you no longer need to do this anymore):
153+
154+
155+
```bash
156+
$ ./bin/docker_build_image.sh
157+
```
158+
159+
Run the website!
160+
161+
```bash
162+
$ ./bin/docker_run.sh
163+
```
164+
165+
> To change port number, you can edit `docker_run.sh` file.
166+
167+
> If you want to update jekyll, install new ruby packages, etc., all you have to do is build the image again using `docker_build_image.sh`! It will download ruby and jekyll and install all ruby packages again from scratch.
168+
169+
</details>
170+
171+
---
172+
173+
#### Local Setup (Standard)
120174

121175
Assuming you have [Ruby](https://www.ruby-lang.org/en/downloads/) and [Bundler](https://bundler.io/) installed on your system (*hint: for ease of managing ruby gems, consider using [rbenv](https://github.com/rbenv/rbenv)*), first [fork](https://guides.github.com/activities/forking/) the theme from `github.com:alshedivat/al-folio` to `github.com:<your-username>/<your-repo-name>` and do the following:
122176

@@ -130,6 +184,8 @@ $ bundle exec jekyll serve
130184
Now, feel free to customize the theme however you like (don't forget to change the name!).
131185
After you are done, **commit** your final changes.
132186

187+
---
188+
133189
#### Deployment
134190

135191
Deploying your website to [GitHub Pages](https://pages.github.com/) is the most popular option.
@@ -211,6 +267,8 @@ In its default configuration, al-folio will copy the top-level `README.md` to th
211267

212268
</details>
213269

270+
---
271+
214272
#### Upgrading from a previous version
215273

216274
If you installed **al-folio** as described above, you can upgrade to the latest version as follows:
@@ -227,6 +285,8 @@ You can still follow the steps above, but `git rebase` may result in merge confl
227285
See [git rebase manual](https://help.github.com/en/github/using-git/about-git-rebase) and how to [resolve conflicts](https://help.github.com/en/github/using-git/resolving-merge-conflicts-after-a-git-rebase) for more information.
228286
If rebasing is too complicated, we recommend to re-install the new version of the theme from scratch and port over your content and changes from the previous version manually.
229287

288+
---
289+
230290
### FAQ
231291

232292
Here are some frequently asked questions.
@@ -260,6 +320,7 @@ If you have a different question, please ask using [Discussions](https://github.
260320
RSS Feed plugin works with these correctly set up fields: `title`, `url`, `description` and `author`.
261321
Make sure to fill them in an appropriate way and try again.
262322

323+
263324
## Features
264325

265326
### Publications
@@ -325,7 +386,9 @@ There are several custom bibtex keywords that you can use to affect how the entr
325386
You can implement your own buttons by editing the bib.html file.
326387

327388
</details>
328-
389+
390+
---
391+
329392
### Collections
330393

331394
This Jekyll theme implements `collections` to let you break up your work into categories.
@@ -337,7 +400,9 @@ Items from the `projects` collection are displayed on a responsive grid on proje
337400

338401
You can easily create your own collections, apps, short stories, courses, or whatever your creative work is.
339402
To do this, edit the collections in the `_config.yml` file, create a corresponding folder, and create a landing page for your collection, similar to `_pages/projects.md`.
340-
403+
404+
---
405+
341406
### Layouts
342407

343408
**al-folio** comes with stylish layouts for pages and blog posts.
@@ -370,6 +435,7 @@ Easily create beautiful grids within your blog posts and project pages:
370435
</a>
371436
</p>
372437

438+
---
373439

374440
### Other features
375441

@@ -401,10 +467,28 @@ Before you get started, please take a look at [the guidelines](CONTRIBUTING.md).
401467
If you would like to improve documentation, add your webpage to the list below, or fix a minor inconsistency or bug, please feel free to send a PR directly to `master`.
402468
For more complex issues/bugs or feature requests, please open an issue using the appropriate template.
403469

470+
### Core Contributors
471+
472+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
473+
<!-- prettier-ignore-start -->
474+
<!-- markdownlint-disable -->
475+
<table>
476+
<tr>
477+
<td align="center"><a href="http://maruan.alshedivat.com"><img src="https://avatars.githubusercontent.com/u/2126561?v=4" width="100px;" alt=""/><br /><sub><b>Maruan</b></sub></a></td>
478+
<td align="center"><a href="http://rohandebsarkar.github.io"><img src="https://avatars.githubusercontent.com/u/50144004?v=4" width="100px;" alt=""/><br /><sub><b>Rohan Deb Sarkar</b></sub></a></td>
479+
<td align="center"><a href="https://amirpourmand.ir"><img src="https://avatars.githubusercontent.com/u/32064808?v=4" width="100px;" alt=""/><br /><sub><b>Amir Pourmand</b></sub></a></td>
480+
</tr>
481+
</table>
482+
483+
<!-- markdownlint-restore -->
484+
<!-- prettier-ignore-end -->
485+
486+
<!-- ALL-CONTRIBUTORS-LIST:END -->
404487

405488
## License
406489

407490
The theme is available as open source under the terms of the [MIT License](https://github.com/alshedivat/al-folio/blob/master/LICENSE).
408491

409492
Originally, **al-folio** was based on the [\*folio theme](https://github.com/bogoli/-folio) (published by [Lia Bogoev](https://liabogoev.com) and under the MIT license).
410493
Since then, it got a full re-write of the styles and many additional cool features.
494+

_bibliography/papers.bib

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,11 @@ @article{einstein1905electrodynamics
7171
author={Einstein, A.},
7272
year={1905}
7373
}
74+
75+
@book{przibram1967letters,
76+
bibtex_show={true},
77+
title={Letters on wave mechanics},
78+
author={Einstein, Albert and Schrödinger, Erwin and Planck, Max and Lorentz, Hendrik Antoon and Przibram, Karl},
79+
year={1967},
80+
publisher={Vision}
81+
}

_config.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,11 @@ scholar:
234234

235235
query: "@*"
236236

237-
filtered_bibtex_keywords: [abbr, abstract, arxiv, bibtex_show, html, pdf, selected, supp, blog, code, poster, slides, website, preview] # Filter out certain bibtex entry keywords used internally from the bib output
237+
# Filter out certain bibtex entry keywords used internally from the bib output
238+
filtered_bibtex_keywords: [abbr, abstract, arxiv, bibtex_show, html, pdf, selected, supp, blog, code, poster, slides, website, preview]
239+
240+
# Maximum number of authors to be shown, other authors will be visible on hover, leave blank to show all authors
241+
max_author_limit: 3
238242

239243
# -----------------------------------------------------------------------------
240244
# Responsive WebP Images
@@ -303,7 +307,5 @@ masonry:
303307
version: "4"
304308
mdb:
305309
version: "4"
306-
popper:
307-
version: "2"
308310
medium_zoom:
309311
version: "1"

_data/coauthors.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,19 @@
1616

1717
- firstname: ["Carl Philipp Emanuel", "C. P. E."]
1818
url: https://en.wikipedia.org/wiki/Carl_Philipp_Emanuel_Bach
19+
20+
"Przibram":
21+
- firstname: ["Karl"]
22+
url: https://link.springer.com/article/10.1007/s00016-019-00242-z
23+
24+
"Schrödinger":
25+
- firstname: ["Erwin"]
26+
url: https://en.wikipedia.org/wiki/Erwin_Schr%C3%B6dinger
27+
28+
"Lorentz":
29+
- firstname: ["Hendrik Antoon"]
30+
url: https://en.wikipedia.org/wiki/Hendrik_Lorentz
31+
32+
"Planck":
33+
- firstname: ["Max"]
34+
url: https://en.wikipedia.org/wiki/Max_Planck

_includes/scripts/bootstrap.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
<!-- Bootsrap & MDB scripts -->
2-
<script async src="https://cdn.jsdelivr.net/npm/@popperjs/core@{{ site.popper.version }}/dist/umd/popper.min.js" integrity="{{ site.popper.integrity }}" crossorigin="anonymous"></script>
3-
<script async src="https://cdn.jsdelivr.net/npm/bootstrap@{{ site.bootstrap.version }}/dist/js/bootstrap.min.js" integrity="{{ site.bootstrap.integrity.js }}" crossorigin="anonymous"></script>
4-
<script async src="https://cdn.jsdelivr.net/npm/mdbootstrap@{{ site.mdb.version }}/js/mdb.min.js" integrity="{{ site.mdb.integrity.js }}" crossorigin="anonymous"></script>
2+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@{{ site.bootstrap.version }}/dist/js/bootstrap.bundle.min.js" integrity="{{ site.bootstrap.integrity.js }}" crossorigin="anonymous"></script>
3+
<script src="https://cdn.jsdelivr.net/npm/mdbootstrap@{{ site.mdb.version }}/js/mdb.min.js" integrity="{{ site.mdb.integrity.js }}" crossorigin="anonymous"></script>

0 commit comments

Comments
 (0)