mirror of
				https://git.yoctoproject.org/matchbox-documentation
				synced 2025-11-04 13:05:59 +08:00 
			
		
		
		
	add api docs to script
git-svn-id: https://svn.o-hand.com/repos/matchbox/trunk/matchbox-documentation@1224 b067294f-1dea-0310-9683-c47a78595994
This commit is contained in:
		
							
								
								
									
										25
									
								
								make-docs.sh
									
									
									
									
									
								
							
							
						
						
									
										25
									
								
								make-docs.sh
									
									
									
									
									
								
							@@ -1,28 +1,32 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
#
 | 
			
		||||
# Hacky script to package up docs for MB website.
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
rm -fr /tmp/mb-docs
 | 
			
		||||
rm -fr mb-docs.tar.gz
 | 
			
		||||
 | 
			
		||||
# manual
 | 
			
		||||
echo "Generating HTML Manual"
 | 
			
		||||
echo "** Generating HTML Manual **"
 | 
			
		||||
mkdir -p /tmp/mb-docs/manual/images
 | 
			
		||||
xsltproc -o /tmp/mb-docs/manual/ --param use.id.as.filename 1 common/mb-dbk.xsl  manual/matchbox-manual.xml
 | 
			
		||||
cp -r common/mb.css /tmp/mb-docs/manual/
 | 
			
		||||
cp -r common/images/*.png /tmp/mb-docs/manual/images/
 | 
			
		||||
 | 
			
		||||
echo "Generating manual tarball"
 | 
			
		||||
echo "** Generating manual tarball **"
 | 
			
		||||
tar cvzf /tmp/mb-docs/matchbox-manual.tar.gz /tmp/mb-docs/manual
 | 
			
		||||
 | 
			
		||||
echo "Generating manual PDF"
 | 
			
		||||
echo "** Generating manual PDF **"
 | 
			
		||||
echo "Not working as yet.."
 | 
			
		||||
#xsltproc --output /tmp/mb-docs/manual/matchbox-manual.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/fo.xsl manual/matchbox-manual.xml
 | 
			
		||||
 | 
			
		||||
echo "Generating Testing doc"
 | 
			
		||||
echo "** Generating Testing doc **"
 | 
			
		||||
mkdir -p /tmp/mb-docs/developers/testing/images
 | 
			
		||||
xsltproc -o /tmp/mb-docs/developers/testing/ --param use.id.as.filename 1 common/mb-dbk.xsl testing/testing.docbook
 | 
			
		||||
cp -r common/mb.css /tmp/mb-docs/developers/testing/
 | 
			
		||||
cp -r common/images/*.png /tmp/mb-docs/developers/testing/images/
 | 
			
		||||
 | 
			
		||||
echo "Generating Themeing doc"
 | 
			
		||||
echo "** Generating Themeing doc **"
 | 
			
		||||
 | 
			
		||||
mkdir -p /tmp/mb-docs/themes/images
 | 
			
		||||
xsltproc -o /tmp/mb-docs/themes/ --param use.id.as.filename 1 common/mb-dbk.xsl theme-howto/theme.howto.docbook
 | 
			
		||||
@@ -32,12 +36,19 @@ cp -r common/images/*.png /tmp/mb-docs/themes/images/
 | 
			
		||||
echo "Copying various text files and stuff into place"
 | 
			
		||||
cp developers/internals.txt developers/matchbox-key.txt developers/matchbox.pdf developers/internals.dia /tmp/mb-docs/developers/
 | 
			
		||||
 | 
			
		||||
echo " ** Building libmb docs **"
 | 
			
		||||
pushd .
 | 
			
		||||
echo "Tarballing"
 | 
			
		||||
cd ../libmatchbox/doc
 | 
			
		||||
doxygen Doxyfile
 | 
			
		||||
mv html /tmp/mb-docs/developers/api
 | 
			
		||||
popd
 | 
			
		||||
 | 
			
		||||
pushd .
 | 
			
		||||
echo " ** Tarballing **"
 | 
			
		||||
cd /tmp/mb-docs/
 | 
			
		||||
tar cvzf mb-docs.tar.gz *
 | 
			
		||||
popd
 | 
			
		||||
mv /tmp/mb-docs/mb-docs.tar.gz .
 | 
			
		||||
echo
 | 
			
		||||
echo "All done. Untar mb-docs.tar.gz in web documentation dir. Remember api docs"
 | 
			
		||||
echo "All done. Untar mb-docs.tar.gz in web documentation dir."
 | 
			
		||||
echo
 | 
			
		||||
		Reference in New Issue
	
	Block a user