Skip to content

Commit

Permalink
Render HTML from the plugin if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
spearcat committed Dec 5, 2024
1 parent 2aa5785 commit 06096fd
Show file tree
Hide file tree
Showing 22 changed files with 1,381 additions and 317 deletions.
3 changes: 3 additions & 0 deletions lexicons-src/publicFile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ defs:
body:
type: blob
description: The contents of the file.
html:
type: string
description: Rendered HTML contents of the file, for Markdown files.
vaultName:
type: string
description: The name of the vault the file is stored in.
Expand Down
4 changes: 4 additions & 0 deletions lexicons/publicFile.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"type": "blob",
"description": "The contents of the file."
},
"html": {
"type": "string",
"description": "Rendered HTML contents of the file, for Markdown files."
},
"vaultName": {
"type": "string",
"description": "The name of the vault the file is stored in."
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,23 @@
"dev": "vite build --watch --mode development",
"build": "tsc -noEmit -skipLibCheck && vite build --mode production",
"version": "node version-bump.mjs && git add manifest.json versions.json",
"lex": "tsx utils/yaml2json -i \"./lexicons-src/*.yml\" -o \"./lexicons\"; lex-cli generate -o ./src/lexicon/lexicons.ts ./lexicons/*; lex-cli generate-main -o ./src/lexicon/index.ts ./lexicons/*"
"lex": "tsx utils/yaml2json -i \"./lexicons-src/*.yml\" -o \"./lexicons\" && tsx utils/glob-run lex-cli generate -o \"./src/lexicon/lexicons.ts\" \"./lexicons/*\" && tsx utils/glob-run lex-cli generate-main -o \"./src/lexicon/index.ts\" \"./lexicons/*\""
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@atproto/lex-cli": "^0.5.2",
"@atcute/lex-cli": "^1.0.3",
"@craftamap/esbuild-plugin-html": "^0.8.0",
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"@tsconfig/svelte": "^5.0.4",
"@types/child-process-promise": "^2.2.6",
"@types/express": "^5.0.0",
"@types/mime-db": "^1.43.5",
"@types/node": "^22.10.1",
"@typescript-eslint/eslint-plugin": "^8.16.0",
"@typescript-eslint/parser": "^8.16.0",
"child-process-promise": "^2.2.1",
"esbuild": "^0.24.0",
"esbuild-multicontext": "^0.13.0",
"esbuild-plugin-copy": "^2.1.1",
Expand All @@ -40,7 +42,6 @@
"dependencies": {
"@atcute/cid": "^1.0.2",
"@atcute/client": "^2.0.6",
"@atcute/lex-cli": "^1.0.3",
"@atcute/oauth-browser-client": "^1.0.7",
"@atproto/api": "^0.13.18",
"@atproto/common": "^0.4.4",
Expand All @@ -65,6 +66,7 @@
"crockford-base32": "^2.0.0",
"esbuild-plugins-node-modules-polyfill": "^1.6.8",
"express": "^4.21.1",
"js-base64": "^3.7.7",
"mime-db": "^1.53.0",
"mime-type": "^5.0.0",
"multiformats": "^13.3.1",
Expand Down
Loading

0 comments on commit 06096fd

Please sign in to comment.