mirror of
https://github.com/semaphore-protocol/semaphore.git
synced 2026-01-10 07:08:17 -05:00
* 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
28 lines
739 B
JavaScript
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"
|
|
}
|