docs: fix references generator (#10271)
This commit is contained in:
@@ -2,14 +2,12 @@ import path from "path"
|
||||
import { TypeDocOptions } from "typedoc"
|
||||
import { rootPathPrefix } from "./general.js"
|
||||
|
||||
console.log(rootPathPrefix)
|
||||
|
||||
export const baseOptions: Partial<TypeDocOptions> = {
|
||||
plugin: ["typedoc-plugin-custom"],
|
||||
readme: "none",
|
||||
eslintPathName: path.join(
|
||||
rootPathPrefix,
|
||||
"www/packages/eslint-config-docs/content.js"
|
||||
"www/apps/resources/.content.eslintrc.mjs"
|
||||
),
|
||||
pluginsResolvePath: path.join(rootPathPrefix, "www"),
|
||||
exclude: ["**/node_modules/**"],
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
"typedoc": "0.26.x"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/eslint": "^8.56.6",
|
||||
"@types/eslint": "^9.6.1",
|
||||
"@types/node": "^20.12.10",
|
||||
"types": "*",
|
||||
"typescript": "^5.6.2"
|
||||
@@ -34,7 +34,7 @@
|
||||
"typedoc"
|
||||
],
|
||||
"dependencies": {
|
||||
"eslint": "^8.53.0",
|
||||
"eslint": "^9.13.0",
|
||||
"glob": "^10.3.10",
|
||||
"minimatch": "^10.0.1",
|
||||
"utils": "*",
|
||||
|
||||
@@ -20,15 +20,11 @@ export function load(app: Application) {
|
||||
})
|
||||
app.converter.on(Converter.EVENT_RESOLVE_BEGIN, async (context: Context) => {
|
||||
const eslintConfigPath = app.options.getValue("eslintPathName") as string
|
||||
const pluginsResolvePath = app.options.getValue(
|
||||
"pluginsResolvePath"
|
||||
) as string
|
||||
if (!eslintConfigPath) {
|
||||
return
|
||||
}
|
||||
const eslint = new ESLint({
|
||||
overrideConfigFile: eslintConfigPath,
|
||||
resolvePluginsRelativeTo: pluginsResolvePath,
|
||||
fix: true,
|
||||
})
|
||||
for (const reflection of context.project.getReflectionsByKind(
|
||||
|
||||
Reference in New Issue
Block a user