-
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.
feat: allow toml/json/jsonc as config file (#41)
- Loading branch information
1 parent
d547e8e
commit b083f99
Showing
11 changed files
with
84 additions
and
31 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,4 +1,4 @@ | ||
export type { JSX } from "https://esm.sh/[email protected].0"; | ||
export type { JSX } from "https://esm.sh/[email protected].1"; | ||
export { renderToString } from "https://esm.sh/[email protected]"; | ||
|
||
export { | ||
|
@@ -8,19 +8,21 @@ export { | |
resolve, | ||
toFileUrl, | ||
win32, | ||
} from "https://deno.land/[email protected]/path/mod.ts"; | ||
export { walkSync } from "https://deno.land/[email protected]/fs/walk.ts"; | ||
export { parse } from "https://deno.land/[email protected]/yaml/mod.ts"; | ||
export { copySync } from "https://deno.land/[email protected]/fs/copy.ts"; | ||
export { serveDir } from "https://deno.land/[email protected]/http/file_server.ts"; | ||
export { extract } from "https://deno.land/[email protected]/front_matter/any.ts"; | ||
export { existsSync } from "https://deno.land/[email protected]/fs/exists.ts"; | ||
} from "https://deno.land/[email protected]/path/mod.ts"; | ||
export { walkSync } from "https://deno.land/[email protected]/fs/walk.ts"; | ||
export { parse as parseYaml } from "https://deno.land/[email protected]/yaml/mod.ts"; | ||
export { parse as parseJsonc } from "https://deno.land/[email protected]/jsonc/mod.ts"; | ||
export { parse as parseToml } from "https://deno.land/[email protected]/toml/mod.ts"; | ||
export { copySync } from "https://deno.land/[email protected]/fs/copy.ts"; | ||
export { serveDir } from "https://deno.land/[email protected]/http/file_server.ts"; | ||
export { extract } from "https://deno.land/[email protected]/front_matter/any.ts"; | ||
export { existsSync } from "https://deno.land/[email protected]/fs/exists.ts"; | ||
|
||
export * as esbuild from "https://deno.land/x/[email protected]/mod.js"; | ||
export { denoPlugins } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
export { createGenerator } from "https://esm.sh/@unocss/[email protected].1"; | ||
export { presetUno } from "https://esm.sh/@unocss/[email protected].1"; | ||
export { createGenerator } from "https://esm.sh/@unocss/[email protected].2"; | ||
export { presetUno } from "https://esm.sh/@unocss/[email protected].2"; | ||
|
||
export { decode } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: Getting Started | ||
description: My first Pyro directory | ||
index: 1 | ||
--- |
17 changes: 17 additions & 0 deletions
17
tests/end_to_end/json_config/pages/getting-started/submenu.md
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: Submenu | ||
description: My first Pyro directory | ||
index: 0 | ||
--- | ||
|
||
This is the first subpage in the docs. We have access to all of markdown and | ||
html here. | ||
|
||
| We have | Tables | | ||
| ------- | ------ | | ||
| 1, 1 | 1, 2 | | ||
| 2, 1 | 2, 2 | | ||
|
||
We even support Github extensions to the spec like math blocks. | ||
|
||
$$ x^2 + y^2 = z^2 $$ |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: Hello World | ||
description: My first Pyro page | ||
index: 0 | ||
--- | ||
|
||
How are you doing today? |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"title": "Pyro Site", | ||
"github": "https://github.com/lino-levan/pyro" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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