-
Notifications
You must be signed in to change notification settings - Fork 223
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
README.md: Fix broken image on GitBook #407
base: master
Are you sure you want to change the base?
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.
Please fix your commit message
Done !!! 👍 |
ack 5c41e86 |
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.
LGTM 👍
ack 55f495d |
@neelanshsahai , did you try #398 (comment) ? An absolute URL is not a very good solution. |
unack 55f495d |
Also, in your commit message, it should be |
okay |
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.
@neelanshsahai A couple of issues :-
- You can omit "Fixes" from the commit description - Use something like "This ensures that the image is rendered correctly on README and Gitbook projects page." Also, use "Closes" instead of "Fixes" in issue reference.
- I think this still has some problem. IMO this shouldn't happen as we have used relative path to image, which is same in your fork too - Does this makes sense?
01f4468
to
8019dd5
Compare
@prnvdixit Done 👍 |
Updated the link in README.md, which fixes the broken image on GitBook Closes coala#398
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.
Image is still broken. And this will make image not centered in both github readme and gitbook html result.
Take a look at the deploy that i create from your commit here. (You can also create you own gitbook for testing changes by registering to gitbook and linking the forked repo)
The problem source of the broken image is, in the book.json (gitbook config), root is set to data/locale/
. And while the readme and other stuff are symlinked, the screenshot folder isn't.
I doubt we can make image in gitbook readme (About) centered. Seems like the sanitization filter used is strict. But, for github readme and gitbook html (Introduction), current workaround is enough. |
@mamat-rahmat , we could add a symlink to the screenshot folder, if that would fix it. @neelanshsahai , you want to try it (create your own custom gitbook with your fork of this repo) |
@@ -1,4 +1,4 @@ | |||
<p align="center"><img src="screenshots/header.png"></p> | |||
![image](./screenshots/header.png) |
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.
try add {: .center}
to align the image
![image](./screenshots/header.png){: .center}
Add a link of the image to the Readme so that the Image renders correctly on both, the README and the GitBook
Fixes #398
For short term contributors: we understand that getting your commits well
defined like we require is a hard task and takes some learning. If you
look to help without wanting to contribute long term there's no need
for you to learn this. Just drop us a message and we'll take care of brushing
up your stuff for merge!
Checklist
them.
individually. It is not sufficient to have "fixup commits" on your PR,
our bot will still report the issues for the previous commit.) You will
likely receive a lot of bot comments and build failures if coala does not
pass on every single commit!
After you submit your pull request, DO NOT click the 'Update Branch' button.
When asked for a rebase, consult coala.io/rebase
instead.
Please consider helping us by reviewing other peoples pull requests as well:
cobot mark wip <URL>
to get it outof the review queue.
The more you review, the more your score will grow at coala.io and we will
review your PRs faster!