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

[DOCS] Update markdown links #1334

Merged
merged 3 commits into from
Apr 12, 2024
Merged

[DOCS] Update markdown links #1334

merged 3 commits into from
Apr 12, 2024

Conversation

mebrein
Copy link
Contributor

@mebrein mebrein commented Apr 11, 2024

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

  • No, this is a documentation update. The PR name follows the format [DOCS] my subject.

What changes were proposed in this PR?

Correct relative paths and including .md in the links so this is better picked up in ide, eg no more 404's when browsing the documentation in GitHub.

  • Fix internal markdown links and anchors
  • Fix link in footer to Discord
  • Fix minor typos

How was this patch tested?

mkdocs serve
mkdocs build

I checked for broken links and verified images are being displayed correctly.

Did this PR include necessary documentation updates?

  • No, this PR does not affect any public API so no need to change the documentation.

@jiayuasu
Copy link
Member

Thanks for fixing the doc!🚀🚀🚀

@jiayuasu jiayuasu added the docs label Apr 12, 2024
@jiayuasu jiayuasu merged commit 8324e2c into apache:master Apr 12, 2024
2 checks passed

<img alt="Point buffer with 8 quadrant segments" src="../../../image/point-buffer-quad-8.png" width="100" height=""/>
<img alt="Point buffer with 2 quadrant segments" src="../../../image/point-buffer-quad-2.png" width="100" height=""/>
![Point buffer with 8 quadrant segments](../../image/point-buffer-quad-8.png){: width="100px"}
Copy link
Member

Choose a reason for hiding this comment

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

When viewing the docs on GitHub this type of syntax does not work with {: width="100px"} being displayed as is.

Screenshot from 2024-04-18 02-07-06

Copy link
Contributor

Choose a reason for hiding this comment

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

It is rendering correctly when the docs is built using these instructions.
Screenshot 2024-04-17 at 1 56 34 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The syntax "{: width="100px"}" is not supported by github. Since there are not that many pictures, what we could do is resize all pictures, and get rid of this. And possibly have a linter? rule on top of it.

Copy link
Member

Choose a reason for hiding this comment

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

Best practice for web development is to serve images with the correct dimensions and avoid scaling down the images with HTML so that you don't waste users' data and hurt page performance.

https://web.dev/articles/serve-images-with-correct-dimensions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I issued a new pull request: #1359, hope it helps!

@mebrein mebrein deleted the update-links branch April 23, 2024 08:08
jiayuasu pushed a commit that referenced this pull request Apr 28, 2024
* Update links in code documentation across various files and some minor grammar fixes.

* [DOCS] Fix line breaks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants