Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 5c75b12

Browse files
committed
docs: remove Bower references, update GitHub and NPM icons
- update README.md - fix typos - update example versions - remove references to Bower - fix 'View Demo' button appearing for directives w/o demos
1 parent 939f6c9 commit 5c75b12

File tree

7 files changed

+35
-70
lines changed

7 files changed

+35
-70
lines changed

README.md

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ and use the AngularJS Material distribution files.
138138
Change to your project's root directory.
139139

140140
```bash
141-
# To get the latest stable version, use Bower from the command line.
141+
# To get the latest stable version, use NPM from the command line.
142142
npm install angular-material --save
143143

144144
# To get the most recent, latest committed-to-master version use:
@@ -147,16 +147,13 @@ npm install http://github.com/angular/bower-material#master --save
147147

148148
#### Other Dependency Managers
149149

150-
Visit [Bower-Material](https://github.com/angular/bower-material/blob/master/README.md) for more
151-
details on how to install and use the AngularJS Material distribution files within your own local
152-
project.
153-
154-
This includes instructions for [Bower](https://github.com/angular/bower-material#bower)
155-
and [JSPM](https://github.com/angular/bower-material#jspm).
150+
Visit our [distribution repository](https://github.com/angular/bower-material/blob/master/README.md)
151+
for more details on how to install and use the AngularJS Material distribution
152+
files within your local project.
156153

157154
#### CDN
158155

159-
CDN versions of AngularJS Material are now available.
156+
CDN versions of AngularJS Material are available.
160157

161158
With the Google CDN, you will not need to download local copies of the distribution files. Instead
162159
simply reference the CDN urls to easily use those remote library files. This is especially useful
@@ -166,26 +163,25 @@ when using online tools such as [CodePen](http://codepen.io/), [Plunker](http://
166163
```html
167164
<head>
168165

169-
<!-- AngularJS Material CSS now available via Google CDN; version 1.1.9 used here -->
170-
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.9/angular-material.min.css">
166+
<!-- AngularJS Material CSS now available via Google CDN; version 1.1.21 used here -->
167+
<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.21/angular-material.min.css">
171168

172169
</head>
173170
<body>
174171

175172
<!-- AngularJS Material Dependencies -->
176-
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.7/angular.min.js"></script>
177-
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.7/angular-animate.min.js"></script>
178-
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.7/angular-aria.min.js"></script>
179-
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.7/angular-messages.min.js"></script>
173+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.9/angular.min.js"></script>
174+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.9/angular-animate.min.js"></script>
175+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.9/angular-aria.min.js"></script>
176+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.9/angular-messages.min.js"></script>
180177

181-
<!-- AngularJS Material Javascript now available via Google CDN; version 1.1.10 used here -->
182-
<script src="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.10/angular-material.min.js"></script>
178+
<!-- AngularJS Material Javascript now available via Google CDN; version 1.1.21 used here -->
179+
<script src="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.21/angular-material.min.js"></script>
183180
</body>
184181
```
185182

186183
Developers seeking the latest, most-current build versions can use [GitCDN.xyz](https://gitcdn.xyz/) to
187-
pull directly from the distribution GitHub
188-
[Bower-Material](https://github.com/angular/bower-material) repository:
184+
pull directly from our [distribution repository](https://github.com/angular/bower-material):
189185

190186
```html
191187
<head>
@@ -197,10 +193,10 @@ pull directly from the distribution GitHub
197193
<body>
198194

199195
<!-- AngularJS Material Dependencies -->
200-
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.7/angular.js"></script>
201-
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.7/angular-animate.js"></script>
202-
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.7/angular-aria.js"></script>
203-
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.7/angular-messages.min.js"></script>
196+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.9/angular.js"></script>
197+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.9/angular-animate.js"></script>
198+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.9/angular-aria.js"></script>
199+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.9/angular-messages.min.js"></script>
204200

205201
<!-- AngularJS Material Javascript using GitCDN to load directly from `bower-material/master` -->
206202
<script src="https://gitcdn.xyz/cdn/angular/bower-material/master/angular-material.js"></script>

