Skip to content

Commit

Permalink
remote ssg for now
Browse files Browse the repository at this point in the history
  • Loading branch information
pickledish committed Aug 31, 2023
1 parent c5d00d0 commit ddce0eb
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 205 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
tasks: build
- uses: ayeressian/bunnycdn-storage-deploy@v2.1.0
with:
source: "_site"
source: "site"
storageZoneName: "${{ secrets.STORAGE_NAME }}"
storagePassword: "${{ secrets.STORAGE_PASSWORD }}"
accessKey: "${{ secrets.BUNNY_API_KEY }}"
Expand Down
8 changes: 1 addition & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
_site
.sass-cache
.jekyll-cache
.jekyll-metadata
vendor

# generated CSS
/assets/css/tailwind.css
/site/assets/css/tailwind.css

# macOS stuff
.DS_Store
24 changes: 0 additions & 24 deletions 404.html

This file was deleted.

17 changes: 0 additions & 17 deletions Gemfile

This file was deleted.

80 changes: 0 additions & 80 deletions Gemfile.lock

This file was deleted.

46 changes: 0 additions & 46 deletions _config.yml

This file was deleted.

Binary file removed _drafts/.DS_Store
Binary file not shown.
Binary file removed _includes/.DS_Store
Binary file not shown.
Binary file removed _posts/.DS_Store
Binary file not shown.
Binary file removed assets/fonts/.DS_Store
Binary file not shown.
4 changes: 0 additions & 4 deletions index.md

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions _layouts/index.html → site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>test</title>
<title>Cloudy But No Rain - Fast Static Websites</title>
<link rel="stylesheet" href="/assets/css/tailwind.css">
<link rel="stylesheet" href="/assets/css/fonts.css">
<link rel="stylesheet" href="/assets/css/markdown.css">
{% seo %}
</head>

<body class="text-stone-900 bg-[#E8DED1] dark:text-stone-100 dark:bg-[#181410]">
Expand All @@ -18,7 +17,7 @@
</div>
<div class="w-full px-5 py-16">
<p>A WIP static site hosting service with built-in analytics and monitoring.</p>
<p>Check back soon for nicer copy.</p>
<p>Check back soon for nicer copy writing.</p>
</div>
</div>
</body>
Expand Down
35 changes: 12 additions & 23 deletions toast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,39 @@ tasks:
apt:
command: |
apt-get update
apt-get install ruby-full build-essential zlib1g-dev curl git entr --yes
apt-get install curl --yes
tailwindcss:
dependencies:
- apt
command: |
cd /usr/local/bin
curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/download/v3.3.3/tailwindcss-linux-x64
chmod +x tailwindcss-linux-x64
mv tailwindcss-linux-x64 /usr/local/bin/tailwindcss
ruby:
dependencies:
- apt
command: |
gem install jekyll bundler
bundle:
dependencies:
- ruby
input_paths:
- Gemfile
- Gemfile.lock
command: |
bundle install
build:
dependencies:
- bundle
- tailwindcss
input_paths:
- .
- site/
output_paths:
- _site/
- site/assets/css/tailwind.css
command: |
tailwindcss -o site/assets/css/tailwind.css
apt-dev:
command: |
tailwindcss -o assets/css/tailwind.css
bundle exec jekyll build
apt-get update
apt-get install python3 git entr --yes
dev:
cache: false
dependencies:
- bundle
- apt
- apt-dev
- tailwindcss
mount_paths:
- .
ports:
- 4000:4000
- 8000:8000
environment:
# https://github.com/eradman/entr/issues/3
ENTR_INOTIFY_WORKAROUND: "1"
command: |
git ls-files | entr -n -c -r -s 'tailwindcss -o assets/css/tailwind.css && bundle exec jekyll serve --no-watch --host=0.0.0.0'
git ls-files | entr -n -c -r -s 'tailwindcss -o site/assets/css/tailwind.css && cd site && python3 -m http.server'

0 comments on commit ddce0eb

Please sign in to comment.