Want more features on Pastebin? Sign Up, it's FREE!
Guest

Sphinx 'only' block strange behavior

By: ErnstHaagsman on Feb 21st, 2013  |  syntax: None  |  size: 0.96 KB  |  views: 61  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data