www cleanup mega commit:
- Move includes.nav*.sgml to share/sgml/navibar.ent and
<lang>/share/sgml/navibar.l10n.ent.
- Move includes.sgml and includes.xsl to
share/sgml/common.ent, share/sgml/header.ent, <lang>/share/sgml/l10n.ent,
and <lang>/share/sgml/header.l10n.ent.
- Move most of XSLT libraries to share/sgml/*.xsl and
<lang>/share/sgml/*.xsl.
- Move news.xml and other *.xml files for the similar purpose
to share/sgml/*.xml and <lang>/share/sgml/*.xml.
- Switch to use a custom DTD for HTML document. Now we use
"-//FreeBSD//DTD HTML 4.01 Transitional-Based Extension", which is
HTML 4.01 + some entities previously pulled via
"<!ENTITY % includes SYSTEM "includes.sgml"> %includes;" line.
The location of entity file will be resolved by using catalog file.
- Add DOCTYPE declearation to XML documents. This makes the followings
possible:
* Use of &foo; entities for SGML in an XML file instead of defining
{$foo} as the same content.
* &symbolic; entities for Latin characters.
- Duplicated information between SGML and XML, or English and
translated doc, has been removed as much as possible.
This commit is contained in:
parent
de3f531874
commit
5305bb945d
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=28475
795 changed files with 4878 additions and 36943 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#
|
||||
# The FreeBSD Russian Documentation Project
|
||||
#
|
||||
# $FreeBSD: www/ru/ports/Makefile,v 1.9 2005/12/04 11:50:51 pav Exp $
|
||||
# $FreeBSD: www/ru/ports/Makefile,v 1.10 2006/07/16 11:22:05 simon Exp $
|
||||
# $FreeBSDru: frdp/www/ru/ports/Makefile,v 1.9 2004/03/23 21:09:19 phantom Exp $
|
||||
#
|
||||
# Original revision: 1.38
|
||||
|
|
@ -19,13 +19,6 @@
|
|||
|
||||
FETCH_OPT?= -am
|
||||
|
||||
#
|
||||
# Force NO_TIDY for the ports web pages, since it takes a long time to
|
||||
# run tidy on these huge HTML files, and the files are valid HTML when
|
||||
# generated by portindex, even without tidy.
|
||||
#
|
||||
NO_TIDY= YES
|
||||
|
||||
.if defined(PINDEX_OVERRIDE)
|
||||
${INDEX}: ${PINDEX_OVERRIDE}
|
||||
${CP} ${PINDEX_OVERRIDE} ${INDEX}
|
||||
|
|
@ -69,7 +62,16 @@ packages.exists:
|
|||
.endif
|
||||
|
||||
Makefile.gen: index.sgml .NOTMAIN
|
||||
${ECHO_CMD} DOCS= *.sgml > Makefile.gen
|
||||
( ${ECHO_CMD} TIDY=${PERL};\
|
||||
${ECHO_CMD} TIDYOPTS="-i'' -npe 's,\"-//FreeBSD//DTD HTML 4.01 Transitional-Based Extension//EN\",\"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\",'";\
|
||||
${ECHO_CMD} DOCS= *.sgml;\
|
||||
${ECHO_CMD} -n "DYNAMIC_DOCS= ";\
|
||||
${ECHO_CMD} -n " master-index.sgml";\
|
||||
${ECHO_CMD} -n " index.sgml";\
|
||||
) > Makefile.gen
|
||||
for categoryfile in ${CATEGORYLIST}; do \
|
||||
${ECHO_CMD} -n " $$categoryfile.sgml" >> Makefile.gen; \
|
||||
done
|
||||
.if defined(NO_TIDY)
|
||||
${ECHO_CMD} NO_TIDY=${NO_TIDY} >> Makefile.gen
|
||||
.endif
|
||||
|
|
@ -78,6 +80,10 @@ index.sgml: ${INDEX} categories packages.exists portindex ports.inc .NOTMAIN
|
|||
${RM} -f *.sgml
|
||||
${PORTINDEX} ${INDEX} ${.CURDIR}
|
||||
|
||||
# this builds: categories-alpha.sgml, categories-grouped.sgml,
|
||||
# master-index.sgml, statistics.ent, <category>.sgml
|
||||
CATEGORYLIST=`grep "^[a-z]" ../../en/ports/categories | sed -e s"/,.*//"`
|
||||
|
||||
install: all beforeinstall
|
||||
|
||||
all install clean:
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
#
|
||||
# The FreeBSD Russian Documentation Project
|
||||
#
|
||||
# $FreeBSD: www/ru/ports/portindex,v 1.8 2004/03/23 23:07:16 phantom Exp $
|
||||
# $FreeBSD: www/ru/ports/portindex,v 1.9 2005/10/05 20:59:56 simon Exp $
|
||||
# $FreeBSDru: frdp/www/ru/ports/portindex,v 1.14 2004/03/23 21:10:07 phantom Exp $
|
||||
#
|
||||
# Original revision: 1.49
|
||||
|
|
@ -65,15 +65,13 @@ sub getdate {
|
|||
|
||||
sub header {
|
||||
local ($fh, $htext) = @_;
|
||||
print $fh "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" [\n";
|
||||
print $fh "<!DOCTYPE HTML PUBLIC \"-//FreeBSD//DTD HTML 4.01 Transitional-Based Extension//EN\" [\n";
|
||||
print $fh "<!ENTITY base CDATA '..'>\n";
|
||||
print $fh "<!ENTITY date \"<em>$today</em>\">\n";
|
||||
print $fh "<!ENTITY title '$htext'>\n";
|
||||
print $fh "<!ENTITY blurb SYSTEM \"ports.inc\">\n";
|
||||
print $fh "<!ENTITY % navincludes SYSTEM \"../includes.navdownload.sgml\"> %navincludes;\n";
|
||||
print $fh "<!ENTITY % includes SYSTEM \"../includes.sgml\">\n";
|
||||
print $fh "<!ENTITY % navinclude.ports \"INCLUDE\">\n";
|
||||
print $fh "<!ENTITY email 'ports'>\n";
|
||||
print $fh "%includes;\n";
|
||||
print $fh "]>\n";
|
||||
print $fh "<html>&header;\n";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue