User loginNavigationSearch |
Revision of MozdevDocs from Wed, 10/17/2007 - 15:37This documentation will help you get started using your project on mozdev. These instructions are kept in a wiki, so please feel free to update, correct or add any information that will be helpful to other users. For reference the original docs are still available, but they are also very out-of-date.
Adding, Editing and Deleting ContentCVS is used to edit, update and add all source and content on mozdev.org, including a project's web pages. Web pages are contained in the www/ directory for each project, so to start making changes to your pages you first need to check out your project from CVS. Using a command line CVS client, you would do the following: cvs -d :pserver:USERNAME@mozdev.org:/cvs login Note: The CVS commands above are for use with command line CVS clients. There are Windows and Macintosh CVS programs (such as WinCVS and TortoiseCVS for Windows and MacCVS and MacCVSClient for the Mac) that provide a graphical front end for CVS. For more information about using CVS on mozdev, please see John Haller's CVS Setup guide. When the checkout is complete all of the project's contents will be on your computer and the web pages can be found at PROJECTNAME/www/. For all new projects there are already some Template Start Pages that have been included in this directory, although you are free to add whatever files or directories you want. After modifying files locally, you can commit these changes back to your project and they will show up on the site. CVS is also used to take down a page from your site. Files removed in CVS are moved into an area called the Attic and are not deleted from the repository. This is done because CVS needs to keep a full history of all versions of all files in case an earlier version of a file needs to be brought back at some point. Removed pages may not be linked to from your site anymore, but they will still be available online by browsing through your project's Attic using CVSweb. This means that a file removed from your site can still be found through a Google search, for instance. Default Template PagesAll new projects come with some default template pages that you can edit to get your project started quickly. These templates are designed to use valid HTML and CSS and have been optimized to display best in standards-compliant browsers. HTML and CSS compliance is optional though and you are free to replace any of these files or edit them however you want. The default templates include:
Announcing Your ProjectOnce you've built out your project, there are a several ways for people to find out about what you've been working on. Your project is automatically publicized on the site in a number of places:
Configuration Options for local.confThe local.conf file is a configuration file for customising how your project content is presented. Please see the full list of configuration options for all of the details. Branding OptionsThe pages you create for your project are wrapped with mozdev's branding and navigation by default. This means that there will be HTML that is added to the files in your www/ directory when they are displayed on the site. The wrappers include both beginning and ending <html>, <head>, <title> and <body> tags. To avoid causing any conflicts it is recommended that you don't include these tags in the web pages you add to your project. There are a number of ways to alter the branding that is wrapped around your project pages by default. To display any page without any of the branding, the simplest way to do this is to include no_wrap in the URL for that page. For example, to see the Roadmap page without the branding use this URL: http://www.mozdev.org/no_wrap/resources/roadmap.html You can also edit the local.conf file to toggle different branding options. To turn the branding off you can modify the $local_conf_no_wrap variable by making the following change in local.conf: // site branding Turning site branding off with this method only turns off the mozdev look and feel, but your pages are still being served with some additional wrapping. To completely turn off all wrapping and have your page content stand alone, you can add this switch to local.conf: // serve it as it is If you choose to turn off the default branding on your project, please include a logo somewhere on your site with a link to www.mozdev.org. Header InsertIt is not possible to directly edit the contents of the tag in your project's HTML. It is possible to include custom header content though by using the head.txt file that will be added to the default header content. New projects have a basic file in the main www directory that includes a reference to a default stylesheet: <link rel="stylesheet" href="project.css"> This file can be edited however you like. Some examples of things to add include:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="icon" href="http://www.mozdev.org/sharedimages/mozdev-icon.png" type="image/png">
<title>My Great Project</title> You can add a number of different head.txt files in your project's directories. If you include this file in a subdirectory it will be used instead of any files used in higher level directories. If you leave this file out of any subdirectories the file in the top level www directory will be used. Should you have sub-subdirectories [project/www/subdir/subsubdir/] , and there is a head.txt for their parent directory, and the sub-subdirectories themselves lack a head.txt, that head.txt [project/www/subdir/head.txt], if it exists, will be used before the top-level head.txt [project/www/head.txt]. Posting Files to the Download MirrorsWhen you are ready to post a version of your project for download or installation, you will need to copy the release file to your downloads directory. All download files (xpi, zip, gzip, tar, etc.) should live only in the downloads directory. Newly checked in (or changed) release files are scheduled for copying to the mirror servers. It can be as quick as the top of the next hour, yet with some servers you may see a delay of up to 8 hours. Once your files are copied over they will be available at http://downloads.mozdev.org/PROJECTNAME/. In other words, if you project were called gil, and you placed a copy of release.xpi in your downloads directory, it would be available at http://downloads.mozdev.org/gil/release.xpi. For more information about how to provide secure updates to their users, see the McCoy documentation. For more information about the download mirrors or about how to become a mozdev.org mirror, visit the mirrors project. Using Drupal (blog/forum/wiki)If you would like to add Drupal (including a blog, forum, and wiki) to your project's site, please submit a bug and the system will be setup. After Drupal has been setup for your site, you ccan make the following modifications to your site:
<a href="/drupal/blog">Blog</a> <a href="/drupal/forum">Forum</a> <a href="/drupal/wiki">Wiki</a>
<link rel="alternate" type="application/rss+xml" title="News" href="/drupal/rss.xml" /> Once Drupal is setup for your project you will be able to login using your existing Mozdev.org CVS username and password. You will be given permissions based on your status within the project (Project Owner or Project Contributor). We have also setup two helper roles: Forum Moderator and Wiki Editor. As a project owner you will have full rights to make changes to your Drupal installation (such as changing permissions, assigning roles, and modifying content). A project contributor will be able to modify and create content, but will not be able to make changes to the site's configuration. Forum Moderators will be able to edit, delete, or move forum posts. Wiki Editors will be able to add or edit wiki pages. Granting New Project RolesIf you are a project owner and would like to grant commit access to someone who wants to help out with your project, send email to feedback at mozdev dot org with the name of your project and the name and email address of the person to give access to. When submitting a request for access also include the role you would like to grant. There are two roles that allow commit access -- Committer and Project Owner. The only difference between these two roles is administrative. Someone with commit access will not be allowed to request changes to the project, but anyone listed as a project owner will be. Mailing List ModerationUnfortunately the lists on the site receive spam that must be dealt with by project owners. We are currently reviewing our mailing lists settings to minimize the effort involved with moderating these messages. We will update these docs with the latest information soon. Mail/News GatewayTo set up a gateway to keep your project's mailing list and newsgroups in sync, you just need to follow these steps:
Note: In order to access newsgroups on mozdev, you will need to provide a global userrname and password -- mozdev/maduser. This authentication applies to every public mozdev newsgroup. This is an effort to help reduce spam and is not intended to keep out any users interested in discussing projects hosted on the site. Serving XUL PagesIt is possible to serve up XUL files from your project's site. We are passing XUL files through PHP so you can do server side parsing. PHP by default sends a text/html header to the browser, so for your XUL to work add this line right above the XML tag at the top of your XUL files: <?php header( "Content-type: application/vnd.mozilla.xul+xml" ); ?> \\Note: Make sure there is no space between the two lines since the XML tag needs to be the on the first line of the file.\ $local_conf_mime_types = ON; |
Post new comment