]> git.donarmstrong.com Git - lilypond.git/commitdiff
Update instructions for handling doc snippets
authorJohn Mandereau <john.mandereau@gmail.com>
Fri, 24 Apr 2009 09:25:51 +0000 (11:25 +0200)
committerJohn Mandereau <john.mandereau@gmail.com>
Fri, 24 Apr 2009 09:26:29 +0000 (11:26 +0200)
- take text written by Carl in
http://lists.gnu.org/archive/html/lilypond-devel/2009-04/msg00235.html
as a starting point;

- update instructions according to recent changes in makelsr.py;

- (re)move duplicate information in input/{new,lsr}/README.

Documentation/devel/doc-work.itexi
Documentation/devel/lsr-work.itexi
input/lsr/README
input/new/README

index 931f5874f42acc6eb38b5153de3c49626c03ad4f..b6bbe63d3cfc79db3c4a1c2accb3a05bd6089480 100644 (file)
@@ -877,7 +877,7 @@ lilypond examples.  Making easily-understandable examples is much
 harder than it looks.
 
 
-@subsubheading TWEAKS
+@subsubheading Tweaks
 
 In general, any \set or \override commands should go in the
 @qq{select snippets} section, which means that they should go in
@@ -915,6 +915,10 @@ or upgrading tweaks is creating tweaks to deal with known issues.  It
 would be ideal if every significant known issue had a workaround to avoid
 the difficulty.
 
+@seealso
+
+@ref{Adding and editing snippets}.
+
 
 @node Updating docs with convert-ly
 @section Updating doc with @command{convert-ly}
index 2fcbb565156b377b326cdd976435e1886b0040a6..8f38ec289929e90d266441a76ddea860c1dea26c 100644 (file)
@@ -18,25 +18,64 @@ The
 @uref{http://lsr.dsi.unimi.it/, LilyPond Snippet Repository (LSR)}
 is a collection of lilypond examples.  A subset of these examples
 are automatically imported into the documentation, making it easy
-for users to contribute to the docs without learning git and
-texinfo.
+for users to contribute to the docs without learning Git and
+Texinfo.
 
 
 @node Adding and editing snippets
 @section Adding and editing snippets
 
-When you create (or find!) a nice snippet, please add it to LSR.  Go
-to @uref{http://lsr.dsi.unimi.it/, LSR} and log in (if you haven't
-already, create an account).  Follow the instructions on the website.
+@subheading General guidelines
+
+When you create (or find!) a nice snippet, if it supported by LilyPond
+version running on LSR, please add it to LSR.  Go to
+@uref{http://lsr.dsi.unimi.it/, LSR} and log in -- if you haven't
+already, create an account.  Follow the instructions on the website.
 These instructions also explain how to modify existing snippets.
 
-If you think the snippet is particularly informative and you think
-it should be included in the documentation, tag it with @qq{docs}
-and one or more other categories.
+If you think the snippet is particularly informative and you think it
+should be included in the documentation, tag it with @qq{docs} and one
+or more other categories, or ask somebody who has editing permissions to
+do it on the development list.
 
 Please make sure that the lilypond code follows the guidelines in
 @ref{LilyPond formatting}.
 
+If a new snippet created for documentation purposes compiles with
+LilyPond version currently on LSR, it should be added to LSR, and a
+reference to the snippet should be added to the documentation.
+
+If the new snippet uses new features that are not available in the
+current LSR version, the snippet should be added to @file{input/new} and
+a reference should be added to the manual.
+
+Snippets created or updated in @file{input/new} should be copied to
+@file{input/lsr} by invoking at top of the source tree
+
+@example
+scripts/auxiliar/makelsr.py
+@end example
+
+Be sure that @command{make web} runs successfully before submitting a
+patch, to prevent breaking compilation.
+
+@subheading Formatting snippets in @file{input/new}
+
+When adding a file to this directory, please start the file with
+
+@example
+\version "2.x.y"
+\header @{
+  lsrtags = "rhythms,expressive-marks"  % use existing LSR tags other than
+%   'docs'; see makelsr.py for the list of tags used to sort snippets.
+  texidoc = "This code demonstrates ..."  % this will be formated by Texinfo
+  doctitle = "Snippet title"  % please put this at the end so that
+    the '% begin verbatim' mark is added correctly by makelsr.py.
+@}
+@end example
+
+and name the file @file{snippet-title.ly}.
+
 
 @node Approving snippets
 @section Approving snippets
@@ -106,6 +145,10 @@ Do a git add / commit / push.
 
 @end enumerate
 
+Note that whenever there is one snippet from @file{input/new} and the
+other from LSR with the same file name, the one from @file{input/new}
+will be copied by @command{makelsr.py}.
+
 
 @node Fixing snippets in LilyPond sources
 @section Fixing snippets in LilyPond sources
index 8c8683f2165a67672b45fe5b3e1297df84b73667..f3c160812915a747933c6b2d0824ff8caeb62e1f 100644 (file)
@@ -1,20 +1,5 @@
-This directory contains examples generated automatically from LSR:
+This directory contains examples generated automatically from LSR
 http://lsr.dsi.unimi.it/
 
-To update this directory, do at top of the source tree
-
-scripts/auxiliar/makelsr.py DIR
-
-where DIR is the directory unpacked from lsr-snippets-doc-DATE tarball
-available on http://lsr.dsi.unimi.it/download.
-
-Snippets in input/new may "overwrite" snippets from LSR, e.g. for
-snippets that convert-ly can't automatically convert to current ly
-syntax; snippets may also be added to input/new to demonstrate new
-features in development series.
-
-Any changes made to .ly files will be lost next time makelsr.py is
-run.  Please make updates to the LSR database or input/new directly.
-You must be an editor to change "approved" snippets in LSR; otherwise
-just copy the snippet you want to modify in a new snippet, and tag it
-with the "correction-wanted" tag.
+To update this directory and find addtional information, see
+the Contributors' Guide, section "LSR to Git".
index 058fd73515d7b62b54da7701ca1aaca853ccab5e..1b226cf95eb3c62f98a5239a3dab42117434eeb2 100644 (file)
@@ -2,16 +2,5 @@ This directory is for examples of new features in the current
 unstable development series.  These snippets will be added to LSR
 when it supports a version of LilyPond that includes these features.
 
-When adding a file to this directory, please start the file with
-
-\version "2.x.y"
-\header {
-  lsrtags = "rhythms,expressive-marks"  % use existing LSR tags other than
-%   'docs'; see makelsr.py for the list of tags used to sort snippets.
-  texidoc = "This code demonstrates ..."  % this will be formated by Texinfo
-  doctitle = "Snippet title"  % please put this at the end so that
-    the '% begin verbatim' mark is added correctly by makelsr.py.
-}
-
-
-and name the file snippet-title.ly.
+See additional instructions in the Contributors' Guide, section
+Adding and editing snippets.