Commit graph

86 commits

Author SHA1 Message Date
Murray Stokely
d0cff149df Add past events XSL template. 2008-06-22 23:14:33 +00:00
Murray Stokely
7a16295196 Generate RSS 2.0 feed of FreeBSD in the Press stories.
PR:		www/113112
2008-01-16 08:21:47 +00:00
Murray Stokely
19e98f4b5d Add support for generating an RSS 2.0 feed of the project news which
includes full content of each news item, not just titles, and better
integration with modern feed readers (e.g. Google Reader) than the
current RDF/RSS 0.9 feed.
2008-01-07 07:50:27 +00:00
Tom Rhodes
e1261bceb3 Fix build in cases where WEB_ONLY and WITHOUT_DOC are defined but the
doc directory does not exist.
2006-10-07 04:05:33 +00:00
Hiroki Sato
cb1dde62d4 Add missing dependencies.
Spotted by:	ceri and simon
2006-09-22 21:05:04 +00:00
Hiroki Sato
d16c486bf5 Add a workaround to fix a build problem when using osgmlnorm (activated
by $OPENJADE knob).  The reason is still unclear, but it is likely
to be caused by some OpenSP's bug.

Spotted by:	pav
2006-08-24 20:02:06 +00:00
Hiroki Sato
66054b0442 Fix doc tree build without the www tree.
Spotted by:	simon
2006-08-22 09:25:05 +00:00
Hiroki Sato
9cc1640385 Implement dynamic generation of &base; entity for XML documents and
activate it instead of using a static &base;.  Since an .xml database file
(or an .xslt stylesheet file) is used from various directories, the static
&base; no longer works.

PR:	www/102331
2006-08-21 18:27:43 +00:00
Hiroki Sato
7ff2dc32be Remove navigation dependset. 2006-08-20 06:31:51 +00:00
Hiroki Sato
fb0b3eec96 www cleanup mega commit:
- Clean up XML dependency set.

 - Add "make lint" for validation.
2006-08-19 21:18:54 +00:00
Hiroki Sato
4c4a84bf16 Merge the following from doc/share/mk/doc.xml.mk:
Do not remove $XML_MIRRORS* by "make clean" when $LANGCODE=".".
2006-07-11 12:59:40 +00:00
Simon L. B. Nielsen
deee4063fe Add a make variable WITH_WWW_FREEBSD_ORG_BASE which overrides the base
variable to point to http://www.FreeBSD.org/ - This is very useful for
when you e.g. are building part of the website, like we do for
http://security.FreeBSD.org/, and do not want broken links.

This knob only works for SGML files, which is enough for what I need.
We do not run XML files through sed so the same hack as used for SGML
cannot be used.
2006-05-13 03:27:22 +00:00
Hiroki Sato
3f15cbb117 Remove -i option and add -wrap 90 option for tidy (in doc.docbook.mk
the -i has been removed due to bad side-effects since 2003).
2006-02-25 23:19:40 +00:00
Hiroki Sato
c2caf9e084 Make SGML_INCLUDES tunable from Makefile.
Reported by:	adamw
2005-12-31 15:19:30 +00:00
Pav Lucistnik
f2f1660708 - Define BUNZIP
- Switch to INDEX-6
2005-11-30 22:44:20 +00:00
Hiroki Sato
ee0f724aa3 Merge infrastructure part of the new www design.
Submitted by:	Emily Boyd (emilyboyd at emilyboyd dot com)
Sponsored by:	Google Summer of Code 2005
2005-10-04 17:18:41 +00:00
Hiroki Sato
b7f75b6f79 - Add XML_INCLUDES to DEPENDS.<id> only when it is needed.
- Respect XSLTPROCFLAGS.
2005-09-19 07:01:03 +00:00
Hiroki Sato
66229ed32d Add localization support for www/<lang>/usergroups.html.
- www/<lang>/share/sgml/templates.usergroups.xsl:
  customization layer for each language.

- www/<lang>/share/sgml/usergroups.xml:
  translation of www/share/sgml/usergroups.xml.  The translation teams
  can simply copy it from the language-independent directory and keep
  the translated items only; items which are not in the translated
  file are automatically inserted from the original file on the
  fly (so old items in the translated file are harmful).
2005-09-18 06:25:01 +00:00
Hiroki Sato
b05c6e03b5 Introduce doc.xml.mk and XMLDOC variable to simplify build
of XML docs.  Note that XML catalog support is still incomplete.
2005-09-18 04:33:46 +00:00
Pav Lucistnik
022732cd52 - Refine previous commit: restore preference of jade over openjade when
both are present, provide OPENJADE var for overriding

Requested by:	ceri
Approved by:	keramida (mentor)
2005-08-30 11:50:05 +00:00
Pav Lucistnik
142576dab5 - Autodetect presence of openjade's osgmlnorm. This makes docproj works
with openjade out of the box (no need for make.conf entries)

Reviewed by:	silence on -doc
Approved by:	keramida (mentor)
2005-08-23 11:12:21 +00:00
Simon L. B. Nielsen
457cbf9a78 Note that WEB_ONLY should also be defined for building without doc/
and that the result will be a partial build.

