mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-30 02:37:59 +02:00
misc: adjust Lighthouse CI (#7324)
* misc: adjust Lighthouse CI * Use MD link * Format code
This commit is contained in:
parent
39f5cf3e29
commit
3a7e6665ad
2 changed files with 4 additions and 2 deletions
2
.github/workflows/lighthouse-report.yml
vendored
2
.github/workflows/lighthouse-report.yml
vendored
|
@ -28,7 +28,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
urls: |
|
urls: |
|
||||||
https://deploy-preview-$PR_NUMBER--docusaurus-2.netlify.app/
|
https://deploy-preview-$PR_NUMBER--docusaurus-2.netlify.app/
|
||||||
https://deploy-preview-$PR_NUMBER--docusaurus-2.netlify.app/docs/
|
https://deploy-preview-$PR_NUMBER--docusaurus-2.netlify.app/docs/installation
|
||||||
configPath: ./.github/workflows/lighthouserc.json
|
configPath: ./.github/workflows/lighthouserc.json
|
||||||
uploadArtifacts: true
|
uploadArtifacts: true
|
||||||
temporaryPublicStorage: true
|
temporaryPublicStorage: true
|
||||||
|
|
|
@ -15,7 +15,9 @@ const createMarkdownTableRow = ({
|
||||||
pwa,
|
pwa,
|
||||||
reportUrl,
|
reportUrl,
|
||||||
}) => {
|
}) => {
|
||||||
return `| ${url} | ${performance} | ${accessibility} | ${bestPractices} | ${seo} | ${pwa} | [View report](${reportUrl})|`;
|
return `| [${
|
||||||
|
new URL(url).pathname
|
||||||
|
}](${url}) | ${performance} | ${accessibility} | ${bestPractices} | ${seo} | ${pwa} | [View report](${reportUrl})|`;
|
||||||
};
|
};
|
||||||
|
|
||||||
const createSingleRow = ({summary, testUrl, reportPublicUrl}) => {
|
const createSingleRow = ({summary, testUrl, reportPublicUrl}) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue