mik-laj commented on a change in pull request #4788: [AIRFLOW-3811][3/3] Add
automatic generation of API Reference
URL: https://github.com/apache/airflow/pull/4788#discussion_r267799812
##########
File path: docs/conf.py
##########
@@ -160,7 +161,39 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
-exclude_patterns = ['_build']
+exclude_patterns = [
+ '_build',
+ 'autoapi_templates',
+ '_autoapi/airflow/_vendor',
+ '_autoapi/airflow/api',
+ '_autoapi/airflow/bin',
+ '_autoapi/airflow/config_templates',
+ '_autoapi/airflow/configuration',
+ '_autoapi/airflow/contrib/auth',
+ '_autoapi/airflow/contrib/example_dags',
+ '_autoapi/airflow/contrib/utils',
+ '_autoapi/airflow/contrib/kubernetes',
+ '_autoapi/airflow/contrib/task_runner',
+ '_autoapi/airflow/contrib/index.rst',
Review comment:
I checked it and this is an error in handling annotations from external
library.
```
modname = 'pandas.core.internals.blocks'
exc = SyntaxError('misplaced type annotation', ('<unknown>', 1855, 71, '
# type: (int, Optional[BlockPlacement]) -> List[ExtensionBlock]\n'))
path =
'/root/.virtualenvs/airflow36/lib/python3.6/site-packages/pandas/core/internals/blocks.py'
```
This option has apparently more errors.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services