PR:		www/78239
Submitted by:	Devon H. O'Dell <dodell@offmyserver.com> (original version)
2005-03-01 23:04:59 +00:00
Giorgos Keramidas
a5b50b277e Fix a couple of comment nits. 2005-01-20 00:24:24 +00:00
Ceri Davies
0f0cc533d3 Bandaid for the removal of ports/INDEX; better solutions are welcomed. 2004-11-13 12:23:19 +00:00
Simon L. B. Nielsen
665b844d2f If /usr/bin/perl5 does not exist and /usr/local/bin/perl5 does, use
the later as fallback.
2004-06-27 14:40:04 +00:00
Hiroki Sato
64b7893d90 Add notices.xml for Errata Notices and a new section
for them on the top page.

Based on work by:	kensmith
2004-06-27 06:22:31 +00:00
Alexey Zelkin
0d6b3ca64e . Fix 'webcheck' target url generation in directories other than 'www/en'. In
these cases we get urls like 'http://www.FreeBSD.org///ru//java/', etc.
  On such urls webcheck fails immediately with 403 error code.  So, cleanup
  multiple slashes.

. Make 'checkmissing' output more compact and readable.  Avoid
  printing '===>' in case if current directory does not have anything
  to report.  Also print each missing entry on separate line to make
  output more readable.
2004-04-12 11:52:38 +00:00
Alexey Zelkin
7e7c9ca7be . Fix 'make spellcheck' to take generated html files from ${.OBJDIR}
instead of ${.CURDIR}

. Add 'obj' target depending on _PROGSUBDIR, so 'make obj' for web tree
  is processed recursively for SUBDIRs

. Remove 'cleandir' target.  bsd.obj.mk declares it unconditionally and
  it does absolutely same things.  Removing of target from this makefile
  reduces spawning of ${MAKE} by factor *6* when called from 'www/en'
  directory!
2004-04-09 10:15:19 +00:00
Alexey Zelkin
ba9fb293d1 Huh! Fix a bogon introduced by previous revision. In !TIDY_VERBOSE
case use correct variable name for default tidy logfile (/dev/null).

Submitted by:	Rudolf Cejka <cejkar at fit.vutbr.cz>
2004-04-08 09:43:04 +00:00
Alexey Zelkin
da54502904 Implement TIDY_VERBOSE knob. It tells tidy to save error log into file
named 'tidyerr.$filename', instead of default /dev/null.
2004-04-07 13:04:55 +00:00
Alexey Zelkin
15d2dc0c1f Add one more special target 'checkmissing'. It supposed to process
tree and find all files/directories which are not used by Makefile's.
Found files are: forgotten or build only (these should be handled later)
2004-04-05 23:45:05 +00:00
Alexey Zelkin
285a5526cf Move webcheck target to web.site.mk. It is also re-done in relative
manner, i.e.  calling 'make webcheck' in www/ru/java directory will cause
checking hrefs under http://www.FreeBSD.org/ru/java/
2004-04-05 14:21:26 +00:00
Alexey Zelkin
1150235fc0 Restyle web.site.mk a bit:
. Move variable declarations from suffix transformation declaration area
  to appropriate place
. Move spellcheck target to place where it belongs
. Fix/add some comments
2004-04-05 14:19:17 +00:00
Alexey Zelkin
df467b1589 Cleanup web.site.mk for different leftovers.
. remove unused (ever used?) docb -> html suffix transformation rule

. remove long time unused ${LOCAL}.  It's handled with ${DATA} now.

. extend comment to be more clear

. fail build if ORPHANS check failed.  I.e. fail as early as possible.

. remove DIRS_TO_CLEAN related workaround (unused since 2001)

. rewrite "cleandir" target to be more consistent with /usr/share/mk

. remove DOCSUBDIR related logic.  Last consumer of this logic (www/zh/FAQ)
  was converted to use new methods, so no need to leave this spam

PS: It removes more than 30% of actual logic of this makefile
2004-03-23 23:25:57 +00:00
Alex Dupre
868770ec6f Enhance support for localized navigation menu.
Approved by:	josef, blackend (mentor)
2004-02-01 22:56:56 +00:00
Josef El-Rayes
b0c3856a5f Remove plain html navigation and replace it with xml/xslt based navigation
So navigation is now maintained through navigation.xml.
This makes adding links very simple now.

Approved by:    simon(mentor)
	        trhodes
2004-02-01 00:02:58 +00:00
Hiroki Sato
925e309a67 Improve transtable.{xml,xsl}, including:
- The structure of transtable.xml is revised.  <word> should be
   bracketed with <group>.

 - A sorting order of the FreeBSD mirror sites rendered using
   mirrors.xml has been determined by sort(1).

 - A template "transtable-lookup" has been added for localization on
   word-by-word basis.

 - Replace English month names in news.xml, press.xml, and
   advisories.xml with numbers that correspond to the names.
   The number->name translation is performed on the fly.

 - Since information in mirrors.xml is used in www/ tree, it depends on
   doc/ tree now.  When WITHOUT_DOC is defined it can be built without
   doc/ tree, but some information becomes unavailable.  For example,
   a list of the mirror sites generated in index.html becomes a dummy
   one, and calling "transtable-lookup" with a word returns the word
   itself.

