-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Conversation
There was a problem hiding this 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.
docs/src/pages/pictures/shape.md
Outdated
@@ -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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, removed the commas
docs/src/pages/pictures/red-blue.png
Outdated
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Thanks! I'll fix the remaining little issues. |
Fixed red-blue image bug, which was missing in /pictures. Also added alts and titles to other images.