Skip to content

Commit

Permalink
feat: standalone init
Browse files Browse the repository at this point in the history
  • Loading branch information
faultables committed Sep 3, 2024
0 parents commit 1038973
Show file tree
Hide file tree
Showing 18 changed files with 3,166 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = (config) => {
config.addWatchTarget("./assets/css");

config.addPassthroughCopy("./assets");
config.addPassthroughCopy("./src/**/*.{jpg,png}");

return {
dir: {
input: "src",
output: "dist",
},
};
};
22 changes: 22 additions & 0 deletions .gitea/workflows/eleventy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: eleventy
on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- run: echo "LAST_COMMIT=`git rev-parse --short HEAD`" >> $GITHUB_ENV
- name: Build
uses: TartanLlama/actions-eleventy@master
with:
install_dependencies: true
- uses: actions/setup-node@v3
with:
node-version: "20.x"
- run: npx wrangler pages deploy dist --project-name=$CF_PROJECT_NAME --branch=$GITHUB_REF_NAME
env:
CLOUDFLARE_API_TOKEN: ${{ vars.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
CF_PROJECT_NAME: ${{ vars.CF_PROJECT_NAME }}
23 changes: 23 additions & 0 deletions .github/workflows/eleventy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: eleventy
on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- run: echo "LAST_COMMIT=`git rev-parse --short HEAD`" >> $GITHUB_ENV
- name: Build
uses: TartanLlama/actions-eleventy@master
with:
install_dependencies: true
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
projectName: ${{ vars.CF_PROJECT_NAME }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
directory: dist
branch: main
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
dist

.DS_Store
.wrangler
135 changes: 135 additions & 0 deletions assets/css/reset.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
display: block;
}

body {
line-height: 1;
}

ol,
ul {
list-style: none;
}

blockquote,
q {
quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
content: "";
content: none;
}

table {
border-collapse: collapse;
border-spacing: 0;
}
Loading

0 comments on commit 1038973

Please sign in to comment.