-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert default themes to JSX; merge into typedoc repo #1634
Closed
Closed
Changes from 4 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
1f2b08d
add jsx templates WIP
cspotcode 98f3858
WIP
cspotcode de07445
WIP
cspotcode 308f31b
whole lotta WIP
cspotcode 4b1c7fe
way more WIP
cspotcode 93a5749
more WIP
cspotcode 71938cb
WIP
cspotcode e6283bb
WIP
cspotcode 5145323
wip
cspotcode d941bd3
wip
cspotcode 2be9f65
wip
cspotcode c040fd8
wip
cspotcode 9b477d8
wip
cspotcode b975fdc
wip
cspotcode 1642f9f
spec updates
cspotcode be193d6
update specs
cspotcode 2346df0
wip
cspotcode 71c1325
WIP
cspotcode d148cc4
wip
cspotcode e54233d
it works!
cspotcode e0c605e
fixdeps
cspotcode a18eb41
fix
cspotcode b6ffed6
visual regression testing and misc
cspotcode 54b00af
update
cspotcode 2f836b4
AFTER THIS POINT specs are rewritten with new jsx output; markdown em…
cspotcode c389e59
remove prettiering of html from tests
cspotcode e891efa
update specs
cspotcode 62cf210
switch markdown <md> tag to <div>
cspotcode fab6dae
update specs
cspotcode 475ed99
update build scripts to run webpack
cspotcode b3ea1ff
fix linting
cspotcode 1963574
linting
cspotcode 67c0421
Update lib.tsx
cspotcode File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
{} | ||
{ | ||
"printWidth": 120 | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import * as React from 'react'; | ||
|
||
/** | ||
* Insert word break tags ``<wbr>`` into the given string. | ||
* | ||
* Breaks the given string at ``_``, ``-`` and capital letters. | ||
* | ||
* @param str The string that should be split. | ||
* @return The original string containing ``<wbr>`` tags where possible. | ||
*/ | ||
export function wbr(str: string): (string | Element)[] { | ||
// TODO surely there is a better way to do this, but I'm tired. | ||
const ret: (string | Element)[] = []; | ||
const re = /^[\s\S]*?(?:([^_-][_-])(?=[^_-])|([^A-Z])(?=[A-Z][^A-Z]))/g; | ||
let match: RegExpExecArray | null; | ||
let i = 0; | ||
while((match = re.exec(str))) { | ||
ret.push(match[0]); | ||
ret.push(<wbr />); | ||
i += match.index + match[0].length; | ||
} | ||
ret.push(str.slice(i)); | ||
|
||
return ret; | ||
} |
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,16 +1,20 @@ | ||
import { ReactElement } from "react"; | ||
|
||
/** | ||
* | ||
*/ | ||
export class UrlMapping { | ||
export class UrlMapping<Model = any> { | ||
url: string; | ||
|
||
model: any; | ||
model: Model; | ||
|
||
template: string; | ||
template: RenderTemplate<Model>; | ||
|
||
constructor(url: string, model: any, template: string) { | ||
constructor(url: string, model: any, template: RenderTemplate<Model>) { | ||
this.url = url; | ||
this.model = model; | ||
this.template = template; | ||
} | ||
} | ||
|
||
export type RenderTemplate<T> = (data: T) => ReactElement | string; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was being called from templates but not declared anywhere. Do you know what the implementation should be?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was removed in 0.20, it's always true now.