Compare commits

..

5 commits

7 changed files with 108 additions and 57 deletions

View file

@ -1,6 +1,7 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
# <a href="https://dots.00dani.me/README">WHAT IS THIS</a> # <a href="https://dots.00dani.me/README">WHAT IS THIS</a>
{ # Wrap the entire program in a braced block so it won't run at all if you do curl | zsh and the connection drops.
global_ignore=( global_ignore=(
'\.git.*' '\.git.*'
'README\.md' 'README\.md'
@ -10,7 +11,7 @@ global_ignore=(
'\..*\.swp' '\..*\.swp'
) )
'bootstrap'() { bootstrap() {
echo 'Bootstrapping your dotfiles...' >&2 echo 'Bootstrapping your dotfiles...' >&2
mkdir -p $DOTFILES mkdir -p $DOTFILES
touch $DOTFILES/.stow touch $DOTFILES/.stow
@ -24,14 +25,14 @@ global_ignore=(
link link
} }
'clone'() { clone() {
echo "Requested packages: $argv" >&2 echo "Requested packages: $argv" >&2
for package in $argv; do for package in $argv; do
clone-one $package || return $? clone-one $package || return $?
done done
} }
'clone-one'() { clone-one() {
local url=$1 local url=$1
local package=${${url##*/}%.git} local package=${${url##*/}%.git}
# Simple package names are fetched from the configured source prefix. # Simple package names are fetched from the configured source prefix.
@ -46,7 +47,7 @@ global_ignore=(
git clone $url $DOTFILES/$package git clone $url $DOTFILES/$package
} }
'link'() { link() {
local -a packages local -a packages
packages=($argv) packages=($argv)
if (( $#packages == 0 )); then if (( $#packages == 0 )); then
@ -65,7 +66,7 @@ global_ignore=(
$STOW -d $DOTFILES -t ~ --ignore=${^global_ignore} $packages $STOW -d $DOTFILES -t ~ --ignore=${^global_ignore} $packages
} }
'process-stow-no-folding'() { process-stow-no-folding() {
zmodload zsh/mapfile zmodload zsh/mapfile
for file in ${(f)mapfile[$1]}; do for file in ${(f)mapfile[$1]}; do
file=~/$file file=~/$file
@ -75,7 +76,7 @@ global_ignore=(
done done
} }
'fetch'() { fetch() {
local -a packages local -a packages
packages=($argv) packages=($argv)
(( $#packages == 0 )) && packages=( $DOTFILES/*(N:t) ) (( $#packages == 0 )) && packages=( $DOTFILES/*(N:t) )
@ -85,7 +86,7 @@ global_ignore=(
done done
} }
'pull'() { pull() {
local -a packages local -a packages
packages=($argv) packages=($argv)
(( $#packages == 0 )) && packages=( $DOTFILES/*(N:t) ) (( $#packages == 0 )) && packages=( $DOTFILES/*(N:t) )
@ -96,7 +97,7 @@ global_ignore=(
} }
'status'() { status() {
local -a packages local -a packages
packages=($argv) packages=($argv)
(( $#packages == 0 )) && packages=( $DOTFILES/*(N:t) ) (( $#packages == 0 )) && packages=( $DOTFILES/*(N:t) )
@ -137,7 +138,7 @@ global_ignore=(
done done
} }
'main'() { main() {
: ${DOTFILES:=~/dotfiles} ${STOW:=stow} ${DOTS_SOURCE_PREFIX:=https://git.00dani.me/dot} : ${DOTFILES:=~/dotfiles} ${STOW:=stow} ${DOTS_SOURCE_PREFIX:=https://git.00dani.me/dot}
comm=$1 comm=$1
@ -159,4 +160,5 @@ global_ignore=(
esac esac
} }
{'main' "$@"} main "$@"
} # Wrap the entire program in a braced block so it won't run at all if you do curl | zsh and the connection drops.

1
site/.ruby-version Normal file
View file

@ -0,0 +1 @@
3.2.2

View file

@ -11,10 +11,10 @@ gem "webrick"
# #
# This will help ensure the proper Jekyll version is running. # This will help ensure the proper Jekyll version is running.
# Happy Jekylling! # Happy Jekylling!
gem "jekyll", "4.2.0" gem "jekyll", "4.3.2"
# This is the default theme for new Jekyll sites. You may change this to anything you like. # This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima" gem "minima", github: "jekyll/minima"
# Syntax highlighter! # Syntax highlighter!
gem "rouge" gem "rouge"

View file

@ -1,82 +1,91 @@
GIT
remote: https://github.com/jekyll/minima.git
revision: 85374864e0311f544f49139078927b41ecbe8792
specs:
minima (3.0.0.dev)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
addressable (2.7.0) addressable (2.8.5)
public_suffix (>= 2.0.2, < 5.0) public_suffix (>= 2.0.2, < 6.0)
colorator (1.1.0) colorator (1.1.0)
concurrent-ruby (1.1.9) concurrent-ruby (1.2.2)
em-websocket (0.5.2) em-websocket (0.5.3)
eventmachine (>= 0.12.9) eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0) http_parser.rb (~> 0)
eventmachine (1.2.7) eventmachine (1.2.7)
ffi (1.15.3) ffi (1.16.3)
forwardable-extended (2.6.0) forwardable-extended (2.6.0)
http_parser.rb (0.6.0) google-protobuf (3.24.4)
i18n (1.8.10) http_parser.rb (0.8.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
jekyll (4.2.0) jekyll (4.3.2)
addressable (~> 2.4) addressable (~> 2.4)
colorator (~> 1.0) colorator (~> 1.0)
em-websocket (~> 0.5) em-websocket (~> 0.5)
i18n (~> 1.0) i18n (~> 1.0)
jekyll-sass-converter (~> 2.0) jekyll-sass-converter (>= 2.0, < 4.0)
jekyll-watch (~> 2.0) jekyll-watch (~> 2.0)
kramdown (~> 2.3) kramdown (~> 2.3, >= 2.3.1)
kramdown-parser-gfm (~> 1.0) kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0) liquid (~> 4.0)
mercenary (~> 0.4.0) mercenary (>= 0.3.6, < 0.5)
pathutil (~> 0.9) pathutil (~> 0.9)
rouge (~> 3.0) rouge (>= 3.0, < 5.0)
safe_yaml (~> 1.0) safe_yaml (~> 1.0)
terminal-table (~> 2.0) terminal-table (>= 1.8, < 4.0)
jekyll-feed (0.15.1) webrick (~> 1.7)
jekyll-feed (0.17.0)
jekyll (>= 3.7, < 5.0) jekyll (>= 3.7, < 5.0)
jekyll-sass-converter (2.1.0) jekyll-sass-converter (3.0.0)
sassc (> 2.0.1, < 3.0) sass-embedded (~> 1.54)
jekyll-seo-tag (2.7.1) jekyll-seo-tag (2.8.0)
jekyll (>= 3.8, < 5.0) jekyll (>= 3.8, < 5.0)
jekyll-watch (2.2.1) jekyll-watch (2.2.1)
listen (~> 3.0) listen (~> 3.0)
kramdown (2.3.1) kramdown (2.4.0)
rexml rexml
kramdown-parser-gfm (1.1.0) kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0) kramdown (~> 2.0)
liquid (4.0.3) liquid (4.0.4)
listen (3.5.1) listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3) rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10) rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0) mercenary (0.4.0)
minima (2.5.1)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
pathutil (0.16.2) pathutil (0.16.2)
forwardable-extended (~> 2.6) forwardable-extended (~> 2.6)
public_suffix (4.0.6) public_suffix (5.0.3)
rb-fsevent (0.11.0) rake (13.0.6)
rb-fsevent (0.11.2)
rb-inotify (0.10.1) rb-inotify (0.10.1)
ffi (~> 1.0) ffi (~> 1.0)
rexml (3.2.5) rexml (3.2.6)
rouge (3.26.0) rouge (4.1.3)
safe_yaml (1.0.5) safe_yaml (1.0.5)
sassc (2.4.0) sass-embedded (1.69.3)
ffi (~> 1.9) google-protobuf (~> 3.23)
terminal-table (2.0.0) rake (>= 13.0.0)
unicode-display_width (~> 1.1, >= 1.1.1) terminal-table (3.0.2)
unicode-display_width (1.7.0) unicode-display_width (>= 1.1.1, < 3)
webrick (1.7.0) unicode-display_width (2.5.0)
webrick (1.8.1)
PLATFORMS PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
jekyll (= 4.2.0) jekyll (= 4.3.2)
minima minima!
rouge rouge
webrick webrick
RUBY VERSION RUBY VERSION
ruby 3.0.1p64 ruby 3.2.2p53
BUNDLED WITH BUNDLED WITH
2.2.15 2.4.10

View file

@ -1,12 +1,21 @@
---
title: dot/dots title: dot/dots
email: dani@00dani.me author:
name: Danielle McLean
email: dani@00dani.me
description: "Bootstrap and simple management script for my dotfiles" description: "Bootstrap and simple management script for my dotfiles"
github_username: 00dani
mastodon:
- username: 00dani
instance: elekk.club
url: 'https://dots.00dani.me' url: 'https://dots.00dani.me'
# Build settings # Build settings
theme: minima theme: minima
minima:
skin: auto
social_links:
- platform: github
user_url: 'https://github.com/00dani'
title: 'GitHub'
- platform: mastodon
user_url: 'https://elekk.xyz/@00dani'
title: '@00dani@elekk.xyz'
highlighter: rouge highlighter: rouge

View file

@ -0,0 +1,30 @@
<footer class="site-footer h-card">
<data class="u-url" href="{{ "/" | relative_url }}"></data>
<div class="wrapper">
<div class="footer-col-wrapper">
<div class="footer-col">
{%- if site.author %}
<ul class="contact-list">
{% if site.author.name -%}
<li class="p-name">{{ site.author.name | escape }}</li>
{% endif -%}
{% if site.author.email -%}
<li><a class="u-email" href="mailto:{{ site.author.email }}">{{ site.author.email }}</a></li>
{%- endif %}
</ul>
{%- endif %}
</div>
<div class="footer-col">
<p>{{ site.description | escape }}</p>
</div>
</div>
<div class="social-links">
{%- include social.html -%}
</div>
</div>
</footer>

View file

@ -1,4 +1,4 @@
--- ---
--- ---
{% include_relative local/bin/dots %} {% include_relative local/bin/dots %}
# <style>body { white-space: pre-wrap; font-family: Monoid, Inconsolata, "Ubuntu Mono", Consolas, Menlo, monospace; } a { font-size: 1.3em; }</style> # <link rel="stylesheet" href="/assets/css/style.css"><style>body { display: block; white-space: pre-wrap; font-family: "Menlo", "Inconsolata", "Consolas", "Roboto Mono", "Ubuntu Mono", "Liberation Mono", "Courier New", monospace; margin: 5px; tab-size: 2; } a { font-size: 1.3em; }</style>