Skip to content

Commit ecdbfee

Browse files
committed
Merge pull request #1745 from AnalyticalGraphicsInc/jsDocUpgrade
Upgrade JSDoc to 3.3.0-alpha 5
2 parents fbaf8e5 + cc1315a commit ecdbfee

File tree

304 files changed

+1233
-35332
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

304 files changed

+1233
-35332
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ Thumbs.db
1818
/Source/Shaders/*/*/*.js
1919
!/Source/Shaders/Shaders.profile.js
2020

21-
/Specs/SpecList.js
21+
/Specs/SpecList.js
22+
23+
/node_modules

.project

+23-5
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</natures>
3333
<filteredResources>
3434
<filter>
35-
<id>1391456479002</id>
35+
<id>1400616658988</id>
3636
<name></name>
3737
<type>10</type>
3838
<matcher>
@@ -41,7 +41,7 @@
4141
</matcher>
4242
</filter>
4343
<filter>
44-
<id>1391456479007</id>
44+
<id>1400616658995</id>
4545
<name></name>
4646
<type>10</type>
4747
<matcher>
@@ -50,7 +50,7 @@
5050
</matcher>
5151
</filter>
5252
<filter>
53-
<id>1391456479012</id>
53+
<id>1400616658999</id>
5454
<name></name>
5555
<type>6</type>
5656
<matcher>
@@ -59,14 +59,23 @@
5959
</matcher>
6060
</filter>
6161
<filter>
62-
<id>1391456479018</id>
62+
<id>1400616659006</id>
6363
<name></name>
6464
<type>10</type>
6565
<matcher>
6666
<id>org.eclipse.ui.ide.multiFilter</id>
6767
<arguments>1.0-name-matches-false-false-.git</arguments>
6868
</matcher>
6969
</filter>
70+
<filter>
71+
<id>1400616659012</id>
72+
<name></name>
73+
<type>10</type>
74+
<matcher>
75+
<id>org.eclipse.ui.ide.multiFilter</id>
76+
<arguments>1.0-name-matches-false-false-node_modules</arguments>
77+
</matcher>
78+
</filter>
7079
<filter>
7180
<id>1336749023862</id>
7281
<name>Source</name>
@@ -86,14 +95,23 @@
8695
</matcher>
8796
</filter>
8897
<filter>
89-
<id>1348694184349</id>
98+
<id>1400616508068</id>
9099
<name>Tools</name>
91100
<type>9</type>
92101
<matcher>
93102
<id>org.eclipse.ui.ide.multiFilter</id>
94103
<arguments>1.0-name-matches-false-false-buildTasks</arguments>
95104
</matcher>
96105
</filter>
106+
<filter>
107+
<id>1400616508072</id>
108+
<name>Tools</name>
109+
<type>9</type>
110+
<matcher>
111+
<id>org.eclipse.ui.ide.multiFilter</id>
112+
<arguments>1.0-name-matches-false-false-jsdoc</arguments>
113+
</matcher>
114+
</filter>
97115
<filter>
98116
<id>1360870693679</id>
99117
<name>Apps/Sandcastle</name>
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
eclipse.preferences.version=1
2-
excluded=Apps/Sandcastle/ThirdParty//*\:Source/ThirdParty//*\:Source/Workers/cesiumWorkerBootstrapper.js\:ThirdParty//*\:Tools/build.js
2+
excluded=Apps/Sandcastle/ThirdParty//*\:Source/ThirdParty//*\:Source/Workers/cesiumWorkerBootstrapper.js\:ThirdParty//*\:Tools/build.js\:Tools/jsdoc//*
33
included=//*.js
44
projectSpecificOptions=true

CHANGES.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ Beta Releases
4545
* `Camera.transform` now works consistently across scene modes.
4646
* Fixed a bug that prevented `sampleTerrain` from working with STK World Terrain in Firefox.
4747
* `sampleTerrain` no longer fails when used with a `TerrainProvider` that is not yet ready.
48-
* Updated Dojo from 1.9.1 to 1.9.3. NOTE: Dojo is only used in Sandcastle and not required by Cesium.
48+
* Upgraded JSDoc from 3.0 to 3.3.0-alpha5. The Cesium reference documentation now has a slightly different look and feel.
49+
* Upgraded Dojo from 1.9.1 to 1.9.3. NOTE: Dojo is only used in Sandcastle and not required by Cesium.
4950

5051
### b28 - 2014-05-01
5152

Specs/SpecRunner.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@ var afterAll;
3535

3636
function getQueryParameter(name) {
3737
var match = new RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
38-
39-
if (match) {
40-
return decodeURIComponent(match[1].replace(/\+/g, ' '));
41-
}
42-
return null;
38+
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
4339
}
4440

4541
// patch in beforeAll/afterAll functions

Tools/jsdoc/cesiumTags.js

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
exports.defineTags = function(dictionary) {
2+
dictionary.lookUp('class').synonym('internalConstructor');
3+
4+
dictionary.defineTag('exports', {
5+
mustHaveValue : true,
6+
onTagged : function(doclet, tag) {
7+
doclet.addTag('alias', tag.value);
8+
doclet.addTag('kind', 'module');
9+
doclet.longname = tag.value;
10+
}
11+
}).synonym('enumeration');
12+
13+
dictionary.defineTag('glsl', {
14+
onTagged : function(doclet, tag) {
15+
doclet.addTag('kind', 'glsl');
16+
doclet.filename = doclet.name;
17+
}
18+
}).synonym('glslStruct').synonym('glslUniform').synonym('glslConstant').synonym('glslFunction');
19+
20+
dictionary.defineTag('performance', {
21+
mustHaveValue : true,
22+
onTagged : function(doclet, tag) {
23+
if (!doclet.performance) {
24+
doclet.performance = [];
25+
}
26+
doclet.performance.push(tag.value);
27+
}
28+
});
29+
30+
dictionary.defineTag('demo', {
31+
mustHaveValue : true,
32+
onTagged : function(doclet, tag) {
33+
if (!doclet.demo) {
34+
doclet.demo = [];
35+
}
36+
doclet.demo.push(tag.value);
37+
}
38+
});
39+
};

0 commit comments

Comments
 (0)