Skip to content

Commit 50f480b

Browse files
HYLcoolyxdyc
andauthored
[Feature] Auto generation for OP docs (#527)
* + add a pre-commit hook to automatically generate Operator document and tag the OP according to their implementation progress * - generate docs only when the updated OP records are different from the original OP records * fix the error when there are classes missing doc; minor improvements about the template text * fix bad links * - remove Operators_ZH.md and redirect related link to Operators.md - invoke generic_visit before returning --------- Co-authored-by: 道辕 <[email protected]>
1 parent 0575193 commit 50f480b

12 files changed

+869
-508
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ repos:
3333
- id: mixed-line-ending
3434
exclude: thirdparty/
3535
args: [ "--fix=lf" ]
36+
- repo: local
37+
hooks:
38+
- id: build-op-doc
39+
name: build OP doc
40+
entry: python .pre-commit-hooks/build_op_doc.py
41+
language: python
42+
require_serial: true
43+
additional_dependencies:
44+
- googletrans==4.0.2
3645

3746
exclude: |
3847
(?x)^(

0 commit comments

Comments
 (0)