mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
docs: improve code demo box style (#26242)
* docs: improve code demo box style * chore: update lighthouse.yml * use node 14
This commit is contained in:
parent
30c198c077
commit
86f6b5f0bc
4
.github/workflows/lighthouse-ci.yml
vendored
4
.github/workflows/lighthouse-ci.yml
vendored
@ -5,7 +5,9 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v2-beta
|
||||||
|
with:
|
||||||
|
node-version: '14'
|
||||||
- run: npm install && npm install -g @lhci/cli@0.4.x
|
- run: npm install && npm install -g @lhci/cli@0.4.x
|
||||||
- run: npm run site
|
- run: npm run site
|
||||||
- run: lhci autorun --upload.target=temporary-public-storage
|
- run: lhci autorun --upload.target=temporary-public-storage
|
||||||
|
@ -23,7 +23,7 @@ stages:
|
|||||||
- task: NodeTool@0
|
- task: NodeTool@0
|
||||||
displayName: 'Install Node.js'
|
displayName: 'Install Node.js'
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: '12.13.1'
|
versionSpec: '14.7.0'
|
||||||
- script: npm install
|
- script: npm install
|
||||||
displayName: 'Install modules'
|
displayName: 'Install modules'
|
||||||
- script: |
|
- script: |
|
||||||
@ -53,7 +53,7 @@ stages:
|
|||||||
- task: NodeTool@0
|
- task: NodeTool@0
|
||||||
displayName: 'Install Node.js'
|
displayName: 'Install Node.js'
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: '12.13.1'
|
versionSpec: '14.7.0'
|
||||||
- script: npm install
|
- script: npm install
|
||||||
displayName: 'Install modules'
|
displayName: 'Install modules'
|
||||||
- script: |
|
- script: |
|
||||||
@ -71,7 +71,7 @@ stages:
|
|||||||
- task: NodeTool@0
|
- task: NodeTool@0
|
||||||
displayName: 'Install Node.js'
|
displayName: 'Install Node.js'
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: '12.16.3'
|
versionSpec: '14.7.0'
|
||||||
- script: npm install
|
- script: npm install
|
||||||
displayName: 'Install modules'
|
displayName: 'Install modules'
|
||||||
- script: |
|
- script: |
|
||||||
@ -98,7 +98,7 @@ stages:
|
|||||||
- task: NodeTool@0
|
- task: NodeTool@0
|
||||||
displayName: 'Install Node.js'
|
displayName: 'Install Node.js'
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: '12.13.1'
|
versionSpec: '14.7.0'
|
||||||
- script: npm install
|
- script: npm install
|
||||||
displayName: 'Install modules'
|
displayName: 'Install modules'
|
||||||
- task: DownloadPipelineArtifact@2
|
- task: DownloadPipelineArtifact@2
|
||||||
|
@ -33,13 +33,11 @@ const props = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<>
|
|
||||||
<Upload {...props}>
|
<Upload {...props}>
|
||||||
<Button>
|
<Button>
|
||||||
<UploadOutlined /> Upload
|
<UploadOutlined /> Upload
|
||||||
</Button>
|
</Button>
|
||||||
</Upload>
|
</Upload>,
|
||||||
</>,
|
|
||||||
mountNode,
|
mountNode,
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
@ -22,11 +22,6 @@
|
|||||||
background: @component-background;
|
background: @component-background;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.code-box-description {
|
|
||||||
p {
|
|
||||||
color: @site-text-color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
&,
|
&,
|
||||||
.code-box-demo {
|
.code-box-demo {
|
||||||
background-color: @component-background;
|
background-color: @component-background;
|
||||||
@ -140,7 +135,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
margin: 0;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
h4,
|
h4,
|
||||||
|
Loading…
Reference in New Issue
Block a user