Neither www/ nor doc/ build should be broken due to this commit, but
until the necessary changes are applied in the localized directories,
the transtable does not work; it simply generates non-localized contents
even if transtable.xsl is used.
2004-01-12 21:27:01 +00:00
Hiroki Sato
810e0c7c6a Remove --nonet. It breaks www/en/gnome. 2003-11-25 15:12:42 +00:00
Hiroki Sato
c1cc8a1352 Add refinements on mirrors.xml:
- add doc.common.mk, which defines variables, targets, and
   dependencies commonly used in www/ and doc/.

 - move www/<lang>/includes.xsl to the language independent
   directory and split into several files.

 - add transtable*.xsl and transtable.xml to support localized
   mirror names.

 - make doc/{en_US.ISO8859-1,ja_JP.eucJP}/books/handbook/ use
   mirrors.xml (mirrors and eresources).

 - make www/{en,ja}/index.xsl use mirrors.xml.

For details, please see doc/share/sgml/README.mirrors for the moment.

Reviewed by:	simon and Alex Dupre <sysadmin@alexdupre.com>
2003-11-24 18:26:35 +00:00
Hiroki Sato
f19f8b9c34 Move lists of FreeBSD mirror sites to doc/share/sgml/mirrors.xml
(currently en_US.ISO8859-1/books/handbook/mirrors and
www/en/index.xsl use it).

Reviewed by:	simon
Discussed on:	-doc
2003-11-16 18:56:24 +00:00
Alexey Zelkin
262bfec46d Deja-vu...
Uncomment NO_SUBDIR to make my previous commit really working.
2003-06-24 10:24:59 +00:00
Alexey Zelkin
81bbb0a0ed Unconditionally set 'NO_SUBDIR' define.
web.site.mk includes bsd.subdir.mk via bsd.obj.mk which is responsible
for processing of 'SUBDIR' make variable.  But since we are handling
'SUBDIR' here explicitly, doing same thing (second time!) via
bsd.subdir.mk's rules makes no sense and only adds disk IO overhead.

Some numbers... (for 'make -DENGLISH_ONLY -DWEB_ONLY' in www/en):

[before]
$ grep ^=== out.make | wc -l
     272
$ grep ^=== out.make | sort -u | wc -l
      78

[after]
$ grep ^=== out.make | wc -l
      78
2003-05-11 21:24:42 +00:00
Murray Stokely
f453ad1c02 Properly use the FreeBSD lexicon file as a personal dictionary and use
w3m rather than links to dump the formatted HTML output to text.
2003-04-20 21:03:24 +00:00
Tom Rhodes
6f8588094f Change website output from HTML to XHTML.
Briefly Discussed with: murray
2002-08-07 03:17:10 +00:00
Murray Stokely
6a653235e7 Add a spellcheck target. Currently, this only works for english, but
making this language neutral should be trivial.
2002-03-13 13:09:45 +00:00
Alexey Zelkin
66e0a1cacf Force tidy(1) to use '-raw' and newly added '-preserve' options
to process generated HTML. This not cause any side effects except
leaving some character entities in their numeric form instead
converting them into alphabetical notation (&#60; instead of &lt;),
but since all browsers understand such cases it is not a problem.

This commit should make all translations tidy clean, since
tidy should not arise entities conversion problem as it did
for long time before. Therefore all occurences of manual settings
of TIDYFLAGS and NO_TIDY declarations for translations are removed.

Also clean *OPTS/*FLAGS variables declaration like it was done in doc/ tree
some time ago. Currently all local additions to commands parameters that used
in make process should be passed thru *FLAGS variables. All variables
with OPTS suffix are reserved for internal use of web.site.mk now.
Cleanup part is based on work done by Cyrille Lefevre <clefevre-lists@noos.fr>

No objections from: -doc
Requested by: Russian and Japanese translation teams
2001-12-12 11:57:44 +00:00
Alexey Zelkin
65cb93e520 Always set NO_TIDY to YES until tidy(1) problem will be resolved. 2001-11-12 19:17:39 +00:00
Hiroki Sato
634274d542 Fix malformed build process of www/ again.
The workaround in the previous commit is wrong.  Sorry.
2001-10-30 16:51:34 +00:00
Hiroki Sato
b1c273e670 Fix breakage of www/ building process. 2001-10-30 15:09:13 +00:00
Murray Stokely
0d8e79bd0c * Make build/install of www /usr/obj prefix clean.
* Use make variables instead of hard coding commands, paths, and
  options.
* Wrap some long lines.
* Replace shell loops with make for loops, etc.

PR:		docs/31132
Submitted by:	Cyrille Lefevre <clefevre@citeweb.net>
2001-10-29 10:14:33 +00:00