-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Lino Le Van <[email protected]>
- Loading branch information
1 parent
0689bfa
commit 8b2435b
Showing
11 changed files
with
88 additions
and
67 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export type { JSX } from "https://esm.sh/preact@10.17.1"; | ||
export { renderToString } from "https://esm.sh/preact-render-to-string@6.2.1"; | ||
export type { JSX } from "https://esm.sh/preact@10.19.3"; | ||
export { renderToString } from "https://esm.sh/preact-render-to-string@6.3.1"; | ||
|
||
export { | ||
fromFileUrl, | ||
|
@@ -8,44 +8,45 @@ export { | |
resolve, | ||
toFileUrl, | ||
win32, | ||
} from "https://deno.land/std@0.199.0/path/mod.ts"; | ||
export { walkSync } from "https://deno.land/std@0.199.0/fs/walk.ts"; | ||
export { parse as parseYaml } from "https://deno.land/std@0.199.0/yaml/mod.ts"; | ||
export { parse as parseJsonc } from "https://deno.land/std@0.199.0/jsonc/mod.ts"; | ||
export { parse as parseToml } from "https://deno.land/std@0.199.0/toml/mod.ts"; | ||
export { copySync } from "https://deno.land/std@0.199.0/fs/copy.ts"; | ||
export { serveDir } from "https://deno.land/std@0.199.0/http/file_server.ts"; | ||
export { extract } from "https://deno.land/std@0.199.0/front_matter/any.ts"; | ||
export { existsSync } from "https://deno.land/std@0.199.0/fs/exists.ts"; | ||
} from "https://deno.land/std@0.210.0/path/mod.ts"; | ||
export { walkSync } from "https://deno.land/std@0.210.0/fs/walk.ts"; | ||
export { parse as parseYaml } from "https://deno.land/std@0.210.0/yaml/mod.ts"; | ||
export { parse as parseJsonc } from "https://deno.land/std@0.210.0/jsonc/mod.ts"; | ||
export { parse as parseToml } from "https://deno.land/std@0.210.0/toml/mod.ts"; | ||
export { copySync } from "https://deno.land/std@0.210.0/fs/copy.ts"; | ||
export { serveDir } from "https://deno.land/std@0.210.0/http/file_server.ts"; | ||
export { extract } from "https://deno.land/std@0.210.0/front_matter/any.ts"; | ||
export { existsSync } from "https://deno.land/std@0.210.0/fs/exists.ts"; | ||
|
||
export { launch } from "https://deno.land/x/astral@0.2.3/mod.ts"; | ||
export { launch } from "https://deno.land/x/astral@0.3.2/mod.ts"; | ||
|
||
export * as esbuild from "https://deno.land/x/esbuild@v0.17.19/mod.js"; | ||
export { denoPlugins } from "https://deno.land/x/[email protected].1/mod.ts"; | ||
export * as esbuild from "https://deno.land/x/esbuild@v0.19.2/mod.js"; | ||
export { denoPlugins } from "https://deno.land/x/[email protected].2/mod.ts"; | ||
|
||
export { createGenerator } from "https://esm.sh/@unocss/core@0.55.2"; | ||
export { presetUno } from "https://esm.sh/@unocss/preset-uno@0.55.2"; | ||
export { createGenerator } from "https://esm.sh/@unocss/core@0.58.0"; | ||
export { presetUno } from "https://esm.sh/@unocss/preset-uno@0.58.0"; | ||
|
||
export { decode } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
export { default as Github } from "https://deno.land/x/[email protected]/tsx/brand-github.tsx"; | ||
export { default as ExternalLink } from "https://deno.land/x/[email protected]/tsx/external-link.tsx"; | ||
export { default as ChevronDown } from "https://deno.land/x/[email protected]/tsx/chevron-down.tsx"; | ||
export { default as Github } from "https://deno.land/x/[email protected]/tsx/brand-github.tsx"; | ||
export { default as ExternalLink } from "https://deno.land/x/[email protected]/tsx/external-link.tsx"; | ||
export { default as ChevronDown } from "https://deno.land/x/[email protected]/tsx/chevron-down.tsx"; | ||
export { default as IconMenu2 } from "https://deno.land/x/[email protected]/tsx/menu-2.tsx"; | ||
|
||
export { Command } from "https://deno.land/x/[email protected]/command/mod.ts"; | ||
|
||
export { type Plugin, unified } from "https://esm.sh/[email protected].0"; | ||
export { default as remarkParse } from "https://esm.sh/remark-parse@10.0.2"; | ||
export { default as remarkGfm } from "https://esm.sh/remark-gfm@3.0.1"; | ||
export { default as remarkRehype } from "https://esm.sh/remark-rehype@10.1.0"; | ||
export { default as rehypeStringify } from "https://esm.sh/rehype-stringify@9.0.3"; | ||
export { type Plugin, unified } from "https://esm.sh/[email protected].4"; | ||
export { default as remarkParse } from "https://esm.sh/remark-parse@11.0.0"; | ||
export { default as remarkGfm } from "https://esm.sh/remark-gfm@4.0.0"; | ||
export { default as remarkRehype } from "https://esm.sh/remark-rehype@11.0.0"; | ||
export { default as rehypeStringify } from "https://esm.sh/rehype-stringify@10.0.0"; | ||
|
||
export { | ||
all, | ||
createStarryNight, | ||
type Grammar, | ||
} from "https://esm.sh/@wooorm/starry-night@2.1.1"; | ||
export { toString } from "https://esm.sh/hast-util-to-string@2.0.0"; | ||
} from "https://esm.sh/@wooorm/starry-night@3.2.0"; | ||
export { toString } from "https://esm.sh/hast-util-to-string@3.0.0"; | ||
export { visit } from "https://esm.sh/[email protected]"; | ||
export { | ||
type Element, | ||
|
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,14 +1,11 @@ | ||
import { | ||
defineConfig, | ||
presetTypography, | ||
presetUno, | ||
} from "https://esm.sh/[email protected]"; | ||
import { presetUno } from "https://esm.sh/@unocss/[email protected]"; | ||
import { presetTypography } from "https://esm.sh/@unocss/[email protected]"; | ||
|
||
export default defineConfig({ | ||
export default { | ||
presets: [ | ||
presetUno({ | ||
dark: "media", | ||
}), | ||
presetTypography(), | ||
], | ||
}); | ||
}; |
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 |
---|---|---|
|
@@ -8,36 +8,34 @@ Pyro uses UnoCSS for styling, both internally and for user code. By default, the | |
configuration that Pyro uses for UnoCSS looks something like: | ||
|
||
```ts | ||
import { defineConfig, presetUno } from "https://esm.sh/unocss@0.55.2"; | ||
import { presetUno } from "https://esm.sh/@unocss/preset-uno@0.58.0"; | ||
|
||
export default defineConfig({ | ||
export default { | ||
presets: [ | ||
presetUno({ | ||
dark: "media", | ||
}), | ||
], | ||
}); | ||
}; | ||
``` | ||
|
||
Some users would prefer to have more UnoCSS features. This is supported with | ||
zero extra configuration outside of just making the file! At the top level of | ||
your site, just add a `uno.config.ts` file. Below is an example of configuring | ||
UnoCSS to add the `presetTypography` plugin. | ||
UnoCSS to add the `presetTypography` plugin. Make sure not to import from the | ||
main `uno` package, as that is unsupported. | ||
|
||
```ts | ||
// uno.config.ts | ||
import { | ||
defineConfig, | ||
presetTypography, | ||
presetUno, | ||
} from "https://esm.sh/[email protected]"; | ||
import { presetUno } from "https://esm.sh/@unocss/[email protected]"; | ||
import { presetTypography } from "https://esm.sh/@unocss/[email protected]"; | ||
|
||
export default defineConfig({ | ||
export default { | ||
presets: [ | ||
presetUno({ | ||
dark: "media", | ||
}), | ||
presetTypography(), | ||
], | ||
}); | ||
}; | ||
``` |