-
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
1 parent
0ffd62a
commit 864495c
Showing
21 changed files
with
1,203 additions
and
3,526 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# https://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[package.json] | ||
indent_size = 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,3 @@ | ||
{ | ||
"esversion": 8 | ||
} |
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,55 @@ | ||
class InlineAssetsPlugin { | ||
constructor(options = {}) { | ||
const { patterns = [] } = options; | ||
this.patterns = patterns; | ||
} | ||
|
||
apply(compiler) { | ||
compiler.hooks.emit.tapAsync( | ||
"InlineAssetsPlugin", | ||
(compilation, callback) => { | ||
for (const pattern of this.patterns) { | ||
const fromSource = this.getSource( | ||
compilation.getAsset(pattern.from) | ||
); | ||
const toSource = this.getSource( | ||
compilation.getAsset(pattern.to) | ||
); | ||
|
||
const resultSource = toSource.replace( | ||
pattern.pattern, | ||
fromSource | ||
); | ||
|
||
compilation.updateAsset(pattern.to, { | ||
source() { | ||
return resultSource; | ||
}, | ||
size() { | ||
return resultSource.length; | ||
}, | ||
}); | ||
} | ||
|
||
callback(); | ||
} | ||
); | ||
} | ||
|
||
getSource(asset) { | ||
let source = asset.source; | ||
if (typeof source === "function") { | ||
source = source(); | ||
} else { | ||
source = source.source(); | ||
} | ||
|
||
if (source instanceof Buffer) { | ||
return source.toString("utf8"); | ||
} | ||
|
||
return source; | ||
} | ||
} | ||
|
||
module.exports.InlineAssetsPlugin = InlineAssetsPlugin; |
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,10 +1,9 @@ | ||
# ig-typedoc-theme | ||
# igniteui-typedoc-theme | ||
 | ||
|
||
This package extends [igniteui-typedoc-theme](https://github.com/IgniteUI/igniteui-typedoc-theme) and represents the feel and look of the infragistics API **EN** and **JP** typedoc documentations. | ||
This package represents the feel and look of the infragistics API typedoc documentations. | ||
There are a specific global header and footer declarations that could be easily edited based on user's preferences. | ||
|
||
It includes specific internationalization configurations and depends on the [typedoc plugin](https://github.com/IgniteUI/typedoc-plugin-localization) package. | ||
The output of the theme could be seen on [this web app](https://www.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/) | ||
|
||
The output of the theme could be seen on: | ||
* [EN API web app](https://www.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/) | ||
* [JP API web app](https://jp.infragistics.com/products/ignite-ui-angular/docs/typescript/latest/) | ||
Example: This theme is used by other documentations within (or external) of the Infragistics organization - e.g. Reveal API documentation. Using of the theme externaly is also possible. |
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.