1

I've published my Python package and hosted the documentation on readthedocs.

I want to know how to remove doctest flags (e.g. doctest: +ELLIPSIS) from the documentation:

https://camphr.readthedocs.io/en/doc-doctest/

When I built the document in my local machine (make html), the flags was properly removed.

mzjn
  • 48,958
  • 13
  • 128
  • 248
tamuhey
  • 2,904
  • 3
  • 21
  • 50

1 Answers1

0

I found a solution.

Read-the-docs installs sphinx<2 by default, which has a bug for doctest flag (please see the @mzjn comment). Thus I prepared readthedocs.yml:

...
python:
  install:
    - requirements: docs/requirements.txt

and prepared docs/requirements.txt as follows:

sphinx>=2.2

Now readthedocs installs sphinx>=2.2 and everything works well.

tamuhey
  • 2,904
  • 3
  • 21
  • 50