Advertisement
ErnstHaagsman

Sphinx 'only' block strange behavior

Feb 21st, 2013
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. .. Quest for Sphinx Behavior documentation master file, created by
  2. sphinx-quickstart on Thu Feb 21 02:23:30 2013.
  3. You can adapt this file completely to your liking, but it should at least
  4. contain the root `toctree` directive.
  5.  
  6. Welcome to Quest for Sphinx Behavior's documentation!
  7. =====================================================
  8.  
  9. Contents:
  10.  
  11. .. toctree::
  12. :maxdepth: 2
  13.  
  14. .. only:: platform
  15.  
  16. This gets displayed
  17.  
  18. A title at another level
  19. ------------------------
  20.  
  21. This also gets displayed
  22.  
  23. Similar title to headings in the rest of the document
  24. =====================================================
  25.  
  26. This does not get displayed. If you use any level of heading which is used
  27. anywhere else in the same document, outside of the 'only' block, that title
  28. and anything after it within the only block will not be displayed.
  29.  
  30. Another title at a different level
  31. ----------------------------------
  32.  
  33. This also does not get displayed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement