Skip to content

Commit 81a7fb7

Browse files
committed
jQuery UI: Update Bower article to reflect the final package structure
1 parent 9ed2dd6 commit 81a7fb7

File tree

1 file changed

+14
-23
lines changed

1 file changed

+14
-23
lines changed

page/jquery-ui/environments/bower.md

+14-23
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,16 @@ Libraries are downloaded with Bower using the `bower install` command. To instal
5353
│   │   └── src
5454
│   └── jquery-ui
5555
│   ├── themes
56-
│   │   ├── base
56+
│   │   ├── smoothness
5757
│   │   │   ├── jquery-ui.css
58-
│   │   │   ├── accordion.css
59-
│   │   │   ├── ...
60-
│   │   │   └── minified
61-
│   │   │   ├── jquery-ui.min.css
62-
│   │   │   ├── accordion.min.css
63-
│   │   │   └── ...
58+
│   │   │   └── jquery-ui.min.css
6459
│   │   └── [The rest of jQuery UI's themes]
65-
│   └── ui
66-
│   ├── jquery-ui.js
67-
│   ├── accordion.js
68-
│   ├── ...
69-
│   └── minified
70-
│   ├── jquery-ui.min.js
71-
│   ├── accordion.min.js
72-
│   └── ...
60+
│   ├── ui
61+
│   │ ├── accordion.js
62+
│   │ ├── autocomplete.js
63+
│   │ └── ...
64+
│   ├── jquery-ui.js
65+
│   └── jquery-ui.min.js
7366
└── index.html
7467
</pre>
7568

@@ -89,10 +82,10 @@ We have a few different options for using the files downloaded with Bower. The e
8982
<head>
9083
<meta charset="utf-8">
9184
<title>jQuery Projects</title>
92-
<link rel="stylesheet" href="bower_components/jquery-ui/themes/base/jquery-ui.css">
85+
<link rel="stylesheet" href="bower_components/jquery-ui/themes/smoothness/jquery-ui.min.css">
9386
</head>
9487
<body>
95-
88+
9689
<div id="projects">
9790
<h3>jQuery Core</h3>
9891
<p>jQuery is a fast, small, and feature-rich JavaScript library...</p>
@@ -101,13 +94,13 @@ We have a few different options for using the files downloaded with Bower. The e
10194
<h3>jQuery Mobile</h3>
10295
<p>jQuery Mobile is a HTML5-based user interface system...</p>
10396
</div>
104-
97+
10598
<script src="bower_components/jquery/dist/jquery.min.js"></script>
106-
<script src="bower_components/jquery-ui/ui/minified/jquery-ui.min.js"></script>
99+
<script src="bower_components/jquery-ui/jquery-ui.min.js"></script>
107100
<script>
108101
$( "#projects" ).accordion();
109102
</script>
110-
103+
111104
</body>
112105
</html>
113106
```
@@ -122,9 +115,7 @@ Because Bower also downloaded jQuery UI's individual source files, we can altern
122115
<head>
123116
<meta charset="utf-8">
124117
<title>jQuery Projects</title>
125-
<link rel="stylesheet" href="bower_components/jquery-ui/themes/base/core.css">
126-
<link rel="stylesheet" href="bower_components/jquery-ui/themes/base/theme.css">
127-
<link rel="stylesheet" href="bower_components/jquery-ui/themes/base/accordion.css">
118+
<link rel="stylesheet" href="bower_components/jquery-ui/themes/smoothness/jquery-ui.min.css">
128119
</head>
129120
<body>
130121

0 commit comments

Comments
 (0)