1. 03 Feb, 2022 1 commit
  2. 04 Nov, 2021 1 commit
    • 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