Skip to content

Commit

Permalink
BERESHIT
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel-of-Dev committed May 7, 2024
0 parents commit a7ab031
Show file tree
Hide file tree
Showing 72 changed files with 3,997 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .gitattributes
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
69 changes: 69 additions & 0 deletions .github/workflows/deploy.yml
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
19 changes: 19 additions & 0 deletions .gitignore
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
54 changes: 54 additions & 0 deletions .vitepress/config.mts
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 added .vitepress/theme/Dalek.ttf
Binary file not shown.
17 changes: 17 additions & 0 deletions .vitepress/theme/index.ts
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
Loading

0 comments on commit a7ab031

Please sign in to comment.