Skip to content

Commit d09f8f1

Browse files
committed
Merge remote-tracking branch 'upstream/master'
# Conflicts: # _config.yml # _data/navigation.yml # _pages/about.md # _publications/2009-10-01-paper-title-number-1.md
2 parents 801437e + a3a2936 commit d09f8f1

Some content is hidden

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

44 files changed

+1834
-126
lines changed

.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.

.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 and bundle for alternative installation
16+
vendor/
17+
.bundle/
18+
19+
# Ignore folders related to IDEs
20+
.vscode/

Dockerfile

100644100755
Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,30 @@ 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

27+
28+
1629
# Install bundler and dependencies
17-
RUN gem install bundler:2.3.26 && bundle install
30+
RUN gem install connection_pool:2.5.0
31+
RUN gem install bundler:2.3.26
32+
RUN bundle install
1833

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

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ group :jekyll_plugins do
1010
end
1111

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

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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
@@ -20,6 +20,8 @@ See more info at https://academicpages.github.io/
2020
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:
@@ -45,7 +47,7 @@ When you are initially working on your website, it is very useful to be able to
4547
```bash
4648
bundle config set --local path 'vendor/bundle'
4749
```
48-
then try run `bundle install` again. If succeeded, you should see a folder called `vendor` and open `.gitignore` then add `vendor` inside it.
50+
then try run `bundle install` again. If succeeded, you should see a folder called `vendor` and `.bundle`.
4951
5052
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.
5153
You may also try `bundle exec jekyll serve -l -H localhost` to ensure jekyll to use specific dependencies on your own local machine.
@@ -59,11 +61,16 @@ Working from a different OS, or just want to avoid installing dependencies? You
5961
You can build and execute the container by running the following command in the repository:
6062
6163
```bash
64+
chmod -R 777 .
6265
docker compose up
6366
```
6467
6568
You should now be able to access the website from `localhost:4000`.
6669
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.
73+
6774
# Maintenance
6875
6976
Bug reports and feature requests to the template should be [submitted via GitHub](https://github.com/academicpages/academicpages.github.io/issues/new/choose). For questions concerning how to style the template, please feel free to start a [new discussion on GitHub](https://github.com/academicpages/academicpages.github.io/discussions).

_config_docker.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

_data/cv.json

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
{
2+
"basics": {
3+
"name": "Your Sidebar Name",
4+
"email": "none@example.org",
5+
"phone": "",
6+
"website": "https://academicpages.github.io",
7+
"summary": "Currently employed at Red Brick University. Short biography for the left-hand sidebar",
8+
"location": {
9+
"address": "",
10+
"postalCode": "",
11+
"city": "Earth",
12+
"countryCode": "US",
13+
"region": ""
14+
},
15+
"profiles": [
16+
{
17+
"network": "Google Scholar",
18+
"username": "",
19+
"url": "https://scholar.google.com/citations?user=PS_CX0AAAAAJ"
20+
},
21+
{
22+
"network": "ORCID",
23+
"username": "",
24+
"url": "http://orcid.org/yourorcidurl"
25+
},
26+
{
27+
"network": "GitHub",
28+
"username": "academicpages",
29+
"url": "https://github.com/academicpages"
30+
}
31+
]
32+
},
33+
"work": [],
34+
"education": [
35+
{
36+
"institution": "GitHub University",
37+
"area": "Ph.D in Version Control Theory",
38+
"studyType": "",
39+
"startDate": "",
40+
"endDate": "2018",
41+
"gpa": null,
42+
"courses": []
43+
},
44+
{
45+
"institution": "GitHub University",
46+
"area": "M.S. in Jekyll",
47+
"studyType": "",
48+
"startDate": "",
49+
"endDate": "2014",
50+
"gpa": null,
51+
"courses": []
52+
},
53+
{
54+
"institution": "GitHub University",
55+
"area": "B.S. in GitHub",
56+
"studyType": "",
57+
"startDate": "",
58+
"endDate": "2012",
59+
"gpa": null,
60+
"courses": []
61+
}
62+
],
63+
"skills": [],
64+
"languages": [],
65+
"interests": [],
66+
"references": [],
67+
"publications": [
68+
{
69+
"name": "Paper Title Number 1",
70+
"publisher": "Journal 1",
71+
"releaseDate": "2009-10-01",
72+
"website": "http://academicpages.github.io/files/paper1.pdf",
73+
"summary": "This paper is about the number 1. The number 2 is left for future work."
74+
},
75+
{
76+
"name": "Paper Title Number 2",
77+
"publisher": "Journal 1",
78+
"releaseDate": "2010-10-01",
79+
"website": "http://academicpages.github.io/files/paper2.pdf",
80+
"summary": "This paper is about the number 2. The number 3 is left for future work."
81+
},
82+
{
83+
"name": "Paper Title Number 3",
84+
"publisher": "Journal 1",
85+
"releaseDate": "2015-10-01",
86+
"website": "http://academicpages.github.io/files/paper3.pdf",
87+
"summary": "This paper is about the number 3. The number 4 is left for future work."
88+
},
89+
{
90+
"name": "Paper Title Number 4",
91+
"publisher": "GitHub Journal of Bugs",
92+
"releaseDate": "2024-02-17",
93+
"website": "http://academicpages.github.io/files/paper3.pdf",
94+
"summary": "This paper is about fixing template issue #693."
95+
}
96+
],
97+
"presentations": [
98+
{
99+
"name": "Talk 1 on Relevant Topic in Your Field",
100+
"event": "UC San Francisco, Department of Testing",
101+
"date": "2012-03-01",
102+
"location": "San Francisco, CA, USA",
103+
"description": ""
104+
},
105+
{
106+
"name": "Tutorial 1 on Relevant Topic in Your Field",
107+
"event": "UC-Berkeley Institute for Testing Science",
108+
"date": "2013-03-01",
109+
"location": "Berkeley, CA, USA",
110+
"description": ""
111+
},
112+
{
113+
"name": "Talk 2 on Relevant Topic in Your Field",
114+
"event": "London School of Testing",
115+
"date": "2014-02-01",
116+
"location": "London, UK",
117+
"description": ""
118+
},
119+
{
120+
"name": "Conference Proceeding talk 3 on Relevant Topic in Your Field",
121+
"event": "Testing Institute of America 2014 Annual Conference",
122+
"date": "2014-03-01",
123+
"location": "Los Angeles, CA, USA",
124+
"description": ""
125+
}
126+
],
127+
"teaching": [
128+
{
129+
"course": "Teaching experience 1",
130+
"institution": "University 1, Department",
131+
"date": "2014-01-01",
132+
"role": "Undergraduate course",
133+
"description": ""
134+
},
135+
{
136+
"course": "Teaching experience 2",
137+
"institution": "University 1, Department",
138+
"date": "2015-01-01",
139+
"role": "Workshop",
140+
"description": ""
141+
}
142+
],
143+
"portfolio": [
144+
{
145+
"name": "Portfolio item number 1",
146+
"category": "portfolio",
147+
"date": "",
148+
"url": "",
149+
"description": "Short description of portfolio item number 1<br/><img src='/images/500x300.png'>"
150+
}
151+
]
152+
}

_includes/archive-single.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,32 @@ <h2 class="archive__item-title" itemprop="headline">
5252
<p class="archive__item-excerpt" itemprop="description"><p>{{ post.excerpt | markdownify | remove: '<p>' | remove: '</p>' }}<strong><a href="{{ base_path }}{{ post.url }}" rel="permalink"> Read more</a></strong></p></p>
5353
{% endif %}
5454

55-
{% if post.citation and post.paperurl and post.slidesurl %}
55+
{% if post.citation and post.paperurl and post.slidesurl and post.bibtexurl %}
56+
<p>Recommended citation: {{ post.citation }}<br /><a href="{{ post.paperurl }}">Download Paper</a> | <a href="{{ post.slidesurl }}">Download Slides</a> | <a href="{{ post.bibtexurl }}">Download Bibtex</a></p>
57+
{% elsif post.citation and post.paperurl and post.slidesurl %}
5658
<p>Recommended citation: {{ post.citation }}<br /><a href="{{ post.paperurl }}">Download Paper</a> | <a href="{{ post.slidesurl }}">Download Slides</a></p>
59+
{% elsif post.citation and post.paperurl and post.bibtexurl %}
60+
<p>Recommended citation: {{ post.citation }}<br /><a href="{{ post.paperurl }}">Download Paper</a> | <a href="{{ post.bibtexurl }}">Download Bibtex</a></p>
5761
{% elsif post.citation and post.paperurl %}
5862
<p>Recommended citation: {{ post.citation }}<br /><a href="{{ post.paperurl }}">Download Paper</a></p>
63+
{% elsif post.citation and post.slidesurl and post.bibtexurl %}
64+
<p>Recommended citation: {{ post.citation }}<br /><a href="{{ post.slidesurl }}">Download Slides</a> | <a href="{{ post.bibtexurl}}">Download Bibtex</a></p>
5965
{% elsif post.citation and post.slidesurl %}
6066
<p>Recommended citation: {{ post.citation }}<br /><a href="{{ post.slidesurl }}">Download Slides</a></p>
67+
{% elsif post.citation and post.bibtexurl %}
68+
<p>Recommended citation: {{ post.citation }}<br /><a href="{{ post.bibtexurl }}">Download Bibtex</a></p>
6169
{% elsif post.citation %}
6270
<p>Recommended citation: {{ post.citation }}</p>
71+
{% elsif post.paperurl and post.bibtexurl %}
72+
<p><a href=" {{ post.paperurl }} ">Download Paper</a> | <a href="{{ post.bibtexurl }}">Download Bibtex</a></p>
6373
{% elsif post.paperurl %}
6474
<p><a href=" {{ post.paperurl }} ">Download Paper</a></p>
75+
{% elsif post.slidesurl and post.bibtexurl %}
76+
<p><a href="{{ post.slidesurl }}">Download Slides</a> | <a href="{{ post.bibtexurl }}">Download Bibtex</a></p>
6577
{% elsif post.slidesurl %}
6678
<p><a href="{{ post.slidesurl }}">Download Slides</a></p>
79+
{% elsif post.bibtexurl %}
80+
<p><a href="{{ post.bibtexurl }}">Download Bibtex</a></p>
6781
{% endif %}
6882

6983
</article>

_includes/author-profile.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h3 class="author__name">{{ author.name }}</h3>
2525
<ul class="author__urls social-icons">
2626
<!-- Font Awesome icons / Biographic information -->
2727
{% if author.location %}
28-
<li class="author__desktop"><i class="fa-solid fa-location-dot icon-pad-right" aria-hidden="true"></i>{{ author.location }}</li>
28+
<li class="author__desktop"><i class="fas fa-fw fa-location-dot icon-pad-right" aria-hidden="true"></i>{{ author.location }}</li>
2929
{% endif %}
3030
{% if author.employer %}
3131
<li class="author__desktop"><i class="fas fa-fw fa-building-columns icon-pad-right" aria-hidden="true"></i>{{ author.employer }}</li>
@@ -38,11 +38,14 @@ <h3 class="author__name">{{ author.name }}</h3>
3838
{% endif %}
3939

4040
<!-- Font Awesome and Academicons icons / Academic websites -->
41+
{% if author.academia %}
42+
<li><a href="{{ author.academia }}"><i class="ai ai-academia ai-fw icon-pad-right" aria-hidden="true"></i>Academia</a></li>
43+
{% endif %}
4144
{% if author.arxiv %}
4245
<li><a href="{{ author.arxiv }}"><i class="ai ai-arxiv ai-fw icon-pad-right"></i>arXiv</a></li>
4346
{% endif %}
4447
{% if author.googlescholar %}
45-
<li><a href="{{ author.googlescholar }}"><i class="ai ai-google-scholar icon-pad-right"></i>Google Scholar</a></li>
48+
<li><a href="{{ author.googlescholar }}"><i class="ai ai-google-scholar ai-fw icon-pad-right"></i>Google Scholar</a></li>
4649
{% endif %}
4750
{% if author.semantic %}
4851
<li><a href="{{ author.semantic }}"><i class="ai ai-semantic-scholar ai-fw icon-pad-right"></i>Semantic Scholar</a></li>
@@ -60,7 +63,7 @@ <h3 class="author__name">{{ author.name }}</h3>
6063
<li><a href="{{ author.researchgate }}"><i class="fab fa-fw fa-researchgate icon-pad-right" aria-hidden="true"></i>ResearchGate</a></li>
6164
{% endif %}
6265
{% if author.scopus %}
63-
<li><a href="{{ author.scopus }}"><i class="ai ai-scopus icon-pad-right"></i>Scopus</a></li>
66+
<li><a href="{{ author.scopus }}"><i class="ai ai-scopus ai-fw icon-pad-right"></i>Scopus</a></li>
6467
{% endif %}
6568

6669
<!-- Font Awesome icons / Repositories and software development -->

0 commit comments

Comments
 (0)