mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix: Remove outdated documentation logic (#11203)
fix: remove unused stuff
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
import { readFile } from 'node:fs/promises';
|
||||
import { generateAllIndices } from '@discordjs/scripts';
|
||||
|
||||
console.log('Generating all indices...');
|
||||
console.info('Generating all indices...');
|
||||
|
||||
await generateAllIndices({
|
||||
fetchPackageVersions: async (pkg) => {
|
||||
return ['main'];
|
||||
},
|
||||
fetchPackageVersions: () => ['main'],
|
||||
fetchPackageVersionDocs: async (pkg, version) => {
|
||||
console.log(`Fetching data for ${pkg} ${version}...`);
|
||||
return JSON.parse(await readFile(`${process.cwd()}/../../../docs/${pkg}/${version}.api.json`, 'utf8'));
|
||||
},
|
||||
});
|
||||
console.log('Generated all indices.');
|
||||
|
||||
console.info('Generated all indices.');
|
||||
|
||||
Reference in New Issue
Block a user