jeff schrieb: > I'm documenting a program that has some python and some sql. Sphinx > is working really well and I'm quite happy with it. But I do have a > question: > > In text like: > > Because the Python class User corresponds to the table users, you > simply need > to set User.name to update the field users.name in the database. > > I can mark up (and get cross referencing for) User and User.name, but > is there anything similar for users and users.name? Should I just put > them in ``backtics``?
If you don't need crossrefences etc., I'd suggest simple double backticks. If you want to have :table:`users` but no crossreferences, you can use Sphinx.add_generic_role (new in trunk). If you want to have cross-references, you can use Sphinx.add_description_unit which also gives you a directive to set the targets, like .. table:: users cheers, Georg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en -~----------~----~----~----~------~----~------~--~---
