Skip to content

Commit dceb88a

Browse files
committed
Initial commit by Clayton to create my website
- Add new features: "Edit last-time updated" and "Dynamic Dark Mode triggering" - Update license information - Update Jekyll version to 3.9.3 - Add `minima` gem, `jekyll-feed` gem, `tzinfo` and `tzinfo-data` gems, `wdm` gem, and `github-pages` gem - Add an include for a publications page and projects page - Add a `. [.github/workflows/update_lasttime.yml] - Add a Github Action to update the 'last_updated_time' property in the _config.yml file - Use the josStorer/get-current-time action to get the current time in a specific format - Use the fjogeleit/yaml-update-action to update the 'last_updated_time' property in the _config.yml file with the current time value - Commit the change with the message 'Last Time Updated [_includes/v1/default.html] - Add an include for a publications page - Add an include for a projects page [README.md] - Added two new features: "Edit last-time updated" and "Dynamic Dark Mode triggering" - Updated the license information [_includes/v1/projects.html] - Add a `<h3>` tag for the project title - Replace the `{% include` with a `<div>` for better styling - Add a `<span>` tag to display the project image - Add an optional `<p>` tag to display a quote - Strip the project description and convert it to markdown [images/AMRG.jpg] - Add a new image file [files/Clayton_Auld_Resume_LinkedIn.pdf] - Add a file called `Clayton_Auld_Resume_LinkedIn.pdf` [images/landscape-trees.jpg] - Delete the image `landscape-trees.jpg` [docker-compose.yml] - Change container name from `modern-resume-theme` to `clayton-resume` - Update volume mapping from `./:/srv/jekyll` [_test/_config-version-1.yml] - Change the data directory from `_test/_data` to `_data` [images/profile2.jpg] - Add new profile image [.devcontainer/library-scripts/meta.dev] - Add `meta.dev` file with `VERSION='dev'` [modern-resume-theme.gemspec] - Change the author and email from `James Grant` and `[email protected]` to `Clayton Auld` and `[email protected]` - Change the required Ruby version from `~> 2.0` to `~> 3.2` - Update the `github-pages` dependency from `~> 209` to `~> 228` - Update the `jekyll-seo-tag [files/Clayton_Auld_LinkedIn.pdf] - Add Clayton Auld's LinkedIn profile to the files directory [.devcontainer/library-scripts/README.md] - Add a README.md to the library-scripts folder - Warn that folder contents may be replaced with files from the vscode-dev-containers repository's script-library folder - Suggest retaining edits by moving the file to a different location, or deleting it if not needed [.devcontainer/Dockerfile] - Change Dockerfile to support Ubuntu 22.04, 20.04, 18.04 - Install nano, git, make, zlib1g-dev, build-essential, libssl-dev, libreadline-dev, libyaml-dev, libxml2-dev, libxslt1-dev, libcurl4-openssl-dev, libffi-dev - Set up non-root user - Copy dotfiles to home directory [_sass/modern-resume-theme.scss] - Add `.pub-img` class with styling for images [_includes/head.html] - Remove the page title from the HTML `<title>` tag - Remove the favicon link - Add Google Analytics if in production environment [_includes/about.html] - Add a line to display the last updated time on the About page [_includes/v1/publications.html] - Add a new file for publications - Add a `publications-container` div - Add a `row` div for each publication - Add an image, quote and description for each publication [.devcontainer/dotfiles/.postcreate.sh] - Install `rbenv` and `ruby-build` - Install and set `ruby` version to `3.2.1` - Update `gem` to version `3.4.7` - Install `bundler` and `jekyll` - Configure `safe.directory` for `my_online_resume/clayton-resume` - Install `bundle` dependencies - Start `jekyll` [.devcontainer/devcontainer.json] - Add `.devcontainer/devcontainer.json` file - Set container name to `Jekyll` - Specify Dockerfile to use - Set `VARIANT` argument to `ubuntu-22.04` - Add `postCreateCommand` to run `/home/vscode/.postcreate.sh` - Set `remoteUser` to `vscode` [images/profile.jpg] - Add a new file `images/profile.jpg` [files/Clayton_Auld_Resume.pdf] - Add new file `Clayton_Auld_Resume.pdf` [.github/workflows/trigger_darkmode.yml] - Add a cron job to trigger dark mode - Set environment variables for light and dark mode start times - Enable dark mode if the current hour is before the light mode start time or after the dark mode start time - Disable dark mode if the current hour is between the light and dark mode start times [Gemfile] - Change the Jekyll version from `4.3.2` to `3.9.3` - Add the `minima` gem - Uncomment the `github-pages` gem - Add `jekyll-feed` gem to the `jekyll_plugins` group - Add `tzinfo` and `tzinfo-data` gems for Windows and JRuby - Add `wdm` gem for Windows - Lock the `http
1 parent f811871 commit dceb88a

31 files changed

+1549
-262
lines changed

.devcontainer/Dockerfile

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# [Choice] Ubuntu version (use ubuntu-22.04 or ubuntu-18.04 on local arm64/Apple Silicon): ubuntu-22.04, ubuntu-20.04, ubuntu-18.04
2+
ARG VARIANT=ubuntu-22.04
3+
FROM mcr.microsoft.com/vscode/devcontainers/base:1-${VARIANT}
4+
5+
ENV LANG="en_US.UTF-8" \
6+
SHELL="/usr/bin/zsh"
7+
8+
# Options for setup script
9+
ARG INSTALL_ZSH="true"
10+
ARG UPGRADE_PACKAGES="true"
11+
ARG USERNAME=vscode
12+
ARG USER_UID=1000
13+
ARG USER_GID=$USER_UID
14+
# Install needed packages and setup non-root user. Use a separate RUN statement to add your own dependencies.
15+
COPY library-scripts/*.sh library-scripts/*.env /tmp/library-scripts/
16+
RUN bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" "true" "true" \
17+
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts
18+
19+
# Install python and sphinx packages
20+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive && apt-get -y upgrade && \
21+
apt-get -y install --no-install-recommends \
22+
nano \
23+
git \
24+
make \
25+
zlib1g-dev \
26+
build-essential \
27+
libssl-dev \
28+
libreadline-dev \
29+
libyaml-dev \
30+
libxml2-dev \
31+
libxslt1-dev \
32+
libcurl4-openssl-dev \
33+
libffi-dev
34+
35+
36+
COPY --chown=vscode:vscode dotfiles/.* /home/vscode/

.devcontainer/devcontainer.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "Jekyll",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
// Update 'VARIANT' to pick an Ubuntu version: jammy / ubuntu-22.04, focal / ubuntu-20.04, bionic /ubuntu-18.04
6+
// Use ubuntu-22.04 or ubuntu-18.04 on local arm64/Apple Silicon.
7+
"args": { "VARIANT": "ubuntu-22.04" }
8+
},
9+
10+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
11+
// "forwardPorts": [80],
12+
13+
// Use 'postCreateCommand' to run commands after the container is created.
14+
"postCreateCommand": "/home/vscode/.postcreate.sh",
15+
16+
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
17+
"remoteUser": "vscode"
18+
19+
}

.devcontainer/dotfiles/.bashrc

+143
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
# ~/.bashrc: executed by bash(1) for non-login shells.
2+
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
3+
# for examples
4+
5+
# If not running interactively, don't do anything
6+
case $- in
7+
*i*) ;;
8+
*) return;;
9+
esac
10+
11+
# don't put duplicate lines or lines starting with space in the history.
12+
# See bash(1) for more options
13+
HISTCONTROL=ignoreboth
14+
15+
# append to the history file, don't overwrite it
16+
shopt -s histappend
17+
18+
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
19+
HISTSIZE=1000
20+
HISTFILESIZE=2000
21+
22+
# check the window size after each command and, if necessary,
23+
# update the values of LINES and COLUMNS.
24+
shopt -s checkwinsize
25+
26+
# If set, the pattern "**" used in a pathname expansion context will
27+
# match all files and zero or more directories and subdirectories.
28+
#shopt -s globstar
29+
30+
# make less more friendly for non-text input files, see lesspipe(1)
31+
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
32+
33+
# set variable identifying the chroot you work in (used in the prompt below)
34+
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
35+
debian_chroot=$(cat /etc/debian_chroot)
36+
fi
37+
38+
# set a fancy prompt (non-color, unless we know we "want" color)
39+
case "$TERM" in
40+
xterm-color|*-256color) color_prompt=yes;;
41+
esac
42+
43+
# uncomment for a colored prompt, if the terminal has the capability; turned
44+
# off by default to not distract the user: the focus in a terminal window
45+
# should be on the output of commands, not on the prompt
46+
#force_color_prompt=yes
47+
48+
if [ -n "$force_color_prompt" ]; then
49+
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
50+
# We have color support; assume it's compliant with Ecma-48
51+
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
52+
# a case would tend to support setf rather than setaf.)
53+
color_prompt=yes
54+
else
55+
color_prompt=
56+
fi
57+
fi
58+
59+
if [ "$color_prompt" = yes ]; then
60+
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
61+
else
62+
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
63+
fi
64+
unset color_prompt force_color_prompt
65+
66+
# If this is an xterm set the title to user@host:dir
67+
case "$TERM" in
68+
xterm*|rxvt*)
69+
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
70+
;;
71+
*)
72+
;;
73+
esac
74+
75+
# enable color support of ls and also add handy aliases
76+
if [ -x /usr/bin/dircolors ]; then
77+
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
78+
alias ls='ls --color=auto'
79+
#alias dir='dir --color=auto'
80+
#alias vdir='vdir --color=auto'
81+
82+
#alias grep='grep --color=auto'
83+
#alias fgrep='fgrep --color=auto'
84+
#alias egrep='egrep --color=auto'
85+
fi
86+
87+
# colored GCC warnings and errors
88+
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
89+
90+
# some more ls aliases
91+
#alias ll='ls -l'
92+
#alias la='ls -A'
93+
#alias l='ls -CF'
94+
95+
# Alias definitions.
96+
# You may want to put all your additions into a separate file like
97+
# ~/.bash_aliases, instead of adding them here directly.
98+
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
99+
100+
if [ -f ~/.bash_aliases ]; then
101+
. ~/.bash_aliases
102+
fi
103+
104+
# enable programmable completion features (you don't need to enable
105+
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
106+
# sources /etc/bash.bashrc).
107+
if ! shopt -oq posix; then
108+
if [ -f /usr/share/bash-completion/bash_completion ]; then
109+
. /usr/share/bash-completion/bash_completion
110+
elif [ -f /etc/bash_completion ]; then
111+
. /etc/bash_completion
112+
fi
113+
fi
114+
115+
# Codespaces bash prompt theme
116+
__bash_prompt() {
117+
local userpart='`export XIT=$? \
118+
&& [ ! -z "${GITHUB_USER}" ] && echo -n "\[\033[0;32m\]@${GITHUB_USER} " || echo -n "\[\033[0;32m\]\u " \
119+
&& [ "$XIT" -ne "0" ] && echo -n "\[\033[1;31m\]➜" || echo -n "\[\033[0m\]➜"`'
120+
local gitbranch='`\
121+
if [ "$(git config --get codespaces-theme.hide-status 2>/dev/null)" != 1 ]; then \
122+
export BRANCH=$(git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --short HEAD 2>/dev/null); \
123+
if [ "${BRANCH}" != "" ]; then \
124+
echo -n "\[\033[0;36m\](\[\033[1;31m\]${BRANCH}" \
125+
&& if git ls-files --error-unmatch -m --directory --no-empty-directory -o --exclude-standard ":/*" > /dev/null 2>&1; then \
126+
echo -n " \[\033[1;33m\]✗"; \
127+
fi \
128+
&& echo -n "\[\033[0;36m\]) "; \
129+
fi; \
130+
fi`'
131+
local lightblue='\[\033[1;34m\]'
132+
local removecolor='\[\033[0m\]'
133+
PS1="${userpart} ${lightblue}\w ${gitbranch}${removecolor}\$ "
134+
unset -f __bash_prompt
135+
}
136+
__bash_prompt
137+
export PROMPT_DIRTRIM=4
138+
139+
# Install rbenv
140+
export PATH="$HOME/.rbenv/bin:$PATH"
141+
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"
142+
eval "$(rbenv init -)"
143+
alias jekyll-serve='bundle exec jekyll serve --livereload --config _config.yml'

.devcontainer/dotfiles/.postcreate.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#! /bin/bash
2+
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
3+
export PATH="$HOME/.rbenv/bin:$PATH"
4+
eval "$(rbenv init -)"
5+
6+
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
7+
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"
8+
9+
rbenv install 3.2.1
10+
rbenv global 3.2.1
11+
ruby -v
12+
13+
gem update --system 3.4.7
14+
gem install bundler jekyll
15+
rbenv rehash
16+
cd /workspaces/my_online_resume/clayton-resume
17+
git config --global --add safe.directory /workspaces/my_online_resume/clayton-resume
18+
bundle install
19+
bundle exec jekyll serve --livereload --config _config.yml

.devcontainer/dotfiles/.zshrc

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# If you come from bash you might have to change your $PATH.
2+
# export PATH=$HOME/bin:/usr/local/bin:$PATH
3+
4+
# Path to your oh-my-zsh installation.
5+
export ZSH=$HOME/.oh-my-zsh
6+
7+
# Set name of the theme to load --- if set to "random", it will
8+
# load a random theme each time oh-my-zsh is loaded, in which case,
9+
# to know which specific one was loaded, run: echo $RANDOM_THEME
10+
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
11+
ZSH_THEME="codespaces"
12+
13+
# Set list of themes to pick from when loading at random
14+
# Setting this variable when ZSH_THEME="codespaces"
15+
# a theme from this variable instead of looking in $ZSH/themes/
16+
# If set to an empty array, this variable will have no effect.
17+
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
18+
19+
# Uncomment the following line to use case-sensitive completion.
20+
# CASE_SENSITIVE="true"
21+
22+
# Uncomment the following line to use hyphen-insensitive completion.
23+
# Case-sensitive completion must be off. _ and - will be interchangeable.
24+
# HYPHEN_INSENSITIVE="true"
25+
26+
# Uncomment one of the following lines to change the auto-update behavior
27+
# zstyle ':omz:update' mode disabled # disable automatic updates
28+
# zstyle ':omz:update' mode auto # update automatically without asking
29+
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
30+
31+
# Uncomment the following line to change how often to auto-update (in days).
32+
# zstyle ':omz:update' frequency 13
33+
34+
# Uncomment the following line if pasting URLs and other text is messed up.
35+
# DISABLE_MAGIC_FUNCTIONS="true"
36+
37+
# Uncomment the following line to disable colors in ls.
38+
# DISABLE_LS_COLORS="true"
39+
40+
# Uncomment the following line to disable auto-setting terminal title.
41+
# DISABLE_AUTO_TITLE="true"
42+
43+
# Uncomment the following line to enable command auto-correction.
44+
# ENABLE_CORRECTION="true"
45+
46+
# Uncomment the following line to display red dots whilst waiting for completion.
47+
# You can also set it to another string to have that shown instead of the default red dots.
48+
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
49+
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
50+
# COMPLETION_WAITING_DOTS="true"
51+
52+
# Uncomment the following line if you want to disable marking untracked files
53+
# under VCS as dirty. This makes repository status check for large repositories
54+
# much, much faster.
55+
# DISABLE_UNTRACKED_FILES_DIRTY="true"
56+
57+
# Uncomment the following line if you want to change the command execution time
58+
# stamp shown in the history command output.
59+
# You can set one of the optional three formats:
60+
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
61+
# or set a custom format using the strftime function format specifications,
62+
# see 'man strftime' for details.
63+
# HIST_STAMPS="mm/dd/yyyy"
64+
65+
# Would you like to use another custom folder than $ZSH/custom?
66+
# ZSH_CUSTOM=/path/to/new-custom-folder
67+
68+
# Which plugins would you like to load?
69+
# Standard plugins can be found in $ZSH/plugins/
70+
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
71+
# Example format: plugins=(rails git textmate ruby lighthouse)
72+
# Add wisely, as too many plugins slow down shell startup.
73+
plugins=(git)
74+
75+
source $ZSH/oh-my-zsh.sh
76+
77+
# User configuration
78+
79+
# export MANPATH="/usr/local/man:$MANPATH"
80+
81+
# You may need to manually set your language environment
82+
# export LANG=en_US.UTF-8
83+
84+
# Preferred editor for local and remote sessions
85+
# if [[ -n $SSH_CONNECTION ]]; then
86+
# export EDITOR='vim'
87+
# else
88+
# export EDITOR='mvim'
89+
# fi
90+
91+
# Compilation flags
92+
# export ARCHFLAGS="-arch x86_64"
93+
94+
# Set personal aliases, overriding those provided by oh-my-zsh libs,
95+
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
96+
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
97+
# For a full list of active aliases, run `alias`.
98+
#
99+
# Example aliases
100+
# alias zshconfig="mate ~/.zshrc"
101+
# alias ohmyzsh="mate ~/.oh-my-zsh"
102+
DISABLE_AUTO_UPDATE=true
103+
DISABLE_UPDATE_PROMPT=true
104+
105+
# Install rbenv
106+
export PATH="$HOME/.rbenv/bin:$PATH"
107+
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"
108+
eval "$(rbenv init -)"
109+
alias jekyll-serve='bundle exec jekyll serve --livereload --config _config.yml'
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Warning: Folder contents may be replaced
2+
3+
The contents of this folder will be automatically replaced with a file of the same name in the [vscode-dev-containers](https://github.com/microsoft/vscode-dev-containers) repository's [script-library folder](https://github.com/microsoft/vscode-dev-containers/tree/main/script-library) whenever the repository is packaged.
4+
5+
To retain your edits, move the file to a different location. You may also delete the files if they are not needed.

0 commit comments

Comments
 (0)