mozilla.org content and cvsMike Shaver, Terry Weissman, and Jamie Zawinskifantasai and benc This document outlines important things you should know about adding content to a subtree of the mozilla.org website follow. Understand them well, for if you break your section of the website, you will have only yourself to blame. (Unless our instructions suck, of course, in which case we'll have to help you fix it, and you may mock us mercilessly.)
The mozilla.org Build SystemThe entire mozilla.org website is built off of a CVS tree of plain, unadorned HTML files. These and all other files on the website are contained in thehtml subdirectory of the
website CVS root. A set of makefiles and Perl scripts periodically
processes these files and places the result in an output
subdirectory. The contents of the output
subdirectory is what gets served up as the mozilla.org website. You
can run this build process on your own machine by
checking out the website CVS tree and
building mozilla.org.
All files that are checked in to the CVS repository anywhere
under the By default, HTML files will have the standard mozilla.org left-edge
menu appended to them; those HTML files listed in the Your files should look like the ones in the When adding or removing files, altering the If you do something that horks the CVS Access to the Website TreeThere are two CVS repositories, the primary at For anonymous accessSet your :pserver:anonymous:/www The password for For access using your CVS accountSet your your%address:/www Where it says your%address above, you would substitute
your canonical email address, but replacing the foo%bar.com:/www Checking OutOnce cvs -z3 co mozilla-org/html/quality/networking The If you need to build the website, you also need to check out the ScriptBase module: cvs -z3 co ScriptBase ScriptBase module is the smallest documentation module available and contains only the set of necessary scripts, the wrapper and a minimal set of docs. The MozillaOrgTrim module checks out a partial version of the web site that's missing some of the larger pieces. The MozillaOrg module checks out the entire web site. For a complete list of modules type: cvs co -c Checking InYou must cvs add before committing a new file, and you
should follow all the other rules of good CVS hygiene as well, such
as properly tagging binary files with In general, you are expected to behave responsibly, and to not modify files that you know nothing about. If you are not completely sure about what you are editing, opening a bug in "Documentation" and involving other well-informed contributors is a good idea. There are a few files (in particular,
Web-Based CVS Access with DoctorIf you do not have a CVS client or cannot use one, we have a webtool called Doctor which can be used to create and edit files. If you have an active CVS account, you can submit changes through Doctor. If you don't, you can still use Doctor to create a patch. To use Doctor to edit an existing page, click on the "Edit this Page" link at the bottom of the document or enter its path in the text field on Doctor's main page. The page's HTML will be presented in an editable text field. Make your edits, and hit "Review Changes". Your changes will appear in "diff" format. If you have CVS access, you can commit your changes right there. If you do not have CVS access, you can copy the diff to a text file, which you should submit as a patch in Bugzilla. To create a new page visit http://doctor.mozilla.org. Doctor is not recommended for people who already know or are willing to learn CVS. Building mozilla.orgTo build mozilla.org you will need:
If you are planning to work with XML files on developer.mozilla.org, you will also need libxslt. Setting up a Unix or Mac OS X Build EnvironmentIf you're running Unix/Linux, you should know where to get your packages
from. The package names are usually The perl modules can be installed from CPAN with the following commands: perl -MCPAN -e "install 'Template'" perl -MCPAN -e "install 'Date::Manip'" perl -MCPAN -e "install 'XML::Simple'" Setting up a Windows Build EnvironmentThere are, of course, multiple routes to getting the appropriate tools installed. I used ActivePerl (it comes with nicer documentation), but I'm told Cygwin perl also works.
The Build CommandTo build the mozilla.org tree, cd into If you can't run make, try running the Portions of this content are © 1998–2007 by individual mozilla.org contributors; content available under a Creative Commons license | Details. Last modified March 30, 2007 Document History Edit this Page (or via CVS) |