Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Documentation for polymer 2.x (Fixes #1) #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Documentation for polymer 2.x (Fixes #1) #10

wants to merge 3 commits into from

Conversation

iShafayet
Copy link

No description provided.

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

@iShafayet
Copy link
Author

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

README.md Outdated

## Usage in a Polymer 2.x Application

Add the following line to the end of your `bower.json`

Choose a reason for hiding this comment

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

Is this accurate? IINM, the line needs to go into the dependencies section specifically, and this would normally be done using a bower install --save command...yes, this seems to work for me:

$ bower install --save 'font-roboto=PolymerElements/font-roboto-local#^1.1.0'

Copy link
Author

@iShafayet iShafayet Apr 2, 2018

Choose a reason for hiding this comment

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

You are right. I failed to mention that the line goes into the dependencies section. Should I create another pull request?

Choose a reason for hiding this comment

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

I have no authority here, so it's up to you. I'd probably just force push to your existing branch, but anyway, I hope you don't think I have permissions to merge this since I don't... :/

Copy link
Author

Choose a reason for hiding this comment

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

Alright. Thanks. Let's wait for someone with authority to merge it.

At least someone wanting to using roboto locally will eventually find this pull request and this discussion. :D

Choose a reason for hiding this comment

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

You don't need to create another PR, you can just add another commit to this one (locally just do a git commit -am "your new message"; git push. You don't have to force push either, i can squash the commits if we merge this.

I agree with @davidmaxwaterman that your line is incorrect. I would prefer something like:

To add this to your application, run this command from your project root directory:

bower install --save 'font-roboto=PolymerElements/font-roboto-local#^1.1.0'

This will add and install the dependency to your project. Then, you can import the file and use the font in your page:

<head>
  ...
  <link rel="import" href="roboto.html">
  <style>
    .roboto {
      font-family: Roboto
    }
  </style>
</head>
<body>
  ...
  <div class="roboto">This is using Roboto!</div>
</body>
...

Copy link
Author

Choose a reason for hiding this comment

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

@notwaldorf Thank you. I've made the changes required.

README.md Outdated

## Usage in a Polymer 2.x Application

Add the following line to the end of your `bower.json`

Choose a reason for hiding this comment

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

You don't need to create another PR, you can just add another commit to this one (locally just do a git commit -am "your new message"; git push. You don't have to force push either, i can squash the commits if we merge this.

I agree with @davidmaxwaterman that your line is incorrect. I would prefer something like:

To add this to your application, run this command from your project root directory:

bower install --save 'font-roboto=PolymerElements/font-roboto-local#^1.1.0'

This will add and install the dependency to your project. Then, you can import the file and use the font in your page:

<head>
  ...
  <link rel="import" href="roboto.html">
  <style>
    .roboto {
      font-family: Roboto
    }
  </style>
</head>
<body>
  ...
  <div class="roboto">This is using Roboto!</div>
</body>
...

@@ -4,3 +4,37 @@ A version of [font-roboto](https://github.com/PolymerElements/font-roboto) using
locally available font files

The font files are subject to the Apache License found here: https://github.com/google/fonts/blob/master/apache/roboto/LICENSE.txt

## Usage in a Polymer 2.x Application

Choose a reason for hiding this comment

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

I think we can change this to just "How to use", since it applies to both 1.x and 2.x apps

Copy link
Author

Choose a reason for hiding this comment

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

That makes sense.

...
```

If you are using polymer CLI to build your app then add the following to your `polymer.json`'s `extraDependencies` array.

Choose a reason for hiding this comment

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

typo: s/using polymer CLI/the Polymer CLI

Choose a reason for hiding this comment

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

You're a vi user "wannabe", I see :)

:s/using polymer CLI/using the Polymer CLI/

Copy link
Author

Choose a reason for hiding this comment

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

Right. Sharp eyes you have.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants