提交 e922c074 编写于 作者: P pissang

chore: optimize style of README attention in nightly build

上级 ac6ffd99
......@@ -48,10 +48,10 @@ fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2), 'utf-8')
const readmePath = __dirname + '/../README.md';
const readmeAttention = `<div style="color:red;font-weight:bold;">
<p style="font-size:22px;text-transform:uppercase">⚠️ Attention Please</p>
<p style="font-size:16px">This is nightly build of Apache ECharts. Please DON't use it in your production environment.</p>
</div>`;
const readmeAttention = `<h3>
<p><em>⚠️ ATTENTION PLEASE</em></p>
<p><em>This is nightly build of Apache ECharts. Please DON't use it in your production environment.</em></p>
</h3>`;
const readmeContent = fs.readFileSync(readmePath, 'utf-8');
if (!readmeContent.includes(readmeAttention)) {
fs.writeFileSync(readmePath, `
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册