I've realized that the lilypond.py file found in the mailing list was not enough. I've downloaded the complete package of lilypond-1.0 here:
http://bitbucket.org/birkenfeld/sphinx-contrib/downloads I've also changed the path in conf.py: sys.path.append(os.path.abspath('exts/lilypond/sphinxcontrib')) extensions = ['lilypond'] But again lilypond code is not rendered and I get a warning which says: (ERROR/3) Unknown directive type "lily" I attach the very simple file I'm trying to process. Maybe there's some synthax error? Any hint appreciated. Thanks, Federico Il giorno dom, 25/07/2010 alle 07.24 -0700, Federico Bruni ha scritto: > Hi all, > > I'm a brand new Sphinx user (really impressed by your software). > > I'm planning to write a tutorial about LilyPond (http://lilypond.org/) > and I've found out that last year a specific extension for LilyPond > was written: > > http://groups.google.com/group/sphinx-dev/browse_thread/thread/e6fb63b23a539714/0dde66d7970d7e5d?lnk=gst&q=lilypond#0dde66d7970d7e5d > > I'm trying to use it, but it's not working. > > Here's what 've done: > > * started a project with sphinx-quickstart > * added file lilypond.py (taken from thread above) in the subdrectory > 'lily' in the root dir of my project > * added these line in conf.py: > > sys.path.append(os.path.abspath('lily')) > > extensions = ['lilypond'] > > Then I add a lilypond snippet in a .rst file: > > .. lily:: > > \relative c'' { > c4 a d c > } > > When I compile with 'make html' I get this error: > > (ERROR/3) Unknown directive type "lily". > > What I'm missing? > > Thanks in advance for your help. > Regards, > Federico -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-...@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.
*************** Scrivere musica *************** In questo capitolo vedremo come si scrive la musica nella sintassi di LilyPond, introducendo i concetti fondamentali. ==== Note ==== Prova 1 :lily: `\musicglyph #"clefs.G"` Ecco un esempio di scala. .. lily:: \relative c'' { c4 a d c }