Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ charset = utf-8
# Use spaces for all indents with a width of 4 characters.
indent_style = space
indent_size = 4


[*.css]
indent_size = 2
15 changes: 9 additions & 6 deletions .github/workflows/lighthouse-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request_target:
branches:
- main
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
Expand All @@ -16,21 +17,23 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3

- name: Wait for the Netlify Preview
uses: jakepartusch/wait-for-netlify-action@7ccf91c9ba3d64aa4389c0d3adcba0a6e77e5421 # v1
uses: andrewnicols/wait-for-netlify-preview@main
id: netlify
with:
site_name: moodledevdocs
site_id: "3c056055-e1bd-4cfd-8a02-ed35ab7aedfa"
max_timeout: 600
netlify_secret: ${{ secrets.NETLIFY_SECRET }}
- name: Audit URLs using Lighthouse
id: lighthouse_audit
uses: treosh/lighthouse-ci-action@b4dfae3eb959c5226e2c5c6afd563d493188bfaf # 9.3.0
with:
urls: |
https://deploy-preview-$PR_NUMBER--moodledevdocs.netlify.app/
https://deploy-preview-$PR_NUMBER--moodledevdocs.netlify.app/docs/apis/commonfiles
https://deploy-preview-$PR_NUMBER--moodledevdocs.netlify.app/general/development/gettingstarted
https://deploy-preview-$PR_NUMBER--moodledevdocs.netlify.app/general/releases
${{ steps.netlify.deployUrl }}/
${{ steps.netlify.deployUrl }}//docs/apis/commonsfiles
${{ steps.netlify.deployUrl }}/general/development/gettingstarted
${{ steps.netlify.deployUrl }}/general/releases
configPath: ./.github/workflows/lighthouserc.json
uploadArtifacts: true
temporaryPublicStorage: true
Expand Down
2 changes: 1 addition & 1 deletion config/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ module.exports = {
items: [
{
label: 'GitHub',
href: 'https://github.com/moodlehq',
href: 'https://github.com/moodle',
},
{
html: `
Expand Down
10 changes: 5 additions & 5 deletions config/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ const ArchivedVersionsDropdownItems = Object.entries(VersionsArchived).splice(
);

const navbar = {
title: 'Moodle',
title: '',
logo: {
alt: '',
src: 'img/Moodle_M_icon.svg',
height: '32px',
width: '32px',
src: 'img/Moodle.svg',
height: '35px',
width: '138px',
},
items: [
{
Expand Down Expand Up @@ -75,7 +75,7 @@ const navbar = {
],
},
{
href: 'https://github.com/moodle/moodle',
href: 'https://github.com/moodle',
label: 'GitHub',
position: 'right',
},
Expand Down
Loading