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

README.md: Fix broken image on GitBook #407

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

neelanshsahai
Copy link
Contributor

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

  • I read the commit guidelines and I've followed
    them.
  • I ran coala over my code locally. (All commits have to pass
    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:

The more you review, the more your score will grow at coala.io and we will
review your PRs faster!

Copy link
Member

@jayvdb jayvdb left a 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

@neelanshsahai
Copy link
Contributor Author

Done !!! 👍

@prashant0598
Copy link
Member

ack 5c41e86

Copy link
Member

@prashant0598 prashant0598 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@prashant0598
Copy link
Member

ack 55f495d

@jayvdb
Copy link
Member

jayvdb commented Nov 9, 2017

@neelanshsahai , did you try #398 (comment) ?

An absolute URL is not a very good solution.

@jayvdb
Copy link
Member

jayvdb commented Nov 9, 2017

unack 55f495d

@jayvdb
Copy link
Member

jayvdb commented Nov 9, 2017

Also, in your commit message, it should be GitBook, not gitbook .
Please pay attention to details like that.

@neelanshsahai
Copy link
Contributor Author

okay
will do that right away 👍

Copy link
Member

@prnvdixit prnvdixit left a 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 :-

  1. 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.
  2. 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?

@neelanshsahai
Copy link
Contributor Author

neelanshsahai commented Nov 11, 2017

@prnvdixit Done 👍
@jayvdb I tried center aligning the images using the markdown syntax, but had no luck. Hope it gets rendered on the GitBook correctly.
Also please tell me why is the gem installation failing? (in the deploy preview)

Updated the link in README.md, which fixes
the broken image on GitBook

Closes coala#398
Copy link
Member

@mamat-rahmat mamat-rahmat left a 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.

@mamat-rahmat
Copy link
Member

mamat-rahmat commented Nov 23, 2017

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.

@jayvdb

@jayvdb
Copy link
Member

jayvdb commented Mar 9, 2018

@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)
Copy link
Contributor

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}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Image on GitBook is broken
8 participants