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

Commit 993a1cd

Browse files
committed
docs: update for AngularJS 1.8.0
- update `svg-assets-cache.js` - remove out of date template for creating new components - update CodePen docs
1 parent f7d9027 commit 993a1cd

File tree

16 files changed

+148
-241
lines changed

16 files changed

+148
-241
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@ when using online tools such as [CodePen](http://codepen.io/), [Plunker](http://
170170
<body>
171171

172172
<!-- AngularJS Material Dependencies -->
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>
173+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.0/angular.min.js"></script>
174+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.0/angular-animate.min.js"></script>
175+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.0/angular-aria.min.js"></script>
176+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.0/angular-messages.min.js"></script>
177177

178178
<!-- 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>
179+
<script src="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.22/angular-material.min.js"></script>
180180
</body>
181181
```
182182

@@ -193,10 +193,10 @@ pull directly from our [distribution repository](https://github.com/angular/bowe
193193
<body>
194194

195195
<!-- AngularJS Material Dependencies -->
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>
196+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.0/angular.js"></script>
197+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.0/angular-animate.js"></script>
198+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.0/angular-aria.js"></script>
199+
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.8.0/angular-messages.min.js"></script>
200200

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

config/build.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const pkg = require('../package.json');
22

33
module.exports = {
4-
ngVersion: '1.7.9',
4+
ngVersion: '1.8.0',
55
version: pkg.version,
66
repository: pkg.repository.url
77
.replace(/^git/,'https')

docs/app/img/icons/print.svg

Lines changed: 1 addition & 1 deletion
Loading

docs/app/svg-assets-cache.js

Lines changed: 60 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/guides/CODEPEN.md

Lines changed: 40 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,72 @@
1-
# Editable Demos in Codepen
1+
# Editable Demos in CodePen
22

33
## Description
44

5-
Users will be able to click a button on each demo to open in codepen
6-
to edit. From there the user can edit, save or make other
5+
Users will be able to click a button on each demo to open in CodePen
6+
to edit. From there the user can edit, save, or make other
77
modifications to the example.
88

9-
## Why Codepen?
9+
## Why CodePen?
1010

11-
Codepen appears to be one the most stable and active online sandboxes.
12-
It has less accessibility problems then some of the other tools.
11+
CodePen appears to be one the most stable and active online sandboxes.
12+
It also has less accessibility problems than the other tools.
1313

1414
## How does it work?
1515

16-
When the user clicks on the **'Edit on codepen'** button, all files including
17-
html, css, js, templates are used to create the new codepen by posting
18-
to the [Codepen API](http://blog.codepen.io/documentation/api/prefill/). An
19-
additional script is appended to the example to initialize the
16+
When you click the **'Edit on CodePen'** button, all files including
17+
html, css, js, templates are used to create the new CodePen by posting
18+
to the [CodePen API](http://blog.codepen.io/documentation/api/prefill/).
19+
We append an additional script to the new CodePen to initialize the
2020
[cache](#asset_cache), which is responsible for serving assets.
2121

2222
## As a contributor, what do I need to know?
2323

2424
* [SVG images are served from a cache](#asset_cache)
2525
* [Adding a new SVG requires a change to the asset cache](#build_cache)
26-
* Anytime a new dependency is added to an example, the [svg-assets-cache.js](../app/svg-assets-cache.js)
27-
will need to be updated with the new dependency and [uploaded to the
28-
CDN](#update_cdn)
26+
* Anytime adding a new dependency to an example, the [svg-assets-cache.js](../app/svg-assets-cache.js)
27+
will need to be updated with the new dependency and [uploaded to the CDN](#update_cdn)
2928
* Images used in demos must use full paths
30-
* Code examples are modified prior to sending to codepen with the same
29+
* Code examples are modified prior to sending to CodePen with the same
3130
module defined in the [svg-assets-cache.js](../app/svg-assets-cache.js)
32-
* Additional HTML template files located in the demo directory are appended to your index file using `ng-template`. [See docs](https://docs.angularjs.org/api/ng/directive/script)
31+
* Additional HTML template files located in the demo directory are appended to your index file
32+
using `ng-template`. [See docs](https://docs.angularjs.org/api/ng/directive/script)
3333

3434
## <a name="asset_cache"></a> Asset Cache
3535

36-
SVG images are stored in an asset cache using `$templateCache`. A
37-
script is delivered to codepen that initializes the cache within the
38-
demo module.
36+
We store SVG images in an asset cache using `$templateCache`. We send a script to CodePen that
37+
initializes the cache within the demo module.
3938

40-
### Why is an asset cache needed for Codepen?
39+
### Why is an asset cache needed for CodePen?
4140

42-
Components within AngularJS Material at times use icons or SVG. Images
43-
are fetched over http. Without having a server that will allow cross
44-
site scripting (`Access-Control-Allow-Origin: *`), the request will
45-
fail with a [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS)
46-
error.
41+
Components within AngularJS Material, at times, use icons or SVG images. Images
42+
fetched over HTTP, without having a server that will allow cross
43+
site scripting (`Access-Control-Allow-Origin: *`), will fail with a
44+
[CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS) error.
4745

48-
The asset cache is intended to bypass any http request for an image
49-
and serve the cached content.
46+
We use the asset cache to bypass HTTP requests for images by instead serving the cached content.
5047

5148
### <a name="build_cache"></a> How do I populate the cache?
5249

53-
* Make all changes necessary to add or update any svg images
54-
* run `./scripts/build-asset-cache.sh | pbcopy` to add an object
55-
literal to your paste buffer.
56-
* paste object literal as `var assetMap = { ... }` in the
57-
[svg-assets-cache.js](../app/svg-assets-cache.js)
58-
* [update](#update_cdn) the CDN with the new script
59-
* commit svg-assets-cache.js
50+
* Make all changes necessary to add or update any SVG images
51+
* Run `./scripts/build-asset-cache.sh | pbcopy` to add an object literal to your paste buffer.
52+
* Paste object literal as `var assetMap = { ... }` in the [svg-assets-cache.js](../app/svg-assets-cache.js)
53+
* [Update](#update_cdn) the CDN with the new script
54+
* Commit [svg-assets-cache.js](../app/svg-assets-cache.js)
6055

61-
### <a name="update_cdn"></a> Update Codepen Asset Cache
56+
### <a name="update_cdn"></a> Update CodePen Asset Cache
6257

63-
CDN is located on the Codepen PRO account.
58+
CDN is located on the CodePen PRO account.
6459

65-
* Follow the [instructions](http://blog.codepen.io/documentation/pro-features/asset-hosting/#asset-manager) on how to update the script.
66-
* NOTE: be sure to update the script. DO NOT upload a new script. The URL should remain the same
60+
* Refer to the [instructions](https://blog.codepen.io/documentation/asset-hosting/#asset-manager)
61+
on how to edit the `svg-assets-cache.js` file.
62+
* "Edit" and "Save" the `svg-assets-cache.js` file.
63+
* This has been verified to work even though we no longer have a Pro account.
64+
* The URL should remain the same.
65+
* You will not be able to upload a new script since we no longer have a Pro account.
6766

6867
## Deployment Considerations
6968

70-
The step to generate and deploy the svg-assets-cache.js is currently a
71-
manual process. Keep in mind that if changes are made to
72-
svg-assets-cache.js then you will need to follow the [steps](#update_cdn)
73-
to update the cache on the CDN.
69+
The step to generate and deploy the `svg-assets-cache.js` is currently a
70+
manual process. Keep in mind, you need to follow the steps for [building](#build_cache) and
71+
[updating](#update_cdn) the asset cache on the CDN when making any changes to a SVG image used by
72+
a demo or, the docs site.

docs/guides/COMMIT_LEVELS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ The development team has defined three (3) Github levels of **commit authorizati
3131
* Are not authorized to merge PRs
3232
* Should not reassign issues or change milestones
3333
* Should ensure their issue labels are correct
34-
* Should ensure their issues are tested with latest HEAD versions of AngularJS Material
35-
* Should ensure their issues are tested with latest releases of AngularJS (1.6.x, 1.7.x)
36-
* Should communicate with the Team Lead when their PRs are submitted or updates from
37-
code review are completed
34+
* Should test their issues with the latest HEAD versions of AngularJS Material
35+
* Should test their issues with the latest releases of AngularJS (1.7.x, 1.8.x)
36+
* Should communicate with the Team Lead when their PRs are submitted or code review updates
37+
are complete
3838
* Should direct all questions about the status of presubmit testing to the Team Leads
3939
* Should review PRs
4040
* **Team Leads**:
@@ -49,7 +49,7 @@ The development team has defined three (3) Github levels of **commit authorizati
4949
* Should verify that `merge safe` labels are accurate, then request Caretaker to merge
5050
* Should request that a Caretaker starts Google presubmit tests when PRs are labeled
5151
`merge ready` and do not have the `merge safe` label
52-
* Should decide when new releases are built and deployed
52+
* Should decide when to package and deploy new releases
5353
* Should provider Caretaker with a reviewed and approved CHANGELOG
5454
* **Google Caretakers**:
5555
* Includes: [Jeremy Elbourn](https://github.com/jelbourn), [Andrew Seguin](https://github.com/andrewseguin), [Miles Malerba](https://github.com/mmalerba)

docs/guides/component/README.md

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

docs/guides/component/_name_/_name_-theme.scss

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

docs/guides/component/_name_/_name_.js

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

docs/guides/component/_name_/_name_.scss

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

0 commit comments

Comments
 (0)