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

"Removed in Sphinx 3.0" warnings #16

Closed
hdiogenes opened this issue Sep 28, 2020 · 2 comments · Fixed by #20
Closed

"Removed in Sphinx 3.0" warnings #16

hdiogenes opened this issue Sep 28, 2020 · 2 comments · Fixed by #20
Assignees

Comments

@hdiogenes
Copy link
Member

hdiogenes commented Sep 28, 2020

$ make -C tutorials
Running Sphinx v2.0.1
making output directory... done
loading intersphinx inventory from https://docs.kytos.io/python-openflow/objects.inv...
loading intersphinx inventory from https://docs.kytos.io/kytos/objects.inv...
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
building [mo]: targets for 0 po files that are out of date
building [dirhtml]: targets for 15 source files that are out of date
updating environment: 15 added, 0 changed, 0 removed
$VIRTUAL_ENV/lib/python3.8/site-packages/sphinx/util/nodes.py:149: FutureWarning:                                            
   The iterable returned by Node.traverse()
   will become an iterator instead of a list in Docutils > 0.16.
  for classifier in reversed(node.parent.traverse(nodes.classifier)):
reading sources... [100%] references                                                                                                       
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
$VIRTUAL_ENV/src/kytos-sphinx-theme/kytos_sphinx_theme/kytos/layout.html:24: RemovedInSphinx30Warning: To modify script_files in the theme is deprecated. Please insert a <script> tag directly in your theme instead.
  {% include "navbar.html" %}
$VIRTUAL_ENV/src/kytos-sphinx-theme/kytos_sphinx_theme/kytos/layout.html:56: RemovedInSphinx30Warning: To modify script_files in the theme is deprecated. Please insert a <script> tag directly in your theme instead.
  {%- block content %}
writing output... [100%] references                                                                                                        
generating indices... genindex
writing additional pages... search
$VIRTUAL_ENV/src/kytos-sphinx-theme/kytos_sphinx_theme/kytos/search.html:21: RemovedInSphinx30Warning: To modify script_files in the theme is deprecated. Please insert a <script> tag directly in your theme instead.
  {% endblock %}

copying static files... done
copying extra files... done
dumping search index in English (code: en) ... done
dumping object inventory... done
build succeeded.

The HTML pages are in _build/dirhtml.

Build finished. The HTML pages are in _build/dirhtml.
@Niehaus
Copy link
Contributor

Niehaus commented Oct 15, 2020

I'm running sphinx-theme v3.2.1 and I did not got those warnings, I got another ones, and they can be solved by just replacing
.. code-block:: bash by .. code-block:: console in the indicated lines. I really don't know if those warnings are related to sphinx version yet

making output directory... done
loading intersphinx inventory from https://docs.kytos.io/python-openflow/objects.inv...
loading intersphinx inventory from https://docs.kytos.io/kytos/objects.inv...
loading intersphinx inventory from https://docs.python.org/3/objects.inv...
building [mo]: targets for 0 po files that are out of date
building [dirhtml]: targets for 15 source files that are out of date
updating environment: [new config] 15 added, 0 changed, 0 removed
reading sources... [100%] references                                                                 
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] references                                                                  
/home/barbara/Documents/Github-repos/documentation/tutorials/napps/create_looping_napp.rst:217: WARNING: Could not lex literal_block as "bash". Highlighting skipped.
/home/barbara/Documents/Github-repos/documentation/tutorials/napps/create_looping_napp.rst:277: WARNING: Could not lex literal_block as "bash". Highlighting skipped.
/home/barbara/Documents/Github-repos/documentation/tutorials/napps/create_ping_pong_napps.rst:460: WARNING: Could not lex literal_block as "bash". Highlighting skipped.
/home/barbara/Documents/Github-repos/documentation/tutorials/napps/create_your_napp.rst:290: WARNING: Could not lex literal_block as "bash". Highlighting skipped.
/home/barbara/Documents/Github-repos/documentation/tutorials/napps/publishing_your_napp.rst:200: WARNING: Could not lex literal_block as "bash". Highlighting skipped.
/home/barbara/Documents/Github-repos/documentation/tutorials/napps/publishing_your_napp.rst:222: WARNING: Could not lex literal_block as "bash". Highlighting skipped.
/home/barbara/Documents/Github-repos/documentation/tutorials/napps/restful_statistics.rst:106: WARNING: Could not lex literal_block as "bash". Highlighting skipped.
/home/barbara/Documents/Github-repos/documentation/tutorials/napps/switch_l2.rst:325: WARNING: Could not lex literal_block as "bash". Highlighting skipped.
/home/barbara/Documents/Github-repos/documentation/tutorials/napps/switch_l3_part1.rst:340: WARNING: Could not lex literal_block as "bash". Highlighting skipped.
/home/barbara/Documents/Github-repos/documentation/tutorials/napps/switch_l3_part2.rst:527: WARNING: Could not lex literal_block as "bash". Highlighting skipped.
generating indices...  genindexdone
writing additional pages...  searchdone
copying static files... ... done
copying extra files... done
dumping search index in English (code: en)... done
dumping object inventory... done
build succeeded, 10 warnings.

The HTML pages are in _build/dirhtml.

Build finished. The HTML pages are in _build/dirhtml.

@hdiogenes
Copy link
Member Author

hdiogenes commented Oct 20, 2020

Those warnings should already be fixed by kytos/documentation@5bec7a9, please pull the latest code and try again.

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

Successfully merging a pull request may close this issue.

2 participants