Skip to content

Commit be89aea

Browse files
docs: update build script to pin version of typedoc (#3166)
1 parent 4390819 commit be89aea

File tree

13 files changed

+7
-57
lines changed

13 files changed

+7
-57
lines changed

docs/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h1>404: Page not found</h1>
5656
<div> Return to Docs Homepage </div>
5757
</a>
5858
</div>
59-
<div class="col-md-2" id="mongodbNodelogo"></div>
59+
<img class="col-md-2" id="mongodbNodelogo" src="s/img/node.png" alt="MongoDB Node Logo"></div>
6060
</div>
6161
</div>
6262
</div>

docs/index.html

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,6 @@ <h2>MongoDB Node.JS Driver</h2>
6868
</div>
6969

7070

71-
<div class="alert alert-info" role="alert">
72-
Note: This documentation is for versions of the Node.js driver up to 3.6 only.
73-
For documentation of newer versions of the driver,
74-
<a href="https://docs.mongodb.com/drivers/node">click here</a>.
75-
</div>
76-
77-
7871

7972
<div class="container" id="mainContent">
8073
<div class="row">
@@ -346,21 +339,6 @@ <h2>Releases</h2>
346339
</td>
347340
</tr>
348341

349-
<tr>
350-
<th class="not-supported">3.x Core Driver</th>
351-
<td>
352-
353-
354-
<a href="./core" class="reference">Reference</a>
355-
356-
357-
&#124;
358-
359-
<a href="./core/api">API</a>
360-
361-
</td>
362-
</tr>
363-
364342
<tr>
365343
<th class="not-supported">2.2 Driver</th>
366344
<td>

docs/s/css/frontpage.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,7 @@ input.gsc-search-button[title], input.gsc-search-button:hover[title], input.gsc-
232232
}
233233

234234
#mongodbNodelogo {
235-
background-image: url("../img/node.png");
236-
background-position: left top;
237-
background-repeat: no-repeat;
238-
width: 83px;
235+
width: fit-content;
239236
height: 150px;
240237
}
241238

docs/versions.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,5 @@
4343
},
4444
{
4545
"version": "2.2"
46-
},
47-
{
48-
"version": "core"
4946
}
5047
]

etc/docs/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const RELEASES_JSON_FILE = './template/static/versions.json';
2424

2525
const copyGeneratedDocsToDocsFolder = () => exec(`cp -R temp/. ../../docs/.`);
2626
const removeTempDirectory = () => exec('rm -rf temp');
27-
const installDependencies = () => exec('npm i --no-save --legacy-peer-deps typedoc');
27+
const installDependencies = () => exec('npm i --no-save --legacy-peer-deps typedoc@0.22.13');
2828
const buildDocs = ({ tag }: VersionSchema) => {
2929
const revision = tag === LATEST_TAG ? 'main' : `v${tag}.0`;
3030
return exec(`npm run build:typedoc -- --gitRevision ${revision}`);

etc/docs/preview.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ app.use((req, res, next) => {
1313
app.use(express.static('docs'));
1414
app.use('/node-mongodb-native', express.static('docs'));
1515

16+
app.get('*', (req, res) => res.redirect('404.html'));
17+
1618
app.listen(8080, () => {
1719
log('listening on port 8080');
1820
});

etc/docs/template/data/releases.toml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,6 @@ docs = "./3.0"
9999
api = "./3.0/api"
100100
tag = "3.0"
101101

102-
[[versions]]
103-
version = "3.x Core Driver"
104-
status = "not-supported"
105-
docs = "./core"
106-
api = "./core/api"
107-
tag = "3.-1"
108-
109102
[[versions]]
110103
version = "2.2 Driver"
111104
status = "not-supported"

etc/docs/template/layouts/404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h1>404: Page not found</h1>
2424
<div> Return to Docs Homepage </div>
2525
</a>
2626
</div>
27-
<div class="col-md-2" id="mongodbNodelogo"></div>
27+
<img class="col-md-2" id="mongodbNodelogo" src="s/img/node.png" alt="MongoDB Node Logo"></div>
2828
</div>
2929
</div>
3030
</div>

etc/docs/template/layouts/index.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
{{ partial "hero.html" . }}
1818

19-
{{ partial "banners/new_version.html" . }}
20-
2119
<!-- Main content -->
2220
<div class="container" id="mainContent">
2321
<div class="row">

etc/docs/template/layouts/partials/banners/new_version.html

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

etc/docs/template/static/s/css/frontpage.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,7 @@ input.gsc-search-button[title], input.gsc-search-button:hover[title], input.gsc-
232232
}
233233

234234
#mongodbNodelogo {
235-
background-image: url("../img/node.png");
236-
background-position: left top;
237-
background-repeat: no-repeat;
238-
width: 83px;
235+
width: fit-content;
239236
height: 150px;
240237
}
241238

etc/docs/template/static/versions.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,5 @@
4343
},
4444
{
4545
"version": "2.2"
46-
},
47-
{
48-
"version": "core"
4946
}
5047
]

etc/docs/utils.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,6 @@ export function customSemverCompare(a: string, b: string) {
8989
if ([a, b].includes('next')) {
9090
return a === 'next' ? -1 : 1;
9191
}
92-
// put legacy 3x driver version at the end of the list
93-
if ([a, b].includes('core')) {
94-
return a === 'core' ? 1 : -1;
95-
}
9692

9793
const [majorA, minorA] = a.split('.').map(Number);
9894
const [majorB, minorB] = b.split('.').map(Number);

0 commit comments

Comments
 (0)