Files
sphinx/doc
Gibson Fahnestock 6f7cb4da94 autosectionlabel: add type for suppress_warnings
This sets the subtype to the filename, which means that you can suppress
warnings for individual paths.

For example for the following warning:

```
path/to/file.rst:5547: WARNING: duplicate label path/to/file:label, other instance in /path/to/file.rst
```

You would add this to `config.py` to suppress all warnings:

```python
extensions = [
    'sphinx.ext.autosectionlabel',
]

autosectionlabel_prefix_document = True

suppress_warnings = [
    'autosectionlabel.*',
]
```

To suppress warnings for the individual file path you would do:

```python
suppress_warnings = [
    'autosectionlabel.path/to/file',
]
```

Fixes: https://github.com/sphinx-doc/sphinx/issues/6371
2019-05-15 19:30:46 +01:00
..
2014-09-21 20:23:24 +02:00
2014-09-19 13:18:29 +02:00
2019-01-10 18:08:12 +01:00
2019-05-12 17:57:38 +09:00
2008-06-23 12:35:22 +00:00
2019-02-26 14:59:02 +01:00
2018-06-17 15:24:23 +09:00
2018-06-21 15:11:35 +01:00
2019-05-12 17:57:38 +09:00