Skip to content

Commit e679702

Browse files
author
Dimitri POSTOLOV
authored
remove dead code from remote docs (#563)
* remove dead code from remote docs * Delete website/remote-files/substreams.json * Update fetch-remote-filepaths.ts
1 parent 87beba6 commit e679702

File tree

3 files changed

+0
-147
lines changed

3 files changed

+0
-147
lines changed

website/remote-files/firehose.json

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

website/remote-files/substreams.json

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

website/scripts/fetch-remote-filepaths.ts

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -40,45 +40,6 @@ async function fetchRemoteFilePaths({ user, repo, branch, docsPath, outputPath,
4040
console.log(`✅ Remote files from "${url}" saved!`)
4141
}
4242

43-
await fetchRemoteFilePaths({
44-
user: 'streamingfast',
45-
repo: 'substreams',
46-
branch: 'develop',
47-
docsPath: 'docs/',
48-
outputPath: path.join(process.cwd(), 'remote-files', 'substreams.json'),
49-
filterDocs: (filePath) =>
50-
![
51-
'SUMMARY.md', // toc
52-
'developers-guide/modules/README.md', // generated cards by gitbook
53-
].includes(filePath),
54-
})
55-
56-
await fetchRemoteFilePaths({
57-
user: 'streamingfast',
58-
repo: 'firehose-docs',
59-
branch: 'master',
60-
docsPath: '',
61-
outputPath: path.join(process.cwd(), 'remote-files', 'firehose.json'),
62-
filterDocs: (filePath) =>
63-
![
64-
'SUMMARY.md', // toc
65-
// ---- empty placeholders ----
66-
'intro/README.md',
67-
'firehose-setup/overview.md',
68-
'firehose-setup/near/README.md',
69-
'integrate-new-chains/README.md',
70-
'references/README.md',
71-
'concepts/README.md',
72-
// ----------------------------
73-
// ---- not shown in the existing site ----
74-
'setup/cosmos/README.md',
75-
'setup/ethereum/README.md',
76-
'setup/ethereum/reprocessing-history.md',
77-
'setup/ethereum/synchronization.md',
78-
// ----------------------------------------
79-
].includes(filePath),
80-
})
81-
8243
await fetchRemoteFilePaths({
8344
user: 'graphprotocol',
8445
repo: 'graph-client',

0 commit comments

Comments
 (0)