forked from milesj/docusaurus-plugin-typedoc-api
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove infinite HMR loop on first change
- Loading branch information
Showing
7 changed files
with
33 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
import { parseWithPydocMarkdown } from "./pydoc-markdown"; | ||
import { pydocToTypedoc } from "./transform-docs"; | ||
import { spinner } from 'zx'; | ||
|
||
export async function generateJsonFromPythonProject({ | ||
outFile, | ||
projectRoot, | ||
} : { outFile: string, projectRoot: string }): Promise<void> { | ||
} : { outFile: string, projectRoot: string }): Promise<void> { | ||
const pydocJson = await parseWithPydocMarkdown({ projectRoot }); | ||
|
||
await pydocToTypedoc({ | ||
moduleName: 'python', // TODO: get from project config files or passed options | ||
outFile, | ||
pydocJson, | ||
await spinner('Converting the Python JSON AST to a TypeDoc-compliant file...', async () => { | ||
await pydocToTypedoc({ | ||
moduleName: 'python', // TODO: get from project config files or passed options | ||
outFile, | ||
pydocJson, | ||
}); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters