Skip to content

Commit

Permalink
update lume
Browse files Browse the repository at this point in the history
  • Loading branch information
kuboon committed Feb 9, 2024
1 parent 1d2f85d commit f8fc3ce
Show file tree
Hide file tree
Showing 7 changed files with 618 additions and 158 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy content to Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
Expand Down Expand Up @@ -29,29 +29,28 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: denoland/setup-deno@v1
- name: Setup Deno environment
uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
deno-version: v1.x
- name: Checkout
uses: actions/checkout@v3

uses: actions/checkout@v4
- name: cache deno installation and deno.land dependencies
uses: actions/cache@v3
with:
key: ${{ runner.os }}-deno
path: |
~/.deno
~/.cache/deno
- run: deno test --allow-read=src --no-check
- run: deno task build
- name: lume build
run: deno task build --location=https://typing.kbn.one
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: 'dist'
path: '_site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dist/
_site/
3 changes: 1 addition & 2 deletions _config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ export const yamlPlugin = {
};

const site = lume({
src: "src",
dest: "dist",
src: "src"
});

site.use(esbuild({
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"serve": "deno task lume -s"
},
"imports": {
"lume/": "https://deno.land/x/lume@v1.18.4/",
"lume/": "https://deno.land/x/lume@v2.0.3/",
"deno/std/": "https://deno.land/std@0.198.0/",
"preact": "https://esm.sh/preact@10.17.0",
"preact/": "https://esm.sh/preact@10.17.0/",
Expand Down
746 changes: 604 additions & 142 deletions deno.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/_includes/layout.njk → src/_includes/layout.vto
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<body>
<a href="/" style="position: fixed; top: 1rem; right: 1rem;">もどる</a>
<main class="container">
{{ content | safe }}
{{ content |> safe }}
</main>
</body>

Expand Down
2 changes: 1 addition & 1 deletion src/inst.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: あそびかた
layout: layout.njk
layout: layout.vto
---

# たいぴすたんのあそびかた
Expand Down

0 comments on commit f8fc3ce

Please sign in to comment.