Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
root = true

[*]
indent_style = space
indent_size = 4

end_of_line = lf
charset = utf-8

trim_trailing_whitespace = true
insert_final_newline = true

max_line_length = 120

[*.yaml]
indent_size = 2

[*.md]
indent_size = 2
35 changes: 35 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
const directoryOutputPlugin = require("@11ty/eleventy-plugin-directory-output");
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");

const SRC_DIR = "src";

const ASSETS_DIR = `${SRC_DIR}/assets`;

/** @param {import("@11ty/eleventy/src/UserConfig"} eleventyConfig */
module.exports = (eleventyConfig) => {
eleventyConfig.addWatchTarget(ASSETS_DIR);

eleventyConfig.addPassthroughCopy(ASSETS_DIR);

eleventyConfig.setQuietMode(true);

eleventyConfig.addPlugin(directoryOutputPlugin);
eleventyConfig.addPlugin(eleventyNavigationPlugin);

// eleventyConfig.on("eleventy.after", async () => {
// console.log("in eleventy.after");
// });

return {
dir: {
input: SRC_DIR,
output: "_site",
includes: "includes",
layouts: "layouts",
data: "data",
},
pathPrefix: "/",
markdownTemplateEngine: "njk",
htmlTemplateEngine: "njk",
};
};
28 changes: 0 additions & 28 deletions .github/workflows/github_pages.yaml

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Deploy Jekyll site to Pages

on:
push:
branches: ["main"]
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: pages
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: .tool-versions
cache: npm
- name: Setup Pages
id: pages
uses: actions/configure-pages@v2
- name: Install node dependencies
run: npm ci
# TODO: build debs, Packages, and Packages.gz
# Should this be handled by eleventy or a separate job/stage?
- name: Build with 11ty
run: npm run build -- --pathprefix='${{ steps.pages.outputs.base_path }}'
- name: Upload artifact
uses: actions/upload-pages-artifact@v1

deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.jekyll-cache/
node_modules/
_site/
.vscode/
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# https://prettier.io/docs/en/ignore.html
_site/

# TODO: remove me!
_old/
8 changes: 8 additions & 0 deletions .prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# https://prettier.io/docs/en/configuration.html
overrides:
- files: "*.njk"
options:
parser: html
- files: "*.yaml"
options:
useTabs: false
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby 2.7.3
nodejs 16.17.0
5 changes: 0 additions & 5 deletions Gemfile

This file was deleted.

67 changes: 0 additions & 67 deletions Gemfile.lock

This file was deleted.

10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# cj81499's Repo

![Jekyll Build & Deploy](https://github.com/cj81499/repo2/workflows/Jekyll%20Build%20&%20Deploy/badge.svg)

Home of [cjGlyphs](https://www.reddit.com/r/iOSthemes/comments/2r45jz/custom_glyphsgotham_icons/), [(Semi)Official Glyphs](https://www.reddit.com/r/iOSthemes/comments/3hnz0d/release_semiofficial_glyphs_for_ios_8/), [(Semi)Official Space BlueBerry](https://www.reddit.com/r/iOSthemes/comments/3m29cs/release_semiofficial_space_blueberry_for_ios_8/), [(Semi)Official Mandolino](https://www.reddit.com/r/iOSthemes/comments/3nx516/release_semiofficial_mandolino_for_ios_8/), and more!

## Configure githooks
<!-- ## Configure githooks

```shell
git config core.hooksPath .githooks
Expand All @@ -20,4 +18,8 @@ git config core.hooksPath .githooks

```shell
./png_compress.sh
```
``` -->

## TODO

- [ ] Validate HTML w/ <https://www.npmjs.com/package/w3c-html-validator>
33 changes: 0 additions & 33 deletions _config.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .githooks/pre-commit → _old/.githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# If Packages has staged changes
if git status -s | grep -c -q "M. jekyll/Packages";
then
# Update Packages.gz to match
gzip jekyll/Packages -k -f
git add jekyll/Packages.gz
# Update Packages.gz to match
gzip jekyll/Packages -k -f
git add jekyll/Packages.gz
fi
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
36 changes: 0 additions & 36 deletions jekyll/_changelogs/com.cj81499.BarelyRounded.md

This file was deleted.

21 changes: 0 additions & 21 deletions jekyll/_changelogs/com.cj81499.OriginalAnemone.md

This file was deleted.

Loading