website icon indicating copy to clipboard operation
website copied to clipboard

fix(link): fixing github redirecting links

Open DhairyaMajmudar opened this issue 1 year ago • 2 comments

Description

  • Fixed the edit-page-config.json file to fix the issue
  • changed page in the href key to markdown

Related issue(s) Fixes #3067

DhairyaMajmudar avatar Jul 02 '24 13:07 DhairyaMajmudar

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
Latest commit e4429f8464d39734d34c9a1db44ba9f2f3de37e0
Latest deploy log https://app.netlify.com/sites/asyncapi-website/deploys/66d84df87ebe9d00081c6b37
Deploy Preview https://deploy-preview-3071--asyncapi-website.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Jul 02 '24 13:07 netlify[bot]

@akshatnema dunno why Lighthouse CI is failing even for small change is there any way to fix ?

DhairyaMajmudar avatar Jul 06 '24 13:07 DhairyaMajmudar

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 40
🟢 Accessibility 98
🟢 Best practices 92
🟢 SEO 100
🔴 PWA 33

Lighthouse ran on https://deploy-preview-3071--asyncapi-website.netlify.app/

asyncapi-bot avatar Jul 10 '24 12:07 asyncapi-bot

Thanks for the change, @DhairyaMajmudar. Can you please dig into the issue further as I just found out some other docs edit links are broken. For example: https://www.asyncapi.com/docs/tools/generator/asyncapi-document link should have an edit link to https://github.com/asyncapi/generator/blob/master/apps/generator/docs/asyncapi-document.md but is instead https://github.com/asyncapi/generator/tree/master/docs/asyncapi-document.mdx which is wrong. There might be other such links, which you would need to find out.

anshgoyalevil avatar Jul 10 '24 12:07 anshgoyalevil

Thanks for the change, @DhairyaMajmudar. Can you please dig into the issue further as I just found out some other docs edit links are broken. For example: https://www.asyncapi.com/docs/tools/generator/asyncapi-document link should have an edit link to https://github.com/asyncapi/generator/blob/master/apps/generator/docs/asyncapi-document.md but is instead https://github.com/asyncapi/generator/tree/master/docs/asyncapi-document.mdx which is wrong. There might be other such links, which you would need to find out.

Sure thing 👍🏻

DhairyaMajmudar avatar Jul 10 '24 13:07 DhairyaMajmudar

@DhairyaMajmudar just check all the links and report them here after that have we can see that need to change only the config or the gh action ferentor '

sambhavgupta0705 avatar Jul 10 '24 16:07 sambhavgupta0705

Hi, @anshgoyalevil @sambhavgupta0705 I checked the links and did the needy changes in config files but the bug still exists since the links generated redirects to .mdx files instead of .md

The reason behind is their declaration in the posts.json file but since it is mentioned in .gitignore I am not able to commit the changes in that file.

EDIT: Also its a bit strange how I'm able to access the files mentioned in .gitignore

DhairyaMajmudar avatar Jul 11 '24 06:07 DhairyaMajmudar

Hi, @anshgoyalevil @sambhavgupta0705 I checked the links and did the needy changes in config files but the bug still exists since the links generated redirects to .mdx files instead of .md

The reason behind is their declaration in the posts.json file but since it is mentioned in .gitignore I am not able to commit the changes in that file. EDIT: Also its a bit strange how I'm able to access the files mentioned in .gitignore

@sambhavgupta0705 just a friendly ping on this.

DhairyaMajmudar avatar Jul 25 '24 14:07 DhairyaMajmudar

@derberg we need your suggestion here

sambhavgupta0705 avatar Jul 25 '24 15:07 sambhavgupta0705

you also need to update the component responsible for edit link: https://github.com/asyncapi/website/blob/master/components/layout/DocsLayout.tsx#L53

derberg avatar Aug 21 '24 19:08 derberg

@DhairyaMajmudar any updates on the PR?

akshatnema avatar Aug 29 '24 19:08 akshatnema

@DhairyaMajmudar any updates on the PR?

I'm still unsure of this https://github.com/asyncapi/website/pull/3071#issuecomment-2222107745

DhairyaMajmudar avatar Aug 30 '24 05:08 DhairyaMajmudar

@akshatnema @sambhavgupta0705 I've fixed the problem stated in https://github.com/asyncapi/website/pull/3071#issuecomment-2220436121 now links are working as expected, can you pls. review the PR.

DhairyaMajmudar avatar Sep 04 '24 12:09 DhairyaMajmudar

@DhairyaMajmudar

add config for glee docs

sambhavgupta0705 avatar Sep 13 '24 03:09 sambhavgupta0705

closing this one as we have changed the scope of the issue

sambhavgupta0705 avatar Sep 19 '24 12:09 sambhavgupta0705