Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
EASY [PyText] fix doc sphinx deprecation warning (#775)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #775

Before the fix, `make html` prints this warning.

  /Users/egaudet/src/pytext.src/pytext/docs/source/conf.py:204: RemovedInSphinx30Warning: app.override_domain() is deprecated. Use app.add_domain() with override option instead.

Reviewed By: chenyangyu1988

Differential Revision: D16228043

fbshipit-source-id: 8a37cd8c331d51ace7b802541d6fd923a2d17245
  • Loading branch information
Titousensei authored and facebook-github-bot committed Jul 15, 2019
1 parent 1748061 commit fbf30bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytext/docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,5 @@ def resolve_xref(self, env, fromdocname, builder, typ, target, node, contnode):


def setup(app):
app.override_domain(PatchedPythonDomain)
app.add_domain(PatchedPythonDomain, override=True)
app.connect("builder-inited", run_apidoc)

0 comments on commit fbf30bb

Please sign in to comment.