Skip to content

Commit 1a66674

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 553a3a9 + c07d947 commit 1a66674

98 files changed

Lines changed: 6011 additions & 423 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.

.devcontainer/devcontainer.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "ACADEMIC PAGES",
3+
"dockerComposeFile": "../docker-compose.yaml",
4+
"service": "jekyll-site",
5+
"remoteEnv": {
6+
"VSCODE_SERVER_DIR": "/home/vscode/.vscode-server"
7+
},
8+
"runArgs": [
9+
"--user",
10+
"1000:1000"
11+
],
12+
"workspaceFolder": "/usr/src/app",
13+
"remoteUser": "vscode",
14+
"forwardPorts": [4000] // Add port forwarding
15+
}

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ name: Bug report
33
about: Create a report to help us improve
44
title: ''
55
labels: ''
6-
assignees: ''
76

87
---
98

109
**Describe the bug**
11-
A clear and concise description of what the bug is.
10+
A clear and concise description of what the bug is, be sure to note if the issue is presenet in the *template* or appeared on *your site*. If the bug appears on your site, please be sure to provide a link to your repository.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
@@ -23,16 +22,11 @@ A clear and concise description of what you expected to happen.
2322
**Screenshots**
2423
If applicable, add screenshots to help explain your problem.
2524

26-
**Desktop (please complete the following information):**
25+
**Browser (please complete the following information):**
26+
- Device: [e.g. iPhone6] (if applicable)
2727
- OS: [e.g. iOS]
2828
- Browser [e.g. chrome, safari]
2929
- Version [e.g. 22]
3030

31-
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
36-
3731
**Additional context**
3832
Add any other context about the problem here.

.github/workflows/scrape_talks.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Scrape Talk Locations
2+
3+
on:
4+
push:
5+
paths:
6+
- 'talks/**'
7+
- '_talks/**'
8+
- 'talkmap.ipynb'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Set up Python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: '3.9' # Specify the Python version you need
21+
22+
- name: Install dependencies
23+
run: |
24+
pip install jupyter pandas requests beautifulsoup4 geopy # Add other dependencies as needed
25+
pip install getorg --upgrade
26+
27+
- name: Run Jupyter Notebook
28+
run: |
29+
jupyter nbconvert --to notebook --execute talkmap.ipynb --output talkmap_out.ipynb
30+
31+
- name: Commit changes
32+
run: |
33+
git config user.name "github-actions[bot]"
34+
git config user.email "github-actions[bot]@users.noreply.github.com"
35+
git add .
36+
git commit -m "Automated update of talk locations" || echo "No changes to commit"
37+
git push

.gitignore

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ local/
88
# Ignore the Gemfile that is generated
99
Gemfile.lock
1010

11-
# Ingore files created by npm
11+
# Ignore files created by npm
1212
node_modules
13-
package-lock.json
13+
package-lock.json
14+
15+
# Ignore the vendor file at root level and bundle for alternative installation
16+
/vendor/
17+
.bundle/
18+
19+
# Ignore folders related to IDEs
20+
.vscode/

