Skip to content

Commit

Permalink
imgit (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
elringus authored Dec 26, 2023
1 parent f9c49c3 commit 7e43a17
Show file tree
Hide file tree
Showing 723 changed files with 582 additions and 2,847 deletions.
15 changes: 4 additions & 11 deletions docs/.vitepress/ext/vite.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,19 @@
import { fileURLToPath } from "url";
import { UserConfig, Alias } from "vite";
import imgit from "../imgit/plugin/vite";
import svg from "../imgit/plugin/svg";
import youtube from "../imgit/plugin/youtube";
import imgit from "imgit/vite";
import svg from "imgit/svg";
import youtube from "imgit/youtube";

export const vite: UserConfig = {
plugins: [imgit({
enforce: "pre",
skip: (_, id) => !id.endsWith(".md"),
width: 720,
root: "./docs/public",
cache: { root: "./docs/public/imgit" },
fetch: { root: "./docs/public/imgit/fetched" },
encode: { root: "./docs/public/imgit/encoded" },
plugins: [svg(), youtube()]
})],
resolve: {
alias: [
override("NotFound", "not-found"),
{ find: /\.(:?tif|tiff|bmp|tga|psd|avi|mkv|mov)$/, replacement: ".webp" }
]
}
resolve: { alias: [override("NotFound", "not-found")] }
};

// https://vitepress.dev/guide/extending-default-theme#overriding-internal-components
Expand Down
4 changes: 0 additions & 4 deletions docs/.vitepress/imgit/client/index.ts

This file was deleted.

45 changes: 0 additions & 45 deletions docs/.vitepress/imgit/client/intersection.ts

This file was deleted.

86 changes: 0 additions & 86 deletions docs/.vitepress/imgit/client/mutation.ts

This file was deleted.

20 changes: 0 additions & 20 deletions docs/.vitepress/imgit/client/styles.css

This file was deleted.

5 changes: 0 additions & 5 deletions docs/.vitepress/imgit/plugin/cloudflare.ts

This file was deleted.

22 changes: 0 additions & 22 deletions docs/.vitepress/imgit/plugin/svg.ts

This file was deleted.

Empty file.
30 changes: 0 additions & 30 deletions docs/.vitepress/imgit/plugin/vite.ts

This file was deleted.

42 changes: 0 additions & 42 deletions docs/.vitepress/imgit/plugin/youtube/client.ts

This file was deleted.

3 changes: 0 additions & 3 deletions docs/.vitepress/imgit/plugin/youtube/index.ts

This file was deleted.

Loading

0 comments on commit 7e43a17

Please sign in to comment.