Skip to content

Commit

Permalink
fix(create readme): 生成文档 box.config 格式错误
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxue committed Dec 10, 2019
1 parent 065420b commit 3401e28
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 24 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
commit config | 修改提交代码配置 | [dd90ff9](https://github.com/luoxue-victor/learn_webpack/commit/dd90ff9)
createreadme | 文档生成bug修改 | [2730902](https://github.com/luoxue-victor/learn_webpack/commit/2730902)
delete | 删除无用代码 | [0831fc9](https://github.com/luoxue-victor/learn_webpack/commit/0831fc9)
merge | 合并master | [065420b](https://github.com/luoxue-victor/learn_webpack/commit/065420b)
package | asdasdasdad | [8a4cff1](https://github.com/luoxue-victor/learn_webpack/commit/8a4cff1)
packagejson | 调整生成文档在 commit-msg 钩子内 | [d21b695](https://github.com/luoxue-victor/learn_webpack/commit/d21b695)
scripts cz | 修改脚本cz命令 | [b4a8c51](https://github.com/luoxue-victor/learn_webpack/commit/b4a8c51)
Expand Down
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ webpack-box lint stylelint # 自动修复 stylelint 错误

### 扩展配置

<details open=“open”>
<br/>
<summary>点击关闭/打开扩展配置</summary>
<br/>
在根目录下添加 `box.config.js`,即可配置使用
box.config.js
<details open=“open”>
<br/>
<summary>点击关闭/打开扩展配置</summary>
<br/>
在根目录下添加 `box.config.js`,即可配置使用

box.config.js

```js
```js
const path = require('path')
function resolve (dir) {
return path.join(process.cwd(), dir)
Expand Down Expand Up @@ -167,8 +167,6 @@ module.exports = function (config) {
}
}
}

```

</details>
```
</details>

24 changes: 12 additions & 12 deletions util/createReadme.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,20 @@ function boxConfig () {
### 扩展配置
<details open=“open”>
<br/>
<summary>点击关闭/打开扩展配置</summary>
<br/>
在根目录下添加 \`box.config.js\`,即可配置使用
box.config.js
<details open=“open”>
<br/>
<summary>点击关闭/打开扩展配置</summary>
<br/>
在根目录下添加 \`box.config.js\`,即可配置使用
box.config.js
\`\`\`js
\`\`\`js
${ctx}
\`\`\`
</details>
`
\`\`\`
</details>
`
}

function readMdBy(name) {
Expand Down

0 comments on commit 3401e28

Please sign in to comment.