Index: openacs-4/packages/acs-core-docs/www/tutorial-specs.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-specs.html,v diff -u -r1.3 -r1.4 --- openacs-4/packages/acs-core-docs/www/tutorial-specs.html 5 May 2004 12:36:08 -0000 1.3 +++ openacs-4/packages/acs-core-docs/www/tutorial-specs.html 11 Jun 2004 10:17:39 -0000 1.4 @@ -1,4 +1,4 @@ -Write the Requirements and Design Specs

Write the Requirements and Design Specs

Before you get started you should make yourself familiar with +Write the Requirements and Design Specs

Write the Requirements and Design Specs

Before you get started you should make yourself familiar with the tags that are used to write your documentation. For tips on editing SGML files in emacs, see OpenACS Documentation Guide.

It's time to document. For the tutorial we'll use pre-written documentation. When creating a package @@ -12,12 +12,12 @@ directory, and store png or jpg versions of supporting files in the www/doc directory.

For this tutorial, you should instead install the pre-written documentation files for the tutorial app. Log in - as service0, create the standard - directories, and copy the prepared documentation:

[service0 service0]$ cd /var/lib/aolserver/service0/packages/myfirstpackage/
-[service0 myfirstpackage]$ mkdir -p www/doc/xml
-[service0 myfirstpackage]$ cd www/doc/xml
-[service0 xml]$ cp /var/lib/aolserver/service0/packages/acs-core-docs/www/files/myfirstpackage/* .
-[service0 xml]$

OpenACS uses DocBook for documentation. DocBook is + as $OPENACS_SERVICE_NAME, create the standard + directories, and copy the prepared documentation:

[$OPENACS_SERVICE_NAME $OPENACS_SERVICE_NAME]$ cd /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/myfirstpackage/
+[$OPENACS_SERVICE_NAME myfirstpackage]$ mkdir -p www/doc/xml
+[$OPENACS_SERVICE_NAME myfirstpackage]$ cd www/doc/xml
+[$OPENACS_SERVICE_NAME xml]$ cp /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/acs-core-docs/www/files/myfirstpackage/* .
+[$OPENACS_SERVICE_NAME xml]$

OpenACS uses DocBook for documentation. DocBook is an XML standard for semantic markup of documentation. That means that the tags you use indicate meaning, not intended appearance. The style sheet will determine appearance. You @@ -32,7 +32,7 @@ is stored in the www/docs/ directory. A Makefile is provided to generate html from the xml, and copy all of the supporting files. If Docbook is set up correctly, all you need - to do is:

[service0 xml]$ make
+      to do is:

[$OPENACS_SERVICE_NAME xml]$ make
 cd .. ; /usr/bin/xsltproc ../../../acs-core-docs/www/xml/openacs.xsl xml/index.xml
 Writing requirements-introduction.html for chapter(requirements-introduction)
 Writing requirements-overview.html for chapter(requirements-overview)
@@ -48,5 +48,5 @@
 Writing admin-guide.html for chapter(admin-guide)
 Writing bi01.html for bibliography
 Writing index.html for book
-[service0 xml]$

Verify that the documentation was generated and reflects +[$OPENACS_SERVICE_NAME xml]$

Verify that the documentation was generated and reflects your changes by browsing to http://yoursite:8000/myfirstpackage/doc

View comments on this page at openacs.org