docstructure.py 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. import os
  2. if os.path.exists(os.path.join(os.path.dirname(__file__), '..', 'funding.txt')):
  3. funding = ('../funding.txt',)
  4. else:
  5. funding = ()
  6. SITE_STRUCTURE = [
  7. ('lxml', ('main.txt', 'intro.txt', '../INSTALL.txt', # 'lxml2.txt',
  8. 'performance.txt', 'compatibility.txt', 'FAQ.txt') + funding),
  9. ('Developing with lxml', ('tutorial.txt', '@API reference',
  10. 'api.txt', 'parsing.txt',
  11. 'validation.txt', 'xpathxslt.txt',
  12. 'objectify.txt', 'lxmlhtml.txt',
  13. 'cssselect.txt', 'elementsoup.txt',
  14. 'html5parser.txt')),
  15. ('Extending lxml', ('resolvers.txt', 'extensions.txt',
  16. 'element_classes.txt', 'sax.txt', 'capi.txt')),
  17. ('Developing lxml', ('build.txt', 'lxml-source-howto.txt',
  18. '@Release Changelog', '../CREDITS.txt')),
  19. ]
  20. HREF_MAP = {
  21. "API reference" : "api/index.html"
  22. }
  23. BASENAME_MAP = {
  24. 'main' : 'index',
  25. 'INSTALL' : 'installation',
  26. 'CREDITS' : 'credits',
  27. }