Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the CUSTOMIZE.md file to include steps for deploying al-folio on Netlify. #2798

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CUSTOMIZE.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ The configuration file [\_config.yml](_config.yml) contains the main configurati

All changes made to this file are only visible after you rebuild the website. That means that you need to run `bundle exec jekyll serve` again if you are running the website locally or push your changes to GitHub if you are using GitHub Pages. All other changes are visible immediately, you only need to refresh the page.

## Deploy on [Netlify](https://www.netlify.com/)

Instead of [GitHub Pages](https://pages.github.com/), you can deploy your website on a third-party web hosting service such as [Netlify](https://www.netlify.com/). First, click on [Use this template -> Create a new repository](https://github.com/new?template_name=al-folio&template_owner=alshedivat). Then, in Netlify, click **Add new site** -> **Import an existing project** -> **GitHub** and give Netlify access to the repository you just created. In the deploy settings, make sure the **Branch to deploy** is set to `master`, the **Base directory** is empty, the **Build command** is set to `sed -i "s/^\(baseurl: \).*$/baseurl:/" _config.yml && bundle exec jekyll build`, and the **Publish directory** is `_site`. In addition, add two environment variables: `JEKYLL_ENV` with the value `production` and `RUBY_VERSION` set to the Ruby version found in `.github/workflows/deploy.yml` (for example, `3.3.5`). Finally, click **Deploy** and wait for the site to be published. If you want to use your own domain name, follow the steps in [this documentation](https://docs.netlify.com/domains-https/custom-domains/).

## Modifying the CV information

There are currently 2 different ways of generating the CV page content. The first one is by using a json file located in [assets/json/resume.json](assets/json/resume.json). It is a [known standard](https://jsonresume.org/) for creating a CV programmatically. The second one, currently used as a fallback when the json file is not found, is by using a yml file located in [\_data/cv.yml](_data/cv.yml). This was the original way of creating the CV page content and since it is more human readable than a json file we decided to keep it as an option.
Expand Down