Skip to content

Commit

Permalink
remove dead code from remote docs (#563)
Browse files Browse the repository at this point in the history
* remove dead code from remote docs

* Delete website/remote-files/substreams.json

* Update fetch-remote-filepaths.ts
  • Loading branch information
Dimitri POSTOLOV authored Dec 16, 2023
1 parent 87beba6 commit e679702
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 147 deletions.
42 changes: 0 additions & 42 deletions website/remote-files/firehose.json

This file was deleted.

66 changes: 0 additions & 66 deletions website/remote-files/substreams.json

This file was deleted.

39 changes: 0 additions & 39 deletions website/scripts/fetch-remote-filepaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,45 +40,6 @@ async function fetchRemoteFilePaths({ user, repo, branch, docsPath, outputPath,
console.log(`✅ Remote files from "${url}" saved!`)
}

await fetchRemoteFilePaths({
user: 'streamingfast',
repo: 'substreams',
branch: 'develop',
docsPath: 'docs/',
outputPath: path.join(process.cwd(), 'remote-files', 'substreams.json'),
filterDocs: (filePath) =>
![
'SUMMARY.md', // toc
'developers-guide/modules/README.md', // generated cards by gitbook
].includes(filePath),
})

await fetchRemoteFilePaths({
user: 'streamingfast',
repo: 'firehose-docs',
branch: 'master',
docsPath: '',
outputPath: path.join(process.cwd(), 'remote-files', 'firehose.json'),
filterDocs: (filePath) =>
![
'SUMMARY.md', // toc
// ---- empty placeholders ----
'intro/README.md',
'firehose-setup/overview.md',
'firehose-setup/near/README.md',
'integrate-new-chains/README.md',
'references/README.md',
'concepts/README.md',
// ----------------------------
// ---- not shown in the existing site ----
'setup/cosmos/README.md',
'setup/ethereum/README.md',
'setup/ethereum/reprocessing-history.md',
'setup/ethereum/synchronization.md',
// ----------------------------------------
].includes(filePath),
})

await fetchRemoteFilePaths({
user: 'graphprotocol',
repo: 'graph-client',
Expand Down

0 comments on commit e679702

Please sign in to comment.