Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
YuheiFUJITA committed Dec 4, 2023
1 parent 813a04a commit 50e4ee4
Show file tree
Hide file tree
Showing 13 changed files with 7,307 additions and 1 deletion.
46 changes: 46 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy pages

on:
workflow_dispatch: {}
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

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

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "lts/*"

- name: Install dependencies
run: npm install

- name: Install slidev
run: npm i -g @slidev/cli

- name: Build
run: npm run build -- --base /${{ github.repository }}/

- uses: actions/configure-pages@v3

- uses: actions/upload-pages-artifact@v2
with:
path: dist

- name: Deploy
id: deployment
uses: actions/deploy-pages@v2
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
.DS_Store
dist
*.local
index.html
.remote-assets
components.d.ts
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# for pnpm
shamefully-hoist=true
auto-install-peers=true
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"markdownlint.config": {
"MD003": false,
"MD022": false,
"MD024": false,
"MD025": false,
"MD033": false,
"MD034": false
}
}
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
# slide-20231206-findy
# Welcome to [Slidev](https://github.com/slidevjs/slidev)!

To start the slide show:

- `npm install`
- `npm run dev`
- visit http://localhost:3030

Edit the [slides.md](./slides.md) to see the changes.

Learn more about Slidev on [documentations](https://sli.dev/).
10 changes: 10 additions & 0 deletions global-bottom.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<template>
<footer v-if="$slidev.nav.currentLayout !== 'cover'">
<ul v-if="$slidev.nav.refs" class="absolute bottom-2 left-4">
<li v-for="ref in $slidev.nav.refs" :key="ref">{{ ref }}</li>
</ul>
<span class="absolute bottom-2 right-4"
>{{ $slidev.nav.currentPage }} / {{ $slidev.nav.total }}</span
>
</footer>
</template>
3 changes: 3 additions & 0 deletions images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[build.environment]
NODE_VERSION = "14"

[build]
publish = "dist"
command = "npm run build"

[[redirects]]
from = "/.well-known/*"
to = "/.well-known/:splat"
status = 200

[[redirects]]
from = "/*"
to = "/index.html"
status = 200
Loading

0 comments on commit 50e4ee4

Please sign in to comment.