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: Modify steps of Usage #700

Merged
merged 1 commit into from
Feb 5, 2019
Merged

README.md: Modify steps of Usage #700

merged 1 commit into from
Feb 5, 2019

Conversation

sanchit48
Copy link
Member

Closes #477

@TravisBuddy

This comment has been minimized.

Copy link
Member

@budukhyash budukhyash left a comment

Choose a reason for hiding this comment

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

The modifications are good.Just suggesting a minor change in the commit body.

This modifies the steps required for the
usage of the repository .

Replacing "usage of the repository" with building project website or something similar to it would make more sense according to me.

@sanchit48
Copy link
Member Author

@budukhyash plz review.

@TravisBuddy
Copy link

Travis tests have failed

Hey @sanchit48,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Ruby: 2.5.1

View build log

docker run -v=$(pwd):/app --workdir=/app coala/base coala --ci
Unable to find image 'coala/base:latest' locally
latest: Pulling from coala/base
















Digest: sha256:125d6cf24929d39db47b3ccd83d6ed1b6a231fc7e8afbf70bc4b5bd87653b0ff
Status: Downloaded newer image for coala/base:latest
Executing section global...
[ERROR][09:54:26] The bear InvalidLinkBear does not fulfill all requirements. You are not connected to the internet.
Executing section commit...
Executing section linecount...
Executing section filenames...
Executing section markdown_filenames...
Executing section spacing...
Executing section html...
Executing section yml...
Executing section new_linelength_projects...
Executing section old_linelength_projects...
Executing section cli...
nothing changed, not updating cache


Done. Your build exited with 1.
TravisBuddy Request Identifier: 62363210-2150-11e9-af85-47c84d506d52

README.md Outdated
@@ -29,9 +29,13 @@ Why?

## Usage