Dockerfile

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,29 @@ RUN apt-get update && apt-get install -y \
77
nodejs \
88
&& rm -rf /var/lib/apt/lists/*
99

10-
# Set the working directory inside the container
10+
11+
# Create a non-root user with UID 1000
12+
RUN groupadd -g 1000 vscode && \
13+
useradd -m -u 1000 -g vscode vscode
14+
15+
# Set the working directory
1116
WORKDIR /usr/src/app
1217

18+
# Set permissions for the working directory
19+
RUN chown -R vscode:vscode /usr/src/app
20+
21+
# Switch to the non-root user
22+
USER vscode
23+
1324
# Copy Gemfile into the container (necessary for `bundle install`)
1425
COPY Gemfile ./
1526

16-
# Install bundler and dependencies
17-
RUN gem install bundler:2.3.26 && bundle install
1827

19-
# Expose port 4000 for Jekyll server
20-
EXPOSE 4000
2128

22-
# Command to serve the Jekyll site
23-
CMD ["bundle", "exec", "jekyll", "serve", "--host", "0.0.0.0", "--watch"]
29+
# Install bundler and dependencies
30+
RUN gem install connection_pool:2.5.0
31+
RUN gem install bundler:2.3.26
32+
RUN bundle install
2433

34+
# Command to serve the Jekyll site
35+
CMD ["jekyll", "serve", "-H", "0.0.0.0", "-w", "--config", "_config.yml,_config_docker.yml"]

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ group :jekyll_plugins do
44
gem 'jekyll'
55
gem 'jekyll-feed'
66
gem 'jekyll-sitemap'
7+
gem 'jekyll-redirect-from'
78
gem 'jemoji'
89
gem 'webrick', '~> 1.8'
910
end
1011

1112
gem 'github-pages'
13+
gem 'connection_pool', '2.5.0'

README.md

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Academic Pages
2-
**Academic Pages is a Github Pages template for academic websites.**
2+
**Academic Pages is a GitHub Pages template for personal and professional portfolio-oriented websites.**
33

4-
![Academic Pages template example](images/homepage.png "Academic Pages template example")
4+
![Academic Pages template example](images/themes/homepage-light.png "Academic Pages template example")
55

66
# Getting Started
77

88
1. Register a GitHub account if you don't have one and confirm your e-mail (required!)
99
1. Click the "Use this template" button in the top right.
10-
1. On the "New repository" page, enter your repository name as "[your GitHub username].github.io", which will also be your website's URL.
10+
1. On the "New repository" page, enter your public repository name as "[your GitHub username].github.io", which will also be your website's URL.
1111
1. Set site-wide configuration and add your content.
1212
1. Upload any files (like PDFs, .zip files, etc.) to the `files/` directory. They will appear at https://[your GitHub username].github.io/files/example.pdf.
1313
1. Check status by going to the repository settings, in the "GitHub pages" section
@@ -17,40 +17,59 @@ See more info at https://academicpages.github.io/
1717

1818
## Running locally
1919

20-
When you are initially working your website, it is very useful to be able to preview the changes locally before pushing them to GitHub. To work locally you will need to:
20+
When you are initially working on your website, it is very useful to be able to preview the changes locally before pushing them to GitHub. To work locally you will need to:
2121

2222
1. Clone the repository and made updates as detailed above.
23+
24+
### Using a different IDE
2325
1. Make sure you have ruby-dev, bundler, and nodejs installed
2426

2527
On most Linux distribution and [Windows Subsystem Linux](https://learn.microsoft.com/en-us/windows/wsl/about) the command is:
2628
```bash
2729
sudo apt install ruby-dev ruby-bundler nodejs
2830
```
31+
If you see error `Unable to locate package ruby-bundler`, `Unable to locate package nodejs `, run the following:
32+
```bash
33+
sudo apt update && sudo apt upgrade -y
34+
```
35+
then try run `sudo apt install ruby-dev ruby-bundler nodejs` again.
36+
2937
On MacOS the commands are:
3038
```bash
3139
brew install ruby
3240
brew install node
3341
gem install bundler
3442
```
3543
1. Run `bundle install` to install ruby dependencies. If you get errors, delete Gemfile.lock and try again.
36-
1. Run `jekyll serve -l -H localhost` to generate the HTML and serve it from `localhost:4000` the local server will automatically rebuild and refresh the pages on change.
44+
45+
If you see file permission error like `Fetching bundler-2.6.3.gem ERROR: While executing gem (Gem::FilePermissionError) You don't have write permissions for the /var/lib/gems/3.2.0 directory.` or `Bundler::PermissionError: There was an error while trying to write to /usr/local/bin.`
46+
Install Gems Locally (Recommended):
47+
```bash
48+
bundle config set --local path 'vendor/bundle'
49+
```
50+
then try run `bundle install` again. If succeeded, you should see a folder called `vendor` and `.bundle`.
51+
52+
1. Run `jekyll serve -l -H localhost` to generate the HTML and serve it from `localhost:4000` the local server will automatically rebuild and refresh the pages on change to Markdown (*.md) and HTML files, while changes to the core template and configuration (i.e., `_config.yml`) will require stoping and restarting Jekyll.
53+
You may also try `bundle exec jekyll serve -l -H localhost` to ensure jekyll to use specific dependencies on your own local machine.
3754
3855
If you are running on Linux it may be necessary to install some additional dependencies prior to being able to run locally: `sudo apt install build-essential gcc make`
3956
4057
## Using Docker
4158
4259
Working from a different OS, or just want to avoid installing dependencies? You can use the provided `Dockerfile` to build a container that will run the site for you if you have [Docker](https://www.docker.com/) installed.
4360
44-
Start by build the container:
61+
You can build and execute the container by running the following command in the repository:
4562
4663
```bash
47-
docker build -t jekyll-site .
64+
chmod -R 777 .
65+
docker compose up
4866
```
4967
50-
Next, run the container:
51-
```bash
52-
docker run -p 4000:4000 --rm -v $(pwd):/usr/src/app jekyll-site
53-
```
68+
You should now be able to access the website from `localhost:4000`.
69+
70+
### Using the DevContainer in VS Code
71+
72+
If you are using [Visual Studio Code](https://code.visualstudio.com/) you can use the [Dev Container](https://code.visualstudio.com/docs/devcontainers/containers) that comes with this Repository. Normally VS Code detects that a development coontainer configuration is available and asks you if you want to use the container. If this doesn't happen you can manually start the container by **F1->DevContainer: Reopen in Container**. This restarts your VS Code in the container and automatically hosts your academic page locally on http://localhost:4000. All changes will be updated live to that page after a few seconds.
5473
5574
# Maintenance
5675

_config.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ author:
4949
stackoverflow : # User number or user number and name (i.e., use "1" or "1/jeff-atwood")
5050

5151
# Social media
52-
bluesky : # "bsky.app" # Replace this with you Bluesky username
52+
artstation : # Username
53+
bluesky : "bsky.app" # Replace this with you Bluesky username
5354
facebook : # Username
5455
flickr : # Username
5556
foursquare : # Username
@@ -84,12 +85,12 @@ publication_category:
8485
title: 'Conference Papers'
8586

8687
# Site Settings
87-
teaser : # filename of teaser fallback teaser image placed in /images/, .e.g. "500x300.png"
88+
teaser : # filename of teaser fallback teaser image placed in /images/ for social media previews
8889
breadcrumbs : false # true, false (default)
8990
words_per_minute : 160
9091
future : true
9192
read_more : "disabled" # if enabled, adds "Read more" links to excerpts
92-
talkmap_link : false #change to true to add link to talkmap on talks page
93+
talkmap_link : false #change to true to add link to talkmap on talks page
9394
comments:
9495
provider : # false (default), "disqus", "discourse", "facebook", "google-plus", "staticman", "custom"
9596
disqus:
@@ -135,7 +136,8 @@ facebook:
135136
username :
136137
app_id :
137138
publisher :
138-
og_image : # Open Graph/Twitter default site image
139+
og_image : # Social media default site image
140+
og_description : # Social media default site image description
139141
# For specifying social profiles
140142
# - https://developers.google.com/structured-data/customize/social-profiles
141143
social:
@@ -286,14 +288,14 @@ defaults:
286288
# Sass/SCSS
287289
sass:
288290
sass_dir: _sass
289-
style: compressed # http://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style
291+
style: compressed # https://sass-lang.com/documentation/file.SASS_REFERENCE.html#output_style
290292

291293

292294
# Outputting
293295
permalink: /:categories/:title/
294296
# paginate: 5 # amount of posts to show
295297
# paginate_path: /page:num/
296-
timezone: Etc/UTC # http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
298+
timezone: Etc/UTC # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
297299

298300

299301
# Plugins
@@ -302,6 +304,7 @@ plugins:
302304
- jekyll-gist
303305
- jekyll-paginate
304306
- jekyll-sitemap
307+
- jekyll-redirect-from
305308
- jemoji
306309

307310
# Mimic GitHub Pages with --safe
@@ -310,6 +313,7 @@ whitelist:
310313
- jekyll-gist
311314
- jekyll-paginate
312315
- jekyll-sitemap
316+
- jekyll-redirect-from
313317
- jemoji
314318

315319

@@ -343,7 +347,7 @@ tag_archive:
343347

344348

345349
# HTML Compression
346-
# - http://jch.penibelst.de/
350+
# - https://jch.penibelst.de/
347351
compress_html:
348352
clippings: all
349353
ignore:

_config_docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
url: ""

_data/authors.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Name Name:
44
name : "Name Name"
5-
uri : "http://name.com"
5+
uri : "https://name.com"
66
email : "name@name.com"
77
bio : "This is the first name."
88
avatar : "bio-photo-2.jpg"
@@ -15,4 +15,4 @@ Name2 Name2:
1515
bio : "I ordered what?"
1616
avatar : "bio-photo.jpg"
1717
twitter : "name2"
18-
google_plus : "Name"
18+
google_plus : "Name"

0 commit comments

Comments
 (0)