"fair_dev/vscode:/vscode.git/clone" did not exist on "4c830de1846af60840c6630b08c8f8079525f116"
  • 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
conf.py 10.3 KB