-
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.
Insert best practices into static documentation (#2)
* Start on functionality to write best practices into static files * Move sample generated docs * Get static insertion working in sample * Update README with new flag and behavior * Rename best practice building package script * Do not write "static used" best practices to the generated directory * Add comments and better error message * Build lib * 0.4.0
- Loading branch information
Showing
55 changed files
with
752 additions
and
160 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
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
type CheckArgs = { | ||
srcPath: string; | ||
destPath: string; | ||
generatedPath: string; | ||
}; | ||
/** | ||
* Compare the digest of the best practices against the stored digest to | ||
* see if the docs need to be updated. | ||
*/ | ||
declare const checkAction: ({ srcPath, destPath }: CheckArgs) => Promise<void>; | ||
declare const checkAction: ({ srcPath, generatedPath }: CheckArgs) => Promise<void>; | ||
export default checkAction; | ||
//# sourceMappingURL=check.d.ts.map |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import BestPractice from './BestPractice'; | ||
import checkAction from './actions/check'; | ||
import writeAction, { writeBestPractice } from './actions/write'; | ||
import writeAction, { getBestPracticeFileLines } from './actions/write'; | ||
import { getBestPracticesDigest } from './utils/digest'; | ||
import { getAllBestPractices, getFileBestPractices } from './utils/parse'; | ||
export { BestPractice, checkAction, getAllBestPractices, getBestPracticesDigest, getFileBestPractices, writeAction, writeBestPractice, }; | ||
export { BestPractice, checkAction, getAllBestPractices, getBestPracticesDigest, getFileBestPractices, writeAction, getBestPracticeFileLines, }; | ||
//# sourceMappingURL=index.d.ts.map |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.