mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
misc: adjust Lighthouse CI (#7324)
* misc: adjust Lighthouse CI * Use MD link * Format code
This commit is contained in:
parent
39f5cf3e29
commit
3a7e6665ad
|
|
@ -28,7 +28,7 @@ jobs:
|
|||
with:
|
||||
urls: |
|
||||
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
|
||||
uploadArtifacts: true
|
||||
temporaryPublicStorage: true
|
||||
|
|
|
|||
|
|
@ -15,7 +15,9 @@ const createMarkdownTableRow = ({
|
|||
pwa,
|
||||
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}) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue