Skip to content

Commit

Permalink
Fix .readthedocs.yml (#104)
Browse files Browse the repository at this point in the history
fix rtd config

Co-authored-by: wangzy <[email protected]>
  • Loading branch information
braisedpork1964 and wangzy authored Jan 26, 2024
1 parent 1292ea7 commit 4879194
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 7 additions & 3 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ version: 2

formats: all

build:
os: ubuntu-22.04
tools:
python: "3.10"

python:
version: 3.7
install:
- requirements: requirements/docs.txt
install:
- requirements: requirements/docs.txt
3 changes: 1 addition & 2 deletions docs/en/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@


def custom_skip(app, what, name, obj, skip, options):
if what in ['data', 'function', 'class'] and re.search(
'logger|wrapper', name):
if what in ['data', 'function', 'class'] and re.search('logger', name):
skip = True
return skip

Expand Down
3 changes: 1 addition & 2 deletions docs/zh_cn/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@


def custom_skip(app, what, name, obj, skip, options):
if what in ['data', 'function', 'class'] and re.search(
'logger|wrapper', name):
if what in ['data', 'function', 'class'] and re.search('logger', name):
skip = True
return skip

Expand Down

0 comments on commit 4879194

Please sign in to comment.