TryGhost / gscan

Ghost theme scanner - checks for errors and feature support
https://gscan.ghost.org
MIT License
75 stars 55 forks source link

Added workflow to check links in docs #441

Closed vikaspotluri123 closed 2 years ago

vikaspotluri123 commented 2 years ago

no issue

Added a little test to extract the links in the details property of a rule. Not part of the official test suite since it hits ghost.org a bunch.

This is a very basic starting point that can be expanded as needed 😊

Things it does:

Things it doesn't do:

Things it could do in the future:

Test: https://ghost.org/docs/themes/helpers/pagination/ (71ms)
Test: https://ghost.org/docs/themes/helpers/meta_data/ (63ms)
Test: https://ghost.org/docs/themes/helpers/ghost_head_foot/ (153ms)
Test: https://ghost.org/docs/themes/helpers/img_url/ (179ms)
Test: https://ghost.org/docs/themes/contexts/ (200ms)
Test: https://ghost.org/docs/themes/contexts/author/ (74ms)
Test: https://ghost.org/docs/themes/helpers/site/ (156ms)
Test: https://ghost.org/docs/themes/contexts/post/ (79ms)
Test: https://ghost.org/docs/themes/helpers/config/ (55ms)
Test: https://ghost.org/docs/themes/contexts/tag/ (77ms)
Test: https://ghost.org/docs/themes/structure/ (75ms)
Test: https://ghost.org/docs/themes/helpers/foreach/ (62ms)
Test: https://ghost.org/docs/themes/helpers/ (74ms)
Test: https://ghost.org/docs/themes/contexts/index-context/ (56ms)
Test: https://ghost.org/docs/themes/helpers/asset/ (145ms)
Test: https://ghost.org/docs/themes/helpers/get/ (179ms)
Test: https://ghost.org/docs/themes//helpers/ (138ms)
Test: https://ghost.org/docs/themes/helpers/authors/ (173ms)
Test: https://ghost.org/docs/changes/ (58ms)
Test: https://ghost.org/docs/themes/helpers/tiers/ (57ms)
Test: https://ghost.org/docs/themes/helpers/price/ (56ms)
Test: https://ghost.org/docs/themes/content/ (410ms)
Test: https://ghost.org/docs/themes/members/ (226ms)
Test: https://ghost.org/docs/themes/helpers/labs/ (68ms)
Test: https://ghost.org/docs/themes/helpers/price (352ms)
https://ghost.org/docs/themes//helpers/ (used 4x) was redirected
https://ghost.org/docs/themes/helpers/price (used in canary/GS001-DEPR-CURR-SYM) was redirected
https://ghost.org/docs/themes/helpers/labs/ (used in v4/GS001-DEPR-LABS-MEMBERS) returned a not-ok (404) status.
5 rules have errors:
  canary/GS010-PJ-PARSE
    Has an href that is not part of the Ghost website
  v1/GS010-PJ-PARSE
    Has an href that is not part of the Ghost website
  v2/GS010-PJ-PARSE
    Has an href that is not part of the Ghost website
  v3/GS010-PJ-PARSE
    Has an href that is not part of the Ghost website
  v4/GS010-PJ-PARSE
    Has an href that is not part of the Ghost website
daniellockyer commented 2 years ago

Very cool! I'll fixup the issues it mentions 🙂