-
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.
- Loading branch information
Showing
13 changed files
with
255 additions
and
32 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
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,38 @@ | ||
// @deno-types="npm:@primer/[email protected]" | ||
import { MarkGithubIcon } from "https://esm.sh/@primer/[email protected]?external=react&no-dts"; | ||
|
||
export function SiteHeader() { | ||
const dirs = pageDirectory.replace(/^\.\.?\/*|\/+$/g, "").split("/").filter( | ||
(x) => x | ||
); | ||
|
||
return ( | ||
<header className="px-6 py-4 shadow-[0px_0px_1rem_rgba(0,0,0,0.1)] flex justify-between sticky top-0 bg-[#fffe] backdrop-filter[blur(0.5rem)] z-10"> | ||
<div className="flex gap-2"> | ||
<a href={projectRoot} className="no-decoration font-bold">Dejamu</a> | ||
{dirs.map((dir) => ( | ||
<> | ||
<span>/</span> | ||
<a | ||
href={projectRoot + "/" + dir} | ||
className="no-decoration font-bold opacity-50" | ||
> | ||
{dir} | ||
</a> | ||
</> | ||
))} | ||
</div> | ||
<a | ||
x-key="_" | ||
className="no-decoration" | ||
aria-label="github repository" | ||
href="https://github.com/ikasoba/dejamu" | ||
> | ||
<MarkGithubIcon | ||
className="transition-transform hover:scale-125 active:scale-100" | ||
size={24} | ||
/> | ||
</a> | ||
</header> | ||
); | ||
} |
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 |
---|---|---|
|
@@ -6,9 +6,10 @@ | |
"serve": "deno task dejamu serve" | ||
}, | ||
"imports": { | ||
"dejamu/": "https://raw.githubusercontent.com/ikasoba/dejamu/0.1.0/", | ||
"dejamu/": "https://raw.githubusercontent.com/ikasoba/dejamu/pre-0.2.0+0002/", | ||
"path/": "https://deno.land/[email protected]/path/", | ||
"@twind/": "npm:/@twind/" | ||
"@twind/": "npm:/@twind/", | ||
"react": "npm:/preact/compat" | ||
}, | ||
"compilerOptions": { | ||
"jsx": "react-jsx", | ||
|
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,26 @@ | ||
import { Head } from "dejamu/mod.ts"; | ||
import { Markdown } from "dejamu/plugins/md/Markdown.tsx"; | ||
import { LayoutComponent } from "dejamu/plugins/md/MarkdownPlugin.tsx"; | ||
import Counter from "../components/Counter.islands.tsx"; | ||
import { SiteHeader } from "../components/SiteHeader.tsx"; | ||
|
||
export default (function Documentation({ children }) { | ||
return ( | ||
<> | ||
<Head> | ||
<meta name="viewport" content="width=device-width,initial-scale=1" /> | ||
<title>Dejamu🛌 Documention</title> | ||
</Head> | ||
<SiteHeader /> | ||
<Markdown> | ||
{children} | ||
</Markdown> | ||
<footer className="footer"> | ||
<a href="https://github.com/ikasoba/dejamu"> | ||
Github Repository | ||
</a> | ||
<Counter /> | ||
</footer> | ||
</> | ||
); | ||
}) satisfies LayoutComponent; |
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,47 @@ | ||
--- | ||
layout: Documentation.tsx | ||
--- | ||
|
||
# Dejamu Documentation | ||
|
||
## `GlobalThis#isBrowser` | ||
|
||
false if the code currently being executed is being executed at pre-rendering time true if it is being executed in a browser. | ||
|
||
- Module: [dejamu/mod.ts](https://github.com/ikasoba/dejamu/blob/main/mod.ts) | ||
- Location: [dejamu/plugins/global.d.ts](https://github.com/ikasoba/dejamu/blob/main/plugins/global.d.ts) | ||
|
||
## `GlobalThis#pageDirectory` | ||
|
||
Relative path from the project root to the parent directory of the current page. | ||
|
||
- Module: [dejamu/mod.ts](https://github.com/ikasoba/dejamu/blob/main/mod.ts) | ||
- Location: [dejamu/plugins/global.d.ts](https://github.com/ikasoba/dejamu/blob/main/plugins/global.d.ts) | ||
|
||
## `GlobalThis#projectRoot` | ||
|
||
Relative path from the current location to the project root. | ||
|
||
- Module: [dejamu/mod.ts](https://github.com/ikasoba/dejamu/blob/main/mod.ts) | ||
- Location: [dejamu/plugins/global.d.ts](https://github.com/ikasoba/dejamu/blob/main/plugins/global.d.ts) | ||
|
||
## `<Head> ... </Head>` | ||
|
||
Append vnodes to head. | ||
|
||
- Module: [dejamu/mod.ts](https://github.com/ikasoba/dejamu/blob/main/mod.ts) | ||
- Location: [dejamu/plugins/Head.tsx](https://github.com/ikasoba/dejamu/blob/main/plugins/Head.tsx) | ||
|
||
## `interface Config` | ||
|
||
Type declraration of dejamu.config.ts. | ||
|
||
- Module: [dejamu/mod.ts](https://github.com/ikasoba/dejamu/blob/main/mod.ts) | ||
- Location: [dejamu/core/Config.ts](https://github.com/ikasoba/dejamu/blob/main/core/Config.ts) | ||
|
||
## `type DejamuPlugin` | ||
|
||
Plugin interface. | ||
|
||
- Module: [dejamu/mod.ts](https://github.com/ikasoba/dejamu/blob/main/mod.ts) | ||
- Location: [dejamu/pluginSystem/Plugin.ts](https://github.com/ikasoba/dejamu/blob/main/pluginSystem/Plugin.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
Oops, something went wrong.