Skip to content

Commit

Permalink
chore: apply automated updates
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] committed Feb 21, 2024
1 parent 0e6c530 commit 61c85f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/modules/content/source.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export default (opts) => {
// Automd transform
if (opts.docsConfig.automd) {
if (key.endsWith('.md') && typeof val === 'string') {
if (!automdConfig) { automdConfig = await loadConfig(opts.docsConfig.dir, opts.docsConfig.automd) }
if (!automdConfig) {
automdConfig = await loadConfig(opts.docsConfig.dir, opts.docsConfig.automd)
}
const res = await transform(val, automdConfig)
if (res.hasChanged) {
_fs.setItem(key, res.contents).catch(console.error)
Expand Down

0 comments on commit 61c85f4

Please sign in to comment.