docs/app/css/style.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,6 @@ a.docs-logo {
449449
.docs-tools .md-button md-icon {
450450
color: #666 !important;
451451
}
452-
.docs-toolbar-tools .md-button md-icon {
453-
color: #666 !important;
454-
fill: #666 !important;
455-
}
456452
@media (max-width: 400px) {
457453
.docs-tools {
458454
display: none;
@@ -528,7 +524,7 @@ md-tabs.demo-source-tabs .active md-tab-label {
528524
flex: 1 1 auto;
529525
}
530526
.demo-content > * {
531-
flex: 1 1 0%;
527+
flex: 1 1 0;
532528
}
533529

534530
.demo-content > div[layout-fill] {

docs/app/img/icons/github.svg

Lines changed: 0 additions & 19 deletions
This file was deleted.

docs/app/img/icons/npm-logo.svg

Lines changed: 5 additions & 7 deletions
Loading

docs/app/partials/getting-started.tmpl.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,11 @@ <h3>Our CodePen Community</h3>
108108
<h3>Installing the AngularJS Material Libraries</h3>
109109

110110
<p>
111-
You can install the AngularJS Material library (and its dependent libraries) in your local
112-
project using either
111+
You can
113112
<a href="https://github.com/angular/bower-material/#installing-angularjs-material"
114-
target="_blank">NPM, JSPM, or Bower</a>.
113+
target="_blank">install the AngularJS Material library</a>
114+
(and its dependent libraries) in your local project using
115+
<a href="https://www.npmjs.com/" target="_blank">NPM</a>.
115116
</p>
116117

117118
<p>

docs/app/svg-assets-cache.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/config/template/index.template.html

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,29 +83,21 @@ <h2 class="md-toolbar-item md-breadcrumb md-headline" tabindex="-1">
8383
<span flex></span> <!-- use up the empty space -->
8484

8585
<div class="md-toolbar-item docs-tools" layout="row">
86-
<md-button class="md-icon-button"
87-
aria-label="Install with Bower"
88-
ng-if="!currentComponent.docs.length && !currentComponent.isService"
89-
target="_blank"
90-
ng-href="https://github.com/angular/bower-material">
91-
<md-tooltip md-autohide>Install with Bower</md-tooltip>
92-
<md-icon md-svg-src="img/icons/bower-logo.svg"></md-icon>
93-
</md-button>
9486
<md-button class="md-icon-button"
9587
aria-label="Install with NPM"
9688
ng-if="!currentComponent.docs.length && !currentComponent.isService"
9789
target="_blank"
9890
ng-href="https://www.npmjs.com/package/angular-material">
9991
<md-tooltip md-autohide>Install with NPM</md-tooltip>
100-
<md-icon md-svg-src="img/icons/npm-logo.svg" style="transform: scale(1.3)"></md-icon>
92+
<md-icon md-svg-src="img/icons/npm-logo.svg"></md-icon>
10193
</md-button>
10294
<md-button class="md-icon-button"
10395
aria-label="View Source on Github"
10496
ng-if="!currentComponent.docs.length && !currentComponent.isService"
10597
target="_blank"
10698
ng-href="{{BUILDCONFIG.repository}}/{{menu.version.current.github}}">
10799
<md-tooltip md-autohide>View Source on Github</md-tooltip>
108-
<md-icon md-svg-src="img/icons/github.svg" style="color: rgba(255,255,255,0.97);"></md-icon>
100+
<md-icon md-svg-src="img/icons/github-icon.svg" style="color: black;"></md-icon>
109101
</md-button>
110102

111103
<md-select
@@ -137,9 +129,10 @@ <h2 class="md-toolbar-item md-breadcrumb md-headline" tabindex="-1">
137129
<md-button
138130
class="md-icon-button"
139131
aria-label="View Demo"
140-
ng-class="{hide: !currentDoc || !currentDoc.hasDemo}"
132+
ng-class="{hide: !currentDoc || !currentDoc.hasDemo || !currentComponent.demoUrl}"
141133
ng-href="{{currentComponent.demoUrl}}">
142-
<md-icon md-svg-src="img/icons/ic_play_circle_fill_24px.svg" style="fill:green"></md-icon>
134+
<md-icon md-svg-src="img/icons/ic_play_circle_fill_24px.svg" style="fill: #666666">
135+
</md-icon>
143136
<md-tooltip>View Demo</md-tooltip>
144137
</md-button>
145138

@@ -149,7 +142,7 @@ <h2 class="md-toolbar-item md-breadcrumb md-headline" tabindex="-1">
149142
ng-class="{hide: !currentDoc}"
150143
ng-href="{{currentDoc.githubUrl}}"
151144
hide-sm hide-md>
152-
<md-icon md-svg-src="img/icons/github.svg" style="color: rgba(255,255,255,0.97);"></md-icon>
145+
<md-icon md-svg-src="img/icons/github-icon.svg"></md-icon>
153146
<md-tooltip>View Source on Github</md-tooltip>
154147
</md-button>
155148
</div>

0 commit comments

Comments
 (0)