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

Fixed the image bug on Laika site and added a few alts #156

Merged
merged 5 commits into from
Apr 14, 2024

Conversation

VOSID8
Copy link
Contributor

@VOSID8 VOSID8 commented Apr 13, 2024

image

Fixed red-blue image bug, which was missing in /pictures. Also added alts and titles to other images.

Copy link
Contributor

@noelwelsh noelwelsh left a comment

Choose a reason for hiding this comment

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

A few simple changes are needed.

@@ -20,7 +20,10 @@ val basicShapes =

This program gives the output below.

@:image(basic-shapes.png)
@:image(basic-shapes.png) {
alt = A circle, square, and triangle
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you need to quote this string and the one below it, as the commas seem to throw off the parser.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, removed the commas

Copy link
Contributor

Choose a reason for hiding this comment

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

The code producing this file should be in docs/src/main/scala/pictures/Layout.scala. The convention the docs are moving to is to not include the pictures but generate them from code every time the documentation is built.

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've created another object ImageObj considering it being on different page from layout. Let me know if it's required to shift to layout.scala

@noelwelsh
Copy link
Contributor

Thanks! I'll fix the remaining little issues.

@noelwelsh noelwelsh merged commit 625b666 into creativescala:main Apr 14, 2024
4 checks passed
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.

2 participants