forked from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/alshedivat/al-folio into …
…update-bootstrap
- Loading branch information
Showing
15 changed files
with
288 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"files": [ | ||
"README.md" | ||
], | ||
"imageSize": 100, | ||
"commit": false, | ||
"contributorsPerLine": 7, | ||
"projectName": "al-folio", | ||
"projectOwner": "alshedivat", | ||
"repoType": "github", | ||
"repoHost": "https://github.com", | ||
"badgeTemplate": "[core_contributors]: https://img.shields.io/badge/core_contributors-<%= contributors.length %>-orange.svg 'Number of core contributors'", | ||
"contributorTemplate": "<a href=\"<%= contributor.profile %>\"><img src=\"<%= contributor.avatar_url %>\" width=\"<%= options.imageSize %>px;\" alt=\"\"/><br /><sub><b><%= contributor.name %></b></sub></a>", | ||
"skipCi": true, | ||
"contributors": [ | ||
{ | ||
"login": "alshedivat", | ||
"name": "Maruan", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/2126561?v=4", | ||
"profile": "http://maruan.alshedivat.com", | ||
"contributions": [ | ||
"design", | ||
"code" | ||
] | ||
}, | ||
{ | ||
"login": "rohandebsarkar", | ||
"name": "Rohan Deb Sarkar", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/50144004?v=4", | ||
"profile": "http://rohandebsarkar.github.io", | ||
"contributions": [ | ||
"code" | ||
] | ||
}, | ||
{ | ||
"login": "pourmand1376", | ||
"name": "Amir Pourmand", | ||
"avatar_url": "https://avatars.githubusercontent.com/u/32064808?v=4", | ||
"profile": "https://amirpourmand.ir", | ||
"contributions": [ | ||
"code" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
push: true | ||
tags: amirpourmand/al-folio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM jekyll/jekyll | ||
Label MAINTAINER Amir Pourmand | ||
#install imagemagick tool for convert command | ||
RUN apk add --no-cache --virtual .build-deps \ | ||
libxml2-dev \ | ||
shadow \ | ||
autoconf \ | ||
g++ \ | ||
make \ | ||
&& apk add --no-cache imagemagick-dev imagemagick | ||
WORKDIR /srv/jekyll | ||
ADD Gemfile /srv/jekyll/ | ||
RUN bundle install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
# al-folio | ||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> | ||
[core_contributors]: https://img.shields.io/badge/core_contributors-3-orange.svg 'Number of core contributors' | ||
<!-- ALL-CONTRIBUTORS-BADGE:END --> | ||
|
||
[](https://github.com/alshedivat/al-folio/actions/workflows/deploy.yml) | ||
[](https://alshedivat.github.io/al-folio/) | ||
[](https://github.com/alshedivat/al-folio/graphs/contributors/) | ||
[![Core Contributors][core_contributors]](#core-contributors-) | ||
[](https://github.com/alshedivat/al-folio/releases/latest) | ||
[](https://github.com/alshedivat/al-folio/blob/master/LICENSE) | ||
[](https://github.com/alshedivat/al-folio) | ||
[](https://github.com/alshedivat/al-folio/fork) | ||
[](https://ko-fi.com/alshedivat) | ||
|
||
A simple, clean, and responsive [Jekyll](https://jekyllrb.com/) theme for academics. | ||
If you like the theme, give it a star! | ||
|
@@ -110,13 +113,64 @@ Neural Compression (ICLR: <a href="https://neuralcompression.github.io/" target= | |
|
||
## Getting started | ||
|
||
For more about how to use Jekyll, check out [this tutorial](https://www.taniarascia.com/make-a-static-website-with-jekyll/). | ||
Want to learn more about Jekyll? Check out [this tutorial](https://www.taniarascia.com/make-a-static-website-with-jekyll/). | ||
Why Jekyll? Read [Andrej Karpathy's blog post](https://karpathy.github.io/2014/07/01/switching-to-jekyll/)! | ||
|
||
|
||
### Installation | ||
|
||
#### Local setup | ||
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! 🎬 🍿 | ||
|
||
--- | ||
|
||
#### Local setup using Docker (Recommended on Windows) | ||
|
||
You need to take the following steps to get `al-folio` up and running in your local machine: | ||
|
||
- First, [install docker](https://docs.docker.com/get-docker/) | ||
- Then, clone this repository to your machine: | ||
|
||
```bash | ||
$ git clone [email protected]:<your-username>/<your-repo-name>.git | ||
$ cd <your-repo-name> | ||
``` | ||
|
||
Finally, run the following command that will pull a pre-built image from DockerHub and will run your website. | ||
|
||
```bash | ||
$ ./bin/dockerhub_run.sh | ||
``` | ||
|
||
Note that when you run it for the first time, it will download a docker image of size 300MB or so. | ||
|
||
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. | ||
|
||
<details><summary>(click to expand) <strong>Build your own docker image (more advanced):</strong></summary> | ||
|
||
> Note: this approach is only necessary if you would like to build an older or very custom version of al-folio. | ||
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): | ||
|
||
|
||
```bash | ||
$ ./bin/docker_build_image.sh | ||
``` | ||
|
||
Run the website! | ||
|
||
```bash | ||
$ ./bin/docker_run.sh | ||
``` | ||
|
||
> To change port number, you can edit `docker_run.sh` file. | ||
> 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. | ||
</details> | ||
|
||
--- | ||
|
||
#### Local Setup (Standard) | ||
|
||
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: | ||
|
||
|
@@ -130,6 +184,8 @@ $ bundle exec jekyll serve | |
Now, feel free to customize the theme however you like (don't forget to change the name!). | ||
After you are done, **commit** your final changes. | ||
|
||
--- | ||
|
||
#### Deployment | ||
|
||
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 | |
|
||
</details> | ||
|
||
--- | ||
|
||
#### Upgrading from a previous version | ||
|
||
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 | |
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. | ||
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. | ||
|
||
--- | ||
|
||
### FAQ | ||
|
||
Here are some frequently asked questions. | ||
|
@@ -260,6 +320,7 @@ If you have a different question, please ask using [Discussions](https://github. | |
RSS Feed plugin works with these correctly set up fields: `title`, `url`, `description` and `author`. | ||
Make sure to fill them in an appropriate way and try again. | ||
|
||
|
||
## Features | ||
|
||
### Publications | ||
|
@@ -325,7 +386,9 @@ There are several custom bibtex keywords that you can use to affect how the entr | |
You can implement your own buttons by editing the bib.html file. | ||
|
||
</details> | ||
|
||
|
||
--- | ||
|
||
### Collections | ||
|
||
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 | |
|
||
You can easily create your own collections, apps, short stories, courses, or whatever your creative work is. | ||
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`. | ||
|
||
|
||
--- | ||
|
||
### Layouts | ||
|
||
**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: | |
</a> | ||
</p> | ||
|
||
--- | ||
|
||
### Other features | ||
|
||
|
@@ -401,10 +467,28 @@ Before you get started, please take a look at [the guidelines](CONTRIBUTING.md). | |
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`. | ||
For more complex issues/bugs or feature requests, please open an issue using the appropriate template. | ||
|
||
### Core Contributors | ||
|
||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> | ||
<!-- prettier-ignore-start --> | ||
<!-- markdownlint-disable --> | ||
<table> | ||
<tr> | ||
<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> | ||
<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> | ||
<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> | ||
</tr> | ||
</table> | ||
|
||
<!-- markdownlint-restore --> | ||
<!-- prettier-ignore-end --> | ||
|
||
<!-- ALL-CONTRIBUTORS-LIST:END --> | ||
|
||
## License | ||
|
||
The theme is available as open source under the terms of the [MIT License](https://github.com/alshedivat/al-folio/blob/master/LICENSE). | ||
|
||
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). | ||
Since then, it got a full re-write of the styles and many additional cool features. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
<!-- Bootsrap & MDB scripts --> | ||
<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> | ||
<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> | ||
<script async src="https://cdn.jsdelivr.net/npm/mdbootstrap@{{ site.mdb.version }}/js/mdb.min.js" integrity="{{ site.mdb.integrity.js }}" crossorigin="anonymous"></script> | ||
<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> | ||
<script src="https://cdn.jsdelivr.net/npm/mdbootstrap@{{ site.mdb.version }}/js/mdb.min.js" integrity="{{ site.mdb.integrity.js }}" crossorigin="anonymous"></script> |
Oops, something went wrong.