Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sphinx.util.compat.Directive class is deprecated #2

Open
youqad opened this issue Jun 9, 2018 · 5 comments
Open

sphinx.util.compat.Directive class is deprecated #2

youqad opened this issue Jun 9, 2018 · 5 comments

Comments

@youqad
Copy link

youqad commented Jun 9, 2018

Hi! First of all, thanks a lot for your awesome theme!
Unfortunately, as said in the title: now you get an error when building the documentation in readthedocs.org:

Build error

since sphinx.util.compat.Directive is now deprecated: it has become docutils.parsers.rst.Directive (http://www.sphinx-doc.org/en/master/extdev/index.html#deprecated-apis). Would it be possible to fix this?

Thanks in advance!

@danielsnider
Copy link

Same issue!

@danielsnider
Copy link

I got around the issue by updating the import:

index 5fbf9e3..62afb5c 100644
--- a/foundation_sphinx_theme/__init__.py
+++ b/foundation_sphinx_theme/__init__.py
@@ -1,7 +1,7 @@
 import os
 import re

-from sphinx.util.compat import Directive
+from docutils.parsers.rst import Directive


 HTML_THEME_PATH = [os.path.abspath(os.path.join(os.path.dirname(__file__),

Also, I got it running with:

$ git clone https://github.com/peterhudec/foundation-sphinx-theme
$ cd foundation-sphinx-theme/sample-project/
$ ./make.bat html

Then go see the working documentation page in your browser: file:///C:/Users/danie/Documents/GitHub/foundation-sphinx-theme/sample-project/build/html/index.html

@IcyW
Copy link

IcyW commented Oct 21, 2018

Same issue!

@geyang
Copy link

geyang commented Apr 10, 2019

this needs to be fixed. @peterhudec

@geyang
Copy link

geyang commented Apr 10, 2019

Please refer to #3 for the fix. @peterhudec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants