Skip to content

🏗✨:migrate to eleventy #1476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Oct 27, 2024
Merged
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
5 changes: 5 additions & 0 deletions .eleventyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
_assets/
.github/
**/LICENSE/**
**/README.md
tools/
49 changes: 49 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Build and deploy the Eleventy site to GitHub Pages.
name: Deploy Eleventy site to Pages

on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Check out project repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Set up Node.js runtime
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version-file: 'package.json'
- name: Install
run: |
corepack enable
corepack prepare pnpm@latest --activate
pnpm install
echo "$(pwd)/node_modules/.bin" >> $GITHUB_PATH
- name: Build
run: nps build
- name: Setup Pages
id: pages
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
- name: Upload artifact
uses: actions/upload-pages-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
path: _site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@
".renovaterc.json5": "json5",
"*.scss": "scss",
".snyk": "yaml",
"*.html": "liquid"
"*.html": "liquid",
".eleventyignore": "ignore"
},

// Configure glob patterns for excluding files and folders. For example, the
Expand Down
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ comprising our style guide handbook uses the CC BY-SA 4.0 license.
alt="The OpenINF logo"
height="32px"
width="32px"
src="https://open.inf.is/assets/img/svg/logo.svg"
src="https://open.inf.is/assets/img/logogram.svg"
/>
</a>

Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 3 additions & 0 deletions _assets/img/dereknongeneric-48.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _assets/img/svg/logogram.svg → _assets/img/logogram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 0 additions & 16 deletions _assets/img/svg/logo.svg

This file was deleted.

14 changes: 0 additions & 14 deletions _assets/img/svg/vic-cad-ind/banner/README.md

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion _assets/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import '../../node_modules/bootstrap/scss/functions';

// Bootstrap variable overrides & custom theme variables.
@import 'jekyll-theme-sublime';
@import 'sublime-theme';

// Bootstrap configuration.
@import '../../node_modules/bootstrap/scss/variables';
Expand Down
148 changes: 0 additions & 148 deletions _config.yml

This file was deleted.

8 changes: 8 additions & 0 deletions _data/authors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"DerekNonGeneric": {
"name": "Derek Lewis",
"alias": "DerekNonGeneric",
"avatar": "/assets/img/dereknongeneric-48.jpg",
"url": "https://github.com/DerekNonGeneric"
}
}
13 changes: 13 additions & 0 deletions _data/eleventyDataSchema.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { z } from 'zod';
import { fromZodError } from 'zod-validation-error';
export default function (data) {
// Draft content, validate `draft` front matter
const result = z
.object({
draft: z.boolean().or(z.undefined()),
})
.safeParse(data);
if (result.error) {
throw fromZodError(result.error);
}
}
22 changes: 22 additions & 0 deletions _data/menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"text": "Home",
"permalink": "",
"class": "home"
},
{
"text": "News",
"permalink": "news",
"class": "news"
},
{
"text": "Docs",
"permalink": "docs",
"class": "docs"
},
{
"text": "About",
"permalink": "about",
"class": "about"
}
]
15 changes: 0 additions & 15 deletions _data/menu.yml

This file was deleted.

File renamed without changes.
Loading