Skip to content

Commit

Permalink
docs: improve code demo box style (ant-design#26242)
Browse files Browse the repository at this point in the history
* docs: improve code demo box style

* chore: update lighthouse.yml

* use node 14
  • Loading branch information
afc163 authored Aug 17, 2020
1 parent 30c198c commit 86f6b5f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 18 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/lighthouse-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- 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/[email protected]
- run: npm run site
- run: lhci autorun --upload.target=temporary-public-storage
8 changes: 4 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ stages:
- task: NodeTool@0
displayName: 'Install Node.js'
inputs:
versionSpec: '12.13.1'
versionSpec: '14.7.0'
- script: npm install
displayName: 'Install modules'
- script: |
Expand Down Expand Up @@ -53,7 +53,7 @@ stages:
- task: NodeTool@0
displayName: 'Install Node.js'
inputs:
versionSpec: '12.13.1'
versionSpec: '14.7.0'
- script: npm install
displayName: 'Install modules'
- script: |
Expand All @@ -71,7 +71,7 @@ stages:
- task: NodeTool@0
displayName: 'Install Node.js'
inputs:
versionSpec: '12.16.3'
versionSpec: '14.7.0'
- script: npm install
displayName: 'Install modules'
- script: |
Expand All @@ -98,7 +98,7 @@ stages:
- task: NodeTool@0
displayName: 'Install Node.js'
inputs:
versionSpec: '12.13.1'
versionSpec: '14.7.0'
- script: npm install
displayName: 'Install modules'
- task: DownloadPipelineArtifact@2
Expand Down
12 changes: 5 additions & 7 deletions components/upload/demo/preview-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@ const props = {
};

ReactDOM.render(
<>
<Upload {...props}>
<Button>
<UploadOutlined /> Upload
</Button>
</Upload>
</>,
<Upload {...props}>
<Button>
<UploadOutlined /> Upload
</Button>
</Upload>,
mountNode,
);
```
7 changes: 1 addition & 6 deletions site/theme/static/demo.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
background: @component-background;
}
}
.code-box-description {
p {
color: @site-text-color;
}
}
&,
.code-box-demo {
background-color: @component-background;
Expand Down Expand Up @@ -140,7 +135,7 @@
}

blockquote {
margin: 0;
line-height: 1.5;
}

h4,
Expand Down

0 comments on commit 86f6b5f

Please sign in to comment.