-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(intellij): auto-bump intellij plugin version, and update readme an…
…d changelog with HTML versions of corresponding markdown files
- Loading branch information
1 parent
e214015
commit 549a992
Showing
5 changed files
with
6,842 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { prepare as replacePrepare } from '@google/semantic-release-replace-plugin'; | ||
import markDownIt from 'markdown-it'; | ||
import fsFull from 'fs'; | ||
|
||
const fs = fsFull.promises; | ||
const md = markDownIt(); | ||
|
||
const prepare = async (pluginConfig, context) => { | ||
context.htmlFiles = {}; | ||
for (var [key, markDownPath] of Object.entries(pluginConfig.files)) { | ||
context.logger.log(`Generating HTML for ${key} from ${markDownPath}`); | ||
const markdownContent = await fs.readFile(markDownPath, 'UTF-8'); | ||
context.htmlFiles[key] = md.render(markdownContent); | ||
} | ||
replacePrepare(pluginConfig, context); | ||
} | ||
|
||
export { prepare }; |
Oops, something went wrong.