generated from metalsmith/core-plugin
-
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.
fix: path normalization, example correction, TS types, comments cleanup
- Loading branch information
Showing
5 changed files
with
16 additions
and
15 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
test/fixtures | ||
test/fixtures | ||
lib |
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,10 +1,14 @@ | ||
import { Plugin } from 'metalsmith'; | ||
|
||
export default refs; | ||
export type Options = { | ||
key: string; | ||
/** | ||
* Limit ref substitution by glob pattern to a subset of files | ||
*/ | ||
pattern?: string | string[]; | ||
}; | ||
/** | ||
* A Metalsmith plugin to serve as a boilerplate for other core plugins | ||
* A metalsmith plugin to refer to other files and global metadata from a file's refs property | ||
* | ||
* @param {Options} options | ||
* @returns {import('metalsmith').Plugin} | ||
*/ | ||
declare function refs(options: Options): Plugin; | ||
declare function refs(options: Options): import('metalsmith').Plugin; |
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