X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fcontributor%2Fwebsite-work.itexi;h=774aa4574685314cff40b3949ff875b9ed21c5f5;hb=bcca0b75dd9dbed94b428a493576857c7755c049;hp=2f881371e2ffca099f324d8bfa49f255c7615b12;hpb=3332fc2677f9c8d472ebe4adf05cc742a0089432;p=lilypond.git diff --git a/Documentation/contributor/website-work.itexi b/Documentation/contributor/website-work.itexi index 2f881371e2..774aa45746 100644 --- a/Documentation/contributor/website-work.itexi +++ b/Documentation/contributor/website-work.itexi @@ -67,18 +67,22 @@ git fetch origin git merge origin/master @end verbatim -Check for any updates to trusted scripts: +Check for any updates to trusted scripts / files: @verbatim ### check-git.sh #!/bin/sh GIT=$HOME/src/lilypond DEST=$HOME/lilypond/trusted-scripts -diff -u $GIT/website.make $DEST/website.make -diff -u $GIT/Documentation/lilypond-texi2html.init $DEST/lilypond-texi2html.init -diff -u $GIT/scripts/build/extract_texi_filenames.py $DEST/extract_texi_filenames.py -diff -u $GIT/scripts/build/create-version-itexi.py $DEST/create-version-itexi.py -diff -u $GIT/scripts/build/create-weblinks-itexi.py $DEST/create-weblinks-itexi.py +diff -u $DEST/website.make $GIT/make/website.make +diff -u $DEST/lilypond-texi2html.init $GIT/Documentation/lilypond-texi2html.init +diff -u $DEST/extract_texi_filenames.py $GIT/scripts/build/extract_texi_filenames.py +diff -u $DEST/create-version-itexi.py $GIT/scripts/build/create-version-itexi.py +diff -u $DEST/create-weblinks-itexi.py $GIT/scripts/build/create-weblinks-itexi.py +diff -u $DEST/mass-link.py $GIT/scripts/build/mass-link.py +diff -u $DEST/website_post.py $GIT/scripts/build/website_post.py +diff -u $DEST/lilypond.org.htaccess $GIT/Documentation/web/server/lilypond.org.htaccess +diff -u $DEST/website-dir.htaccess $GIT/Documentation/web/server/website-dir.htaccess @end verbatim If the changes look ok, make them trusted: @@ -88,11 +92,15 @@ If the changes look ok, make them trusted: #!/bin/sh GIT=$HOME/src/lilypond DEST=$HOME/lilypond/trusted-scripts -cp $GIT/website.make $DEST/website.make +cp $GIT/make/website.make $DEST/website.make cp $GIT/Documentation/lilypond-texi2html.init $DEST/lilypond-texi2html.init cp $GIT/scripts/build/extract_texi_filenames.py $DEST/extract_texi_filenames.py cp $GIT/scripts/build/create-version-itexi.py $DEST/create-version-itexi.py cp $GIT/scripts/build/create-weblinks-itexi.py $DEST/create-weblinks-itexi.py +cp $GIT/scripts/build/mass-link.py $DEST/mass-link.py +cp $GIT/scripts/build/website_post.py $DEST/website_post.py +cp $GIT/Documentation/web/server/lilypond.org.htaccess $DEST/lilypond.org.htaccess +cp $GIT/Documentation/web/server/website-dir.htaccess $DEST/website-dir.htaccess @end verbatim Build the website: @@ -100,13 +108,14 @@ Build the website: @verbatim ### make-website.sh #!/bin/sh -DEST=$HOME/public_html/ +DEST=$HOME/web/ cd $HOME/src/build-website cp $HOME/lilypond/trusted-scripts/website.make . make -f website.make WEBSITE_ONLY_BUILD=1 website rsync -ra $HOME/src/build-website/out-website/website/ $DEST/website/ cp $HOME/src/build-website/out-website/pictures $DEST +cp $HOME/src/build-website/out-website/.htaccess $DEST @end verbatim Cronjob to automate the trusted portions: @@ -146,3 +155,48 @@ rsync -a $EXAMPLES graham@lilypond.org:ly-examples As it has much more audience, the website should be translated before the documentation; see @ref{Translating the documentation}. + +In addition to the normal documentation translation practices, +there are a few additional things to note: + +@itemize + +@item +Build the website with: + +@example +make website +@end example + +@noindent +however, please note that this command is not designed for being +run multiple times. If you see unexpected output (mainly the page +footers getting all messed up), then delete your +@file{out-website} directory and run @code{make website} again. + +@item +Some of the translation infrastructure is defined in python files; +you must look at the @code{### translation data} sections in: + +@example +scripts/build/create-weblinks-itexi.py +scripts/build/website_post.py +@end example + +@item +Translations are not included by default in @code{make website}. +To test your translation, edit the @code{WEB_LANGS} line in +@file{make/website.make}. Do not submit a patch to add your language +to this file unless @code{make website} completes with less than 5 +warnings. + +@item +Links to manuals are done with macros like +@code{@@manualDevelLearningSplit}. To get translated links, you +must change that to @code{@@manualDevelLearningSplit-es} (for +es/Spanish translations, for example). + +@end itemize + + +