This commit is contained in:
Niccolo Borgioli 2023-11-10 15:54:25 +01:00
commit 4307617e4f
No known key found for this signature in database
GPG Key ID: D93C615F75EE4F0B
8 changed files with 366 additions and 0 deletions

176
.gitignore vendored Normal file
View File

@ -0,0 +1,176 @@
# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore
# Logs
logs
_.log
npm-debug.log_
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
# Runtime data
pids
_.pid
_.seed
\*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
\*.lcov
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Snowpack dependency directory (https://snowpack.dev/)
web_modules/
# TypeScript cache
\*.tsbuildinfo
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional stylelint cache
.stylelintcache
# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
\*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache
# Next.js build output
.next
out
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public
# vuepress build output
.vuepress/dist
# vuepress v2.x temp and cache directory
.temp
.cache
# Docusaurus cache and generated files
.docusaurus
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# TernJS port file
.tern-port
# Stores VSCode versions used for testing VSCode extensions
.vscode-test
# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.\*
# IntelliJ based IDEs
.idea
# Finder (MacOS) folder config
.DS_Store

3
.marprc.yml Normal file
View File

@ -0,0 +1,3 @@
engine: ./engine.mjs
output: index.html
theme: ./theme.css

9
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,9 @@
{
"cSpell.words": ["marp", "marpit", "Marpit"],
"markdown.marp.themes": [
"https://raw.githubusercontent.com/rnd195/my-marp-themes/live/gradient.css",
"https://raw.githubusercontent.com/rainbowflesh/Rose-Pine-For-Marp/master/css/rose-pine-dawn.css",
"https://raw.githubusercontent.com/rainbowflesh/Rose-Pine-For-Marp/master/css/rose-pine-moon.css",
"https://raw.githubusercontent.com/rainbowflesh/Rose-Pine-For-Marp/master/css/rose-pine.css"
]
}

BIN
bun.lockb Executable file

Binary file not shown.

8
engine.mjs Normal file
View File

@ -0,0 +1,8 @@
import include from 'markdown-it-include'
const options = {
includeRe: /#include(.+)/,
bracesAreOptional: true,
}
export default ({ marp }) => marp.use(include, options)

16
package.json Normal file
View File

@ -0,0 +1,16 @@
{
"type": "module",
"scripts": {
"build": "bunx @marp-team/marp-cli@latest presi.md",
"dev": "conc bun:watch bun:serve",
"serve": "bunx serve@latest . -p 80",
"watch": "bun run build -w"
},
"devDependencies": {
"@tsconfig/strictest": "latest",
"bun-types": "latest",
"concurrently": "^8.2.2",
"markdown-it-include": "^2.0.0",
"typescript": "latest"
}
}

138
theme.css Normal file
View File

@ -0,0 +1,138 @@
/* @theme rose-pine-moon */
/*
Rosé Pine theme create by RAINBOWFLESH
> www.rosepinetheme.com
palette in :root
*/
@import "default";
@import "schema";
@import "structure";
:root {
--base: #232136;
--surface: #2a273f;
--overlay: #393552;
--muted: #6e6a86;
--subtle: #908caa;
--text: #e0def4;
--love: #eb6f92;
--gold: #f6c177;
--rose: #ea9a97;
--pine: #3e8fb0;
--foam: #9ccfd8;
--iris: #c4a7e7;
--highlight-low: #2a283e;
--highlight-muted: #44415a;
--highlight-high: #56526e;
font-family: Pier Sans, ui-sans-serif, system-ui, -apple-system,
BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans,
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol,
"Noto Color Emoji";
font-weight: initial;
background-color: var(--base);
}
/* Common style */
h1 {
color: var(--rose);
padding-bottom: 2mm;
margin-bottom: 12mm;
}
h2 {
color: var(--rose);
}
h3 {
color: var(--rose);
}
h4 {
color: var(--rose);
}
h5 {
color: var(--rose);
}
h6 {
color: var(--rose);
}
a {
color: var(--iris);
}
p {
font-size: 20pt;
font-weight: 600;
color: var(--text);
}
code {
color: var(--text);
background-color: var(--highlight-muted);
}
text {
color: var(--text);
}
ul {
color: var(--subtle);
}
li {
color: var(--subtle);
}
img {
background-color: var(--highlight-low);
}
strong {
color: var(--text);
font-weight: inherit;
font-weight: 800;
}
mjx-container {
color: var(--text);
}
marp-pre {
background-color: var(--overlay);
border-color: var(--highlight-high);
}
/* Code blok */
.hljs-comment {
color: var(--muted);
}
.hljs-attr {
color: var(--foam);
}
.hljs-punctuation {
color: var(--subtle);
}
.hljs-string {
color: var(--gold);
}
.hljs-title {
color: var(--foam);
}
.hljs-keyword {
color: var(--pine);
}
.hljs-variable {
color: var(--text);
}
.hljs-literal {
color: var(--rose);
}
.hljs-type {
color: var(--love);
}
.hljs-number {
color: var(--gold);
}
.hljs-built_in {
color: var(--love);
}
.hljs-params {
color: var(--iris);
}
.hljs-symbol {
color: var(--foam);
}
.hljs-meta {
color: var(--subtle);
}

16
tsconfig.json Normal file
View File

@ -0,0 +1,16 @@
{
"extends": ["@tsconfig/strictest"],
"compilerOptions": {
"lib": ["ESNext"],
"module": "esnext",
"target": "esnext",
"moduleResolution": "bundler",
"moduleDetection": "force",
"allowImportingTsExtensions": true,
"noEmit": true,
"composite": true,
"types": [
"bun-types" // add Bun global
]
}
}