Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-4175: Add links checker #2130

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft

IBX-4175: Add links checker #2130

wants to merge 12 commits into from

Conversation

adriendupuis
Copy link
Contributor

Question Answer
JIRA Ticket IBX-4175
Versions N/A
Edition N/A

Add a script to test internal and external links.

  • Warn about broken links (not found, redirections, privates, etc.)
    • External links shouldn't be redirection (a redirection might be a not accurate enough replacement after a removal)
  • Check if the fragment/anchor/hash exists (could be the symptom of moved content from one page to another)

Checklist

  • Text renders correctly
  • Text has been checked with vale
  • Description metadata is up to date
  • Redirects cover removed/moved pages
  • Code samples are working
  • PHP code samples have been fixed with PHP CS fixer
  • Added link to this PR in relevant JIRA ticket or code PR

|| str_starts_with($url, 'https://api.cloud.ibexa.co') // 301, PLATFORMSH_CLI_API_URL
//|| str_starts_with($url, 'https://admin.perso.ibexa.co/api/') // 400
|| str_starts_with($url, 'https://admin.perso.ibexa.co/') // 404
|| str_starts_with($url, 'https://event.perso.ibexa.co/api/') // 400
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
|| str_starts_with($url, 'https://event.perso.ibexa.co/api/') // 400
|| str_starts_with($url, 'https://event.perso.ibexa.co/api/') // 404
|| str_starts_with($url, 'https://tracker.ibexa.co/api/') // Could not resolve host

Copy link
Contributor Author

@adriendupuis adriendupuis Jan 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

|| str_starts_with($url, 'https://event.perso.ibexa.co/ebl/') // 404
|| str_starts_with($url, 'https://import.perso.ibexa.co/api/') // 400
|| str_starts_with($url, 'https://reco.perso.ibexa.co') // 403
;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
;
|| str_starts_with($url, 'https://flex.ibexa.co') // Could not resolve host
;

'[[= user_doc =]]' => 'https://doc.ibexa.co/projects/userguide/en/master',
];

$find = true;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$find = true;
$find = './docs/*/';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant