-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a7ab031
Showing
72 changed files
with
3,997 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# LINE ENDINGS | ||
# Specify cross-platform rules for line endings. | ||
# | ||
# Auto-normalize line endings in text files. | ||
* text=auto | ||
# Use CRLF in Windows scripts. | ||
# This ensures that scripts are compatible with Windows even when modified on or shared from Linux. | ||
*.cmd text eol=crlf | ||
*.bat text eol=crlf | ||
*.ps1 text eol=crlf | ||
# Force LF in Linux scripts. | ||
# This ensures that scripts are compatible with Linux even when modified on or shared from Windows. | ||
*.sh text eol=lf | ||
# Configure rules for dotnet. | ||
*.cs text diff=csharp | ||
*.sln text eol=crlf | ||
*.csproj text eol=crlf | ||
# Configure rules for markdown. | ||
*.md text eol=lf diff=markdown | ||
*.mdx text diff=markdown | ||
# Configure rules for vue. | ||
*.vue text | ||
# Configure rules for JSON and YAML. | ||
*.json text | ||
*.yaml text | ||
*.yml text | ||
# Configure rules for XML. | ||
*.xml text | ||
. !text !filter !merge !diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Workflow for building and deploying a VitePress site to GitHub Pages | ||
# | ||
# Original template taken directly from VitePress documentation: https://vitepress.dev/guide/deploy#github-pages | ||
# Changes to original template: | ||
# * Update paths to remove `docs/`, as this VitePress is at root of the repository instead of `docs/` subdirectory. | ||
|
||
name: Deploy VitePress site to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the `bereshit` branch. | ||
push: | ||
branches: [bereshit] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: pages | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# Build job | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Not needed if lastUpdated is not enabled | ||
# - uses: pnpm/action-setup@v2 # Uncomment this if you're using pnpm | ||
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun | ||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
cache: npm # or pnpm / yarn | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Install dependencies | ||
run: npm ci # or pnpm install / yarn install / bun install | ||
- name: Build with VitePress | ||
run: | | ||
npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build | ||
touch .vitepress/dist/.nojekyll | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: .vitepress/dist | ||
|
||
# Deployment job | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
needs: build | ||
runs-on: ubuntu-latest | ||
name: Deploy | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## .NET | ||
bin/ | ||
obj/ | ||
|
||
## Node.JS | ||
node_modules/ | ||
|
||
# VitePress | ||
.vitepress/cache/ | ||
.vitepress/dist/ | ||
|
||
## JetBrains Rider | ||
.idea/ | ||
|
||
## User Files | ||
*.user | ||
|
||
## Backup Files | ||
*.bkp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import {defineConfig} from 'vitepress' | ||
import inject from '@rollup/plugin-inject'; | ||
import katex from 'markdown-it-katex'; | ||
|
||
// https://vitepress.dev/reference/site-config | ||
export default defineConfig({ | ||
title: "Angel of Dev", | ||
description: "", | ||
plugins: [ | ||
inject({ | ||
p5: 'p5', | ||
}) | ||
], | ||
head: [ | ||
['link', { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }], | ||
|
||
// KaTeX, for mathematical notation support in markdown-it. | ||
['link', {rel: 'stylesheet', href: 'https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.css'}] | ||
], | ||
markdown: { | ||
config: md => { | ||
md.use(katex) | ||
} | ||
}, | ||
appearance: "force-dark", | ||
themeConfig: { | ||
nav: [ | ||
{ text: 'b🌱reshit', link: '/bereshit/' }, | ||
{ text: 'append*x', link: '/appendix/' } | ||
], | ||
footer: { | ||
message: '<strong>FOR ETERNAL USE ONLY 📵 DO YOUR SHARE</strong>', | ||
copyright: '<a href="/refs/#ref-operaaperta">Opera Aperta</a> / <a href="/license">License</a>' | ||
} | ||
}, | ||
transformHead({assets}) { | ||
|
||
// Preload ttf fonts. | ||
const fontAsset = assets.find(() => /font-name\.\w+\.ttf/) | ||
if (fontAsset) { | ||
return [ | ||
[ | ||
'link', | ||
{ | ||
rel: 'preload', | ||
href: fontAsset, | ||
as: 'font', | ||
type: 'font/ttf' | ||
} | ||
] | ||
] | ||
} | ||
} | ||
}) |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// https://vitepress.dev/guide/custom-theme | ||
import {h} from 'vue' | ||
import type {Theme} from 'vitepress' | ||
import DefaultTheme from 'vitepress/theme' | ||
import './style.css' | ||
|
||
export default { | ||
extends: DefaultTheme, | ||
Layout: () => { | ||
return h(DefaultTheme.Layout, null, { | ||
// https://vitepress.dev/guide/extending-default-theme#layout-slots | ||
}) | ||
}, | ||
enhanceApp({ app, router, siteData }) { | ||
// ... | ||
} | ||
} satisfies Theme |
Oops, something went wrong.