update bots
This commit is contained in:
18
.venv/lib/python3.12/site-packages/faker/sphinx/autodoc.py
Normal file
18
.venv/lib/python3.12/site-packages/faker/sphinx/autodoc.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from faker.sphinx.docstring import ProviderMethodDocstring
|
||||
from faker.sphinx.documentor import write_provider_docs
|
||||
|
||||
|
||||
def _create_source_files(app):
|
||||
write_provider_docs()
|
||||
|
||||
|
||||
def _process_docstring(app, what, name, obj, options, lines):
|
||||
docstring = ProviderMethodDocstring(app, what, name, obj, options, lines)
|
||||
if not docstring.skipped:
|
||||
lines[:] = docstring.lines[:]
|
||||
|
||||
|
||||
def setup(app):
|
||||
app.setup_extension("sphinx.ext.autodoc")
|
||||
app.connect("builder-inited", _create_source_files)
|
||||
app.connect("autodoc-process-docstring", _process_docstring)
|
||||
Reference in New Issue
Block a user