Files
semaphore/typedoc.js
sripwoud 4870175577 docs: add link to API Reference (typedoc) (#790)
* chore: shorten `docs` scripts

`githubPages` is true by default
https://rb.gy/hzopfn

* docs: update README.md

* chore: trigger docs workflow only on changes in relevant files

* refactor: provide `cname` typedoc option via config file

* chore: remove heyauthn from exclude typedoc list
2024-05-30 17:29:56 +02:00

28 lines
739 B
JavaScript

const fs = require("fs")
const path = require("path")
const EXCLUDE_PKGS = [
"circuits",
"cli",
"cli-template",
"cli-template-contracts-hardhat",
"cli-template-monorepo-ethers",
"cli-template-monorepo-subgraph",
"contracts",
"core",
"hardhat"
]
const packagesDir = path.join(__dirname, "packages")
const entryPoints = fs
.readdirSync(packagesDir, { withFileTypes: true })
.filter((dirent) => dirent.isDirectory() && !EXCLUDE_PKGS.includes(dirent.name))
.map((dirent) => path.join("packages", dirent.name))
/** @type {import('typedoc').typedocoptions} */
module.exports = {
cname: "js.semaphore.pse.dev",
entryPoints,
name: "Semaphore SDK",
entryPointStrategy: "packages"
}