incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Fisher <dave2w...@comcast.net>
Subject Re: Doctype of websites
Date Wed, 21 Mar 2012 22:32:37 GMT

On Mar 21, 2012, at 2:47 PM, Regina Henschel wrote:

> Hi Dave,
> 
> Dave Fisher schrieb:
> [..]
>> 
>> I am happy to report that the site doctype is now html5 and that
>> various minor issues with the site template were fixed.
>> 
>> I implemented the doctype using an SSI. If necessary any first level
>> folder in the site can theoretically have a special type. Doing so
>> might cause trouble with the site template, but ...
> 
> How do I use that?

You probably ought to do direct work with a local copy of the ooo-site. Using the bookmarklet
you should do the template work first.

See http://incubator.apache.org/openofficeorg/website-local.html

The api folder is a good candidate because it already has alternative ssi setup.

(1) File to create from a copy:

cd ooo/ooo-site/trunk/content/api
cp ../doctype.mdtext .

edit doctype.mdtext

Change "html" to perhaps: HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"

(2) Files to modify:

cd ooo/ooo-site/trunk/templates/api/ssi.mdtext

edit ssi.mdtext

Change /doctype.html to /api/doctype.html

(3) The doctype template should not need to be modified, but here it is:

ooo/ooo-site/trunk/templates/doctype.html
<!DOCTYPE {{ headers.doctype }}>

(4) The skeleton that shows how all the ssi go are pulled in is:

ooo/ooo-site/trunk/templates/skeleton.html

<!--#include virtual="{{ ssi.headers.doctype }}" -->
<html>
<head>
<link href="/css/ooo.css" rel="stylesheet" type="text/css">
{% if header %}
{% autoescape off %}{{ header }}{% endautoescape %}{% else %}
<title>{% block title %}{{ headers.title }}{% endblock %}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
{% endif %}
</head>
<body>
<!--#include virtual="{{ ssi.headers.brand }}" -->
  <div id="topbara">
    {% if ssi.headers.topnav %}<!--#include virtual="{{ ssi.headers.topnav }}" -->{%
endif %}
    <div id="breadcrumbsa">{% block breaddcrumbs %}{% autoescape off %}{{ breadcrumbs
}}{% endautoescape %}{% endblock %}</div>
  </div>
  <div id="clear"></div>
  {% if ssi.headers.leftnav %}<!--#include virtual="{{ ssi.headers.leftnav }}" -->{%
endif %}
  {% if ssi.headers.rightnav %}<!--#include virtual="{{ ssi.headers.rightnav }}" -->{%
endif %}
  <div id="content">
    {% block legacy %}{% if ssi.headers.legacy %}<div class="legacy">{{ ssi.headers.legacy
}}</div>{% endif %}{% endblock %}
    {% block title %}{% if headers.title %}<h1 class="title">{{ headers.title }}</h1>{%
endif %}{% endblock %}
    {% block content %}{{ content|markdown }}{% endblock %}
  </div>

<!--#include virtual="{{ ssi.headers.footer }}" -->

</body>
</html>

Regards,
Dave

> 
> 
> Kind regards
> Regina


Mime
View raw message