-
Notifications
You must be signed in to change notification settings - Fork 0
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
48 changed files
with
490 additions
and
312 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
2 changes: 1 addition & 1 deletion
2
packages/typedoc-theme-client/scripts/types/jsx/jsx-member-signatures-props.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import type { JsxHtmlGlobalProps } from "@ribajs/jsx"; | ||
import type { JsxHtmlGlobalProps } from "@ribajs/jsx/src/types/index"; | ||
|
||
export type JsxTsdMemberSignaturesProps = JsxHtmlGlobalProps; |
2 changes: 1 addition & 1 deletion
2
packages/typedoc-theme-client/scripts/types/jsx/jsx-navbar-props.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import type { JsxHtmlGlobalProps } from "@ribajs/jsx"; | ||
import type { JsxHtmlGlobalProps } from "@ribajs/jsx/src/types/index"; | ||
|
||
export type JsxTsdNavbarProps = JsxHtmlGlobalProps; |
2 changes: 1 addition & 1 deletion
2
packages/typedoc-theme-client/scripts/types/jsx/jsx-navigation-primary-props.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
2 changes: 1 addition & 1 deletion
2
packages/typedoc-theme-client/scripts/types/jsx/jsx-navigation-secondary-props.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import type { JsxHtmlGlobalProps } from "@ribajs/jsx"; | ||
import type { JsxHtmlGlobalProps } from "@ribajs/jsx/src/types/index"; | ||
|
||
export type JsxTsdNavigationSecondaryProps = JsxHtmlGlobalProps; |
2 changes: 1 addition & 1 deletion
2
packages/typedoc-theme-client/scripts/types/jsx/jsx-search-props.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
9 changes: 4 additions & 5 deletions
9
packages/typedoc-theme-client/scripts/types/module-options.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
export interface GjsifyTypedocModuleOptions { | ||
/** The base url of the remote search server */ | ||
serverBaseUrl?: string; | ||
} | ||
|
||
export interface TypedocModuleOptions { | ||
/** The base url of the remote search server */ | ||
serverBaseUrl?: string; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,3 +1,4 @@ | ||
import "./jsx/index.js"; | ||
import { Application } from "typedoc"; | ||
import { GjsifyTheme } from "./theme.js"; | ||
|
||
|
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 @@ | ||
export * from "./intrinsic-elements"; | ||
export * from "./jsx-children"; | ||
export * from "./jsx-element"; | ||
export * as JSX from "./jsx"; | ||
export { Raw } from "./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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* eslint-disable @typescript-eslint/no-empty-interface */ | ||
/* eslint-disable @typescript-eslint/no-namespace */ | ||
import type { | ||
JsxHtmlGlobalProps, | ||
BasicIntrinsicElements, | ||
} from "@ribajs/jsx/src/types/index"; | ||
import type { Bs5IntrinsicElements } from "@ribajs/bs5/src/types/jsx"; | ||
import type { RouterIntrinsicElements } from "@ribajs/router/src/types/jsx"; | ||
import type { TsdIntrinsicElements } from "@gjsify/typedoc-theme-client"; | ||
|
||
export type JsxTsdHeaderProps = JsxHtmlGlobalProps; | ||
|
||
export type JsxTsdFooterProps = JsxHtmlGlobalProps; | ||
|
||
export interface TsdThemeIntrinsicElements { | ||
// Custom Elements | ||
"tsd-header": JsxTsdHeaderProps; | ||
"tsd-footer": JsxTsdFooterProps; | ||
} | ||
|
||
export interface IntrinsicElements | ||
extends BasicIntrinsicElements, | ||
TsdThemeIntrinsicElements, | ||
TsdIntrinsicElements, | ||
Bs5IntrinsicElements, | ||
RouterIntrinsicElements {} |
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 @@ | ||
import type { JsxElement } from "./jsx-element.js"; | ||
import type { JsxChildren as RibaJsxChildren } from "@ribajs/jsx/dist/types/index"; | ||
|
||
export declare type JsxChildren = RibaJsxChildren & | ||
(JsxElement | string | number | null | undefined | JsxChildren[]); |
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 @@ | ||
import type { JSX } from "typedoc"; | ||
import type { JsxElement as RibaJsxElement } from "@ribajs/jsx/dist/types/index"; | ||
|
||
export type JsxElement = JSX.Element & RibaJsxElement; |
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,62 @@ | ||
/** | ||
* This file is needed to define custom HTML elements for JSX. | ||
* @see https://github.com/TypeStrong/typedoc/blob/master/src/lib/utils/jsx.elements.ts | ||
*/ | ||
import { JSX as OJSX } from "typedoc"; | ||
import { JsxElement } from "./jsx-element.js"; | ||
import { IntrinsicElements as TsdIntrinsicElements } from "./intrinsic-elements.js"; | ||
import { JsxChildren } from "./jsx-children.js"; | ||
|
||
/** | ||
* JSX factory function to create an "element" that can later be rendered with {@link renderElement} | ||
* @param tag | ||
* @param props | ||
* @param children | ||
*/ | ||
export const createElement = OJSX.createElement as ( | ||
tag: typeof OJSX.Fragment | string | OJSX.JsxComponent<any>, | ||
props: object | null, | ||
...children: JsxChildren[] | ||
) => JsxElement; | ||
export const setRenderSettings = OJSX.setRenderSettings; | ||
export const renderElement = OJSX.renderElement as ( | ||
element: JsxElement | null | undefined | ||
) => string; | ||
|
||
export const Raw = OJSX.Raw; | ||
|
||
export type Element = JsxElement; | ||
|
||
export type Children = JsxChildren; | ||
|
||
/** | ||
* TypeScript's rules for looking up the JSX.IntrinsicElements and JSX.Element | ||
* interfaces are incredibly strange. It will find them if they are included as | ||
* a namespace under the createElement function, or globally, or, apparently, if | ||
* a JSX namespace is declared at the same scope as the factory function. | ||
* Hide this in the docs, hopefully someday TypeScript improves this and allows | ||
* looking adjacent to the factory function and we can get rid of this phantom namespace. | ||
* @hidden | ||
*/ | ||
// eslint-disable-next-line @typescript-eslint/no-namespace | ||
export declare namespace JSX { | ||
export { | ||
TsdIntrinsicElements as IntrinsicElements, | ||
JsxElement as Element, | ||
JsxChildren as Children, | ||
}; | ||
} | ||
|
||
declare global { | ||
// eslint-disable-next-line @typescript-eslint/no-namespace | ||
namespace JSX { | ||
// This extends the IntrinsicElements interface defined in @ribajs/jsx | ||
// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
export interface IntrinsicElements extends TsdIntrinsicElements { | ||
// | ||
} | ||
|
||
export type Element = JsxElement; | ||
export type Children = JsxChildren; | ||
} | ||
} |
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
Oops, something went wrong.