To clone the repository and run this website on your local machine, [install Jekyll](https://jekyllrb.com/docs/installation/) for your OS and type the following commands:
To clone the repository and run this website on your local machine, install
[Jekyll](https://jekyllrb.com/docs/installation/) and [rbenv](https://www.digitalocean.comcommunity/tutorials/how-to-install-ruby-on-rails)
Copy link
Contributor

@frextrite frextrite Jan 26, 2019

Choose a reason for hiding this comment

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

I don't think it's a good idea to link an external installation guide to install anything. The official installation guide for rbenv should be linked here.

Copy link
Member Author

@sanchit48 sanchit48 Jan 27, 2019

Choose a reason for hiding this comment

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

@frextrite I actually can't find the official installation guide for rbnev but i did find it's github repo. plz check if it's ok https://github.com/rbenv/rbenv#basic-github-checkout

Copy link
Contributor

Choose a reason for hiding this comment

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

That should work. Please consult other reviewers as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

While we are doing this, lets switch to @asdf-vm , which wraps rbenv and others. And they have a moderately sane website at https://asdf-vm.github.io/asdf/#/ . Iit should work ok on windows even, and ive added asdf-vm/asdf#450 to add CI for that.

Copy link

@Anmolbansal1 Anmolbansal1 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@TravisBuddy

This comment has been minimized.

README.md Outdated
@@ -29,9 +29,13 @@ Why?

## Usage

To clone the repository and run this website on your local machine, [install Jekyll](https://jekyllrb.com/docs/installation/) for your OS and type the following commands:
To clone the repository and run this website on your local machine, install
[Jekyll](https://jekyllrb.com/docs/installation/) and [rbenv](https://www.digitalocean.comcommunity/tutorials/how-to-install-ruby-on-rails)
Copy link
Member

Choose a reason for hiding this comment

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

While we are doing this, lets switch to @asdf-vm , which wraps rbenv and others. And they have a moderately sane website at https://asdf-vm.github.io/asdf/#/ . Iit should work ok on windows even, and ive added asdf-vm/asdf#450 to add CI for that.

@TravisBuddy
Copy link

Travis tests have failed

Hey @sanchit48,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Ruby: 2.5.1

View build log

docker run -v=$(pwd):/app --workdir=/app coala/base coala --ci
Unable to find image 'coala/base:latest' locally
latest: Pulling from coala/base
















Digest: sha256:125d6cf24929d39db47b3ccd83d6ed1b6a231fc7e8afbf70bc4b5bd87653b0ff
Status: Downloaded newer image for coala/base:latest
Executing section global...
[ERROR][12:08:21] The bear InvalidLinkBear does not fulfill all requirements. You are not connected to the internet.
Executing section commit...
Executing section linecount...
Executing section filenames...
Executing section markdown_filenames...
Executing section spacing...
|    | [NORMAL] SpaceConsistencyBear:
|    | Line contains following spacing inconsistencies:
|    | - Trailing whitespaces.
|----|    | /app/README.md
|    |++++| /app/README.md
|  32|  32| To clone the repository and run this website on your local machine, install
|  33|  33| [asdf-vm](https://asdf-vm.github.io/asdf/#/core-manage-asdf-vm) for your OS and now using asdf-vm,
|  34|  34| install [ruby](https://github.com/asdf-vm/asdf-ruby) and type the following commands:
|  35|    |-    
|    |  35|+
|  36|  36|     $ gem install jekyll bundler
|  37|  37|     $ git clone https://github.com/coala/projects.git
|  38|  38|     $ cd projects
[INFO][12:08:23] Applied 'ShowPatchAction' on 'README.md' from 'SpaceConsistencyBear'.
|    | [NORMAL] SpaceConsistencyBear:
|    | Line contains following spacing inconsistencies:
|    | - Trailing whitespaces.
|----|    | /app/data/locale/en/README.md
|    |++++| /app/data/locale/en/README.md
|  32|  32| To clone the repository and run this website on your local machine, install
|  33|  33| [asdf-vm](https://asdf-vm.github.io/asdf/#/core-manage-asdf-vm) for your OS and now using asdf-vm,
|  34|  34| install [ruby](https://github.com/asdf-vm/asdf-ruby) and type the following commands:
|  35|    |-    
|    |  35|+
|  36|  36|     $ gem install jekyll bundler
|  37|  37|     $ git clone https://github.com/coala/projects.git
|  38|  38|     $ cd projects
[INFO][12:08:23] Applied 'ShowPatchAction' on 'data/locale/en/README.md' from 'SpaceConsistencyBear'.
Executing section html...
Executing section yml...
Executing section new_linelength_projects...
Executing section old_linelength_projects...
Executing section cli...
TravisBuddy Request Identifier: ec09d6f0-2550-11e9-8e3a-a568437420b3

@sanchit48
Copy link
Member Author

@jayvdb plz review

README.md Outdated
To clone the repository and run this website on your local machine, [install Jekyll](https://jekyllrb.com/docs/installation/) for your OS and type the following commands:

$ sudo gem install jekyll bundler
To clone the repository and run this website on your local machine, install
Copy link
Contributor

Choose a reason for hiding this comment

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

Reading the first line, creates a thought that for cloning this repository we need to install asdf-vm. Possibly you can divide this into two sections - asdf-vm & ruby installation and cloning and running

Copy link
Member Author

Choose a reason for hiding this comment

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

@KVGarg I agree with you but in the original README.md they asked to install Jekyll with the first line. So maybe they thought it won't create the confusion. What do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

In original README.md also, it is creating a confusion too. Now, also it's ok but it is creating some confusion. Don't know about others. Aren't you getting confused ?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, it does creates the confusion. i will change it.

@TravisBuddy

This comment has been minimized.

@sanchit48
Copy link
Member Author

@KVGarg plz review

README.md Outdated
$ sudo gem install jekyll bundler
Install [asdf-vm](https://asdf-vm.github.io/asdf/#/core-manage-asdf-vm) for your OS and now using asdf-vm, install [ruby](https://github.com/asdf-vm/asdf-ruby).

### Cloning and running
Copy link
Contributor

Choose a reason for hiding this comment

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

I used cloning and running because at that time, I didn't get the right word in my mind.
Can we have something more appropriate that describe this section better in two or three words ? IDK whether this will fit to this Build and Developement, if you have better words that can describe this section go with that. Because I am myself doubtful with my suggestion. But something diff. from Cloning and Running
Else everything perfect 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

ok i will see :)

README.md Outdated

$ sudo gem install jekyll bundler
Install [asdf-vm](https://asdf-vm.github.io/asdf/#/core-manage-asdf-vm) for your OS and now using asdf-vm, install [ruby](https://github.com/asdf-vm/asdf-ruby).
Copy link
Contributor

Choose a reason for hiding this comment

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

Better to break them into 2 points. And since the 2nd point is dependent on the first, number them.

Dependencies:
1. asdf-vm(for installing ruby easily)
2. ruby

But this way we are forcing the developer to install ruby via asdf. I am not sure if that is a good thing or not. Personally, I agree that using scripts makes the installation easier, but these scripts tend to break a lot, and thus prefer a more extensive manual installation.

Copy link
Member Author

Choose a reason for hiding this comment

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

@frextrite don't know much about that, i was just going according to #700 (comment)

README.md Outdated
$ sudo gem install jekyll bundler
Install [asdf-vm](https://asdf-vm.github.io/asdf/#/core-manage-asdf-vm) for your OS and now using asdf-vm, install [ruby](https://github.com/asdf-vm/asdf-ruby).

### Cloning and running
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe rename this to Download and Run?

Copy link
Member Author

Choose a reason for hiding this comment

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

@frextrite but we are not downloading anything. should I use Clone and Run ?

Copy link
Contributor

Choose a reason for hiding this comment

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

sanchit, go with Clone and Run as clone itself refers to create a copy of repository on your local desktop by downloading it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep Clone and Run works.

README.md Outdated

### Cloning and running

To clone the repository and run this website on your local machine, type the following commands:
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of this, infom the user to clone the repository followed by the clone command.

Clone the coala Projects repository
git clone <link to repository>

and then the steps to run the website

Run coala Projects website
$ cmd1
$ cmd2

Copy link
Member Author

Choose a reason for hiding this comment

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

Clone the coala Projects repository

I think To clone the repository, type the following command would look much better.

Copy link
Contributor

Choose a reason for hiding this comment

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

I will go with, frexrite. Since, both of them have same meaning but it will convey the meaning in less words in impactful manner

README.md Outdated

To clone the repository and run this website on your local machine, type the following commands:

$ gem install jekyll bundler
Copy link
Contributor

Choose a reason for hiding this comment

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

Move this somewhere before cloning the repository and after the dependency section, ideally it should be in the dependency section.

Copy link
Member Author

Choose a reason for hiding this comment

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

Can you plz tell how can i do that like should i make point no. 3 and just write the command ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Split dependencies section in points, this will create 3 points in the section.

  1. for installing asdf-vm
  2. for installing ruby
  3. for jekyll and bundler

@sanchit48
Copy link
Member Author

@KVGarg plz review

@TravisBuddy

This comment has been minimized.

README.md Outdated
$ sudo gem install jekyll bundler
1. Install [asdf-vm](https://asdf-vm.github.io/asdf/#/core-manage-asdf-vm) for your OS.
2. Using asdf-vm, install [ruby](https://github.com/asdf-vm/asdf-ruby).
3. Install jekyll bundler by typing the following command:
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(no idea of ruby) jekyll and bundler are 2 gems. In that case add an and between the two and preferably bold them.

Copy link
Member Author

Choose a reason for hiding this comment

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

@frextrite plz see https://jekyllrb.com/docs/. Here the command gem install jekyll bundler is given

Copy link
Contributor

Choose a reason for hiding this comment

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

He is trying to say, that where you have writtem Install jekyll nundler there you should write Install jekyll and bundler gems

Copy link
Contributor

Choose a reason for hiding this comment

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

and try to ommit by typing the following command. It is self-explanatory to user that he has to run this command in the terminal

Copy link
Member Author

Choose a reason for hiding this comment

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

ohh ok, got it 😅

Copy link
Contributor

Choose a reason for hiding this comment

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

According to the site Jekyll and Bundler are gems, so you can edit this line to just Install Jekyll by typing ...

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with @KVGarg. Omitting by typing the following command would be better.

README.md Outdated
@@ -29,15 +29,26 @@ Why?

## Usage

To clone the repository and run this website on your local machine, [install Jekyll](https://jekyllrb.com/docs/installation/) for your OS and type the following commands:
#### Dependencies
Copy link
Contributor

Choose a reason for hiding this comment

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

Make this h3

README.md Outdated

$ gem install jekyll bundler

#### Clone and Run
Copy link
Contributor

Choose a reason for hiding this comment

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

This as well.

README.md Outdated

#### Clone and Run

Clone the coala Projects repository
Copy link
Contributor

Choose a reason for hiding this comment

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

the

@TravisBuddy

This comment has been minimized.

@frextrite
Copy link
Contributor

Take a look at this and make the CI happy :)

@sanchit48
Copy link
Member Author

sanchit48 commented Feb 2, 2019

Take a look at this and make the CI happy :)

Done. plz review :D
Unable to make the CI happy. The reason is this, similar to the issue you opened earlier i guess

@TravisBuddy

This comment has been minimized.

This modifies the steps required to build and run
the website on the local machine by suggesting not
to use sudo in the command to install jekyll and
bundler and prefer asdf-vm to install ruby.

Closes #477
@TravisBuddy

This comment has been minimized.

@TravisBuddy
Copy link

Travis tests have failed

Hey @sanchit48,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Ruby: 2.5.1

View build log

docker run -v=$(pwd):/app --workdir=/app coala/base coala --ci
Unable to find image 'coala/base:latest' locally
latest: Pulling from coala/base
















Digest: sha256:125d6cf24929d39db47b3ccd83d6ed1b6a231fc7e8afbf70bc4b5bd87653b0ff
Status: Downloaded newer image for coala/base:latest
Executing section global...
[ERROR][18:11:04] The bear InvalidLinkBear does not fulfill all requirements. You are not connected to the internet.
Executing section commit...
Executing section linecount...
Executing section filenames...
Executing section markdown_filenames...
Executing section spacing...
|    | [NORMAL] SpaceConsistencyBear:
|    | Line contains following spacing inconsistencies:
|    | - Trailing whitespaces.
|----|    | /app/README.md
|    |++++| /app/README.md
|  34|  34| 1. Install [asdf-vm](https://asdf-vm.github.io/asdf/#/core-manage-asdf-vm) for your OS.
|  35|  35| 2. Using asdf-vm, install [ruby](https://github.com/asdf-vm/asdf-ruby).
|  36|  36| 3. Install Jekyll
|  37|    |-    
|    |  37|+
|  38|  38|         $ gem install jekyll bundler
|  39|  39| 
|  40|  40| ### Clone and Run
|    | [NORMAL] SpaceConsistencyBear:
|    | Line contains following spacing inconsistencies:
|    | - Trailing whitespaces.
|----|    | /app/README.md
|    |++++| /app/README.md
|  40|  40| ### Clone and Run
|  41|  41| 
|  42|  42| Clone coala Projects repository
|  43|    |-    
|    |  43|+
|  44|  44|     $ git clone https://github.com/coala/projects.git
|  45|  45|     
|  46|  46| Run coala Projects website
|    | [NORMAL] SpaceConsistencyBear:
|    | Line contains following spacing inconsistencies:
|    | - Trailing whitespaces.
|----|    | /app/README.md
|    |++++| /app/README.md
|  42|  42| Clone coala Projects repository
|  43|  43|     
|  44|  44|     $ git clone https://github.com/coala/projects.git
|  45|    |-    
|    |  45|+
|  46|  46| Run coala Projects website
|  47|  47| 
|  48|  48|     $ cd projects
[INFO][18:11:06] Applied 'ShowPatchAction' on 'README.md' from 'SpaceConsistencyBear'.
[INFO][18:11:06] Applied 'ShowPatchAction' on 'README.md' from 'SpaceConsistencyBear'.
[INFO][18:11:06] Applied 'ShowPatchAction' on 'README.md' from 'SpaceConsistencyBear'.
|    | [NORMAL] SpaceConsistencyBear:
|    | Line contains following spacing inconsistencies:
|    | - Trailing whitespaces.
|----|    | /app/data/locale/en/README.md
|    |++++| /app/data/locale/en/README.md
|  34|  34| 1. Install [asdf-vm](https://asdf-vm.github.io/asdf/#/core-manage-asdf-vm) for your OS.
|  35|  35| 2. Using asdf-vm, install [ruby](https://github.com/asdf-vm/asdf-ruby).
|  36|  36| 3. Install Jekyll
|  37|    |-    
|    |  37|+
|  38|  38|         $ gem install jekyll bundler
|  39|  39| 
|  40|  40| ### Clone and Run
[INFO][18:11:06] Applied 'ShowPatchAction' on 'data/locale/en/README.md' from 'SpaceConsistencyBear'.
|    | [NORMAL] SpaceConsistencyBear:
|    | Line contains following spacing inconsistencies:
|    | - Trailing whitespaces.
|----|    | /app/data/locale/en/README.md
|    |++++| /app/data/locale/en/README.md
|  40|  40| ### Clone and Run
|  41|  41| 
|  42|  42| Clone coala Projects repository
|  43|    |-    
|    |  43|+
|  44|  44|     $ git clone https://github.com/coala/projects.git
|  45|  45|     
|  46|  46| Run coala Projects website
[INFO][18:11:06] Applied 'ShowPatchAction' on 'data/locale/en/README.md' from 'SpaceConsistencyBear'.
|    | [NORMAL] SpaceConsistencyBear:
|    | Line contains following spacing inconsistencies:
|    | - Trailing whitespaces.
|----|    | /app/data/locale/en/README.md
|    |++++| /app/data/locale/en/README.md
|  42|  42| Clone coala Projects repository
|  43|  43|     
|  44|  44|     $ git clone https://github.com/coala/projects.git
|  45|    |-    
|    |  45|+
|  46|  46| Run coala Projects website
|  47|  47| 
|  48|  48|     $ cd projects
[INFO][18:11:06] Applied 'ShowPatchAction' on 'data/locale/en/README.md' from 'SpaceConsistencyBear'.
Executing section html...
Executing section yml...
Executing section new_linelength_projects...
Executing section old_linelength_projects...
Executing section cli...
TravisBuddy Request Identifier: 40e8b4c0-28a8-11e9-892f-216a8a2cc0ab

@jayvdb
Copy link
Member

jayvdb commented Feb 5, 2019

ack 0aee8f7

@jayvdb
Copy link
Member

jayvdb commented Feb 5, 2019

@gitmate-bot ff

@gitmate-bot
Copy link

Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently ⚠️

@gitmate-bot gitmate-bot merged commit 0aee8f7 into coala:master Feb 5, 2019
@gitmate-bot
Copy link

Automated fastforward with GitMate.io was successful! 🎉

@KVGarg
Copy link
Contributor

KVGarg commented Feb 7, 2019

@jayvdb @sanchit48 CI wasn't green before getting merged due to which other PR's CI is also getting red because of failed tests over this PR.
Sanchit, please take care of this thing :-)

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.

8 participants