CI: web/doc not building for multiple workflows
### 

- [X] I have checked that this issue has not already been reported.

- [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas.

- [X] I have confirmed this bug exists on the master branch of pandas.


### Reproducible Example

```python
Make a PR that launches the workflow
```


### Issue Description

I have been looking at updating some documentation and been pushing the PR for review. Although code was approved, there are still some checks that are not passing (and they are not for many other pull requests so my case does not seem to be isolated).

The error that appears is in the CI/Web and docs workflow:
```
/home/runner/miniconda3/envs/pandas-dev/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   17 | #warning "Using deprecated NumPy API, disable it with " \
      |  ^~~~~~~

WARNING: 
>>>-------------------------------------------------------------------------
Warning in /home/runner/work/pandas/pandas/doc/source/user_guide/io.rst at block ending on line 3033
Specify :okwarning: as an option in the ipython:: block to suppress this message
----------------------------------------------------------------------------
/home/runner/miniconda3/envs/pandas-dev/lib/python3.8/site-packages/charset_normalizer/api.py:91: UserWarning: Trying to detect encoding from a tiny portion of (11) byte(s).
  warn('Trying to detect encoding from a tiny portion of ({}) byte(s).'.format(length))
<<<-------------------------------------------------------------------------
```
which triggers a warning that is considered as an error since we pass the `--warnings-are-errors` in the `doc/make.py --warnings-are-errors | tee sphinx.log ; exit ${PIPESTATUS[0]}` command to build the documentation

### Expected Behavior

Tests should be passing without issues (has been passing in the past without issues, not sure what is breaking the tests now).
Latest changes on the file `doc/source/user_guide/io.rst` do not seem to impact this section

### Installed Versions

<details>
INSTALLED VERSIONS
------------------
commit           : c2587f807cbaaf16585fa293e9b1ec41cef1b511
python           : 3.8.12.final.0
python-bits      : 64
OS               : Linux
OS-release       : 4.19.104-microsoft-standard
Version          : #1 SMP Wed Feb 19 06:37:35 UTC 2020
machine          : x86_64
processor        : x86_64
byteorder        : little
LC_ALL           : None
LANG             : C.UTF-8
LOCALE           : en_US.UTF-8

pandas           : 1.4.0.dev0+1158.gc2587f807c
numpy            : 1.21.4
pytz             : 2021.3
dateutil         : 2.8.2
pip              : 21.3.1
setuptools       : 59.1.1
Cython           : 0.29.24
pytest           : 6.2.5
hypothesis       : 6.24.6
sphinx           : 4.3.0
blosc            : None
feather          : None
xlsxwriter       : 3.0.2
lxml.etree       : 4.6.4
html5lib         : 1.1
pymysql          : None
psycopg2         : None
jinja2           : 3.0.3
IPython          : 7.29.0
pandas_datareader: None
bs4              : 4.10.0
bottleneck       : 1.3.2
fsspec           : 2021.11.0
fastparquet      : 0.7.1
gcsfs            : 2021.11.0
matplotlib       : 3.5.0
numexpr          : 2.7.3
odfpy            : None
openpyxl         : 3.0.9
pandas_gbq       : None
pyarrow          : 6.0.1
pyxlsb           : None
s3fs             : 2021.11.0
scipy            : 1.7.2
sqlalchemy       : 1.4.27
tables           : 3.6.1
tabulate         : 0.8.9
xarray           : 0.18.2
xlrd             : 2.0.1
xlwt             : 1.3.0
numba            : 0.53.1

</details>
