• moto's avatar
    [DOC] Default to not build gallery (#1977) · 5898edba
    moto authored
    With the introduction of TTS tutorial (#1973), it takes more than couple of minutes
    to build documentation. This commit makes the doc build process defaults to
    not build tutorials.
    
    To build tutorials one can use environment variable `BUILD_GALLERY=1`,
    and set `GALLERY_PATTERN=...` to filter the tutorials to build.
    
    This `GALLERY_PATTERN` is same approach as in `tutorials` repo.
    
    https://github.com/pytorch/tutorials/blob/cbf2238df0e78d84c15bd94288966d2f4b2e83ae/conf.py#L75-L83
    
    Also this commit dynamically parse the subdirectory of `examples/gallery` so that when a new category of examples are added, it will automatically parsed.
    5898edba
After you've reviewed these contribution guidelines, you'll be all set to contribute to this project.
CONTRIBUTING.md 7.79 KB