Hi -

After discussing the CMS migration of the OpenOffice.org site on the 
anniversary call yesterday with Carl I created a README.txt and ssi.json files 
to start the process towards a description that can be easier to fit into 
whatever new framework we choose.

The next step will be to look into:

(1) Exactly what parts of the legacy html files are extracted into which of the 
variables/tags.

(2) What template variables/tags are unused.

(3) Inventory of css.

(4) Inventory of js.
Note some scripts like google-analytics are put in via ssi and would be easy to 
modify or eliminate.
<!--#include virtual="/scripts/google-analytics.js" --> 
<!--#include virtual="/scripts/entourage.js" -->

Regards,
Dave

> On Oct 18, 2020, at 11:53 AM, w...@apache.org wrote:
> 
> Author: wave
> Date: Sun Oct 18 18:53:57 2020
> New Revision: 1882621
> 
> URL: http://svn.apache.org/viewvc?rev=1882621&view=rev
> Log:
> Preparing for a new framework. Simplify ssi into a single json and add a 
> README
> 
> Added:
>    openoffice/ooo-site/trunk/templates/README.txt
>    openoffice/ooo-site/trunk/templates/ssi.json
> 
> Added: openoffice/ooo-site/trunk/templates/README.txt
> URL: 
> http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/templates/README.txt?rev=1882621&view=auto
> ==============================================================================
> --- openoffice/ooo-site/trunk/templates/README.txt (added)
> +++ openoffice/ooo-site/trunk/templates/README.txt Sun Oct 18 18:53:57 2020
> @@ -0,0 +1,122 @@
> +Some thoughts and documentation.
> +
> +(1) SSI within the templates and produced html remains a good idea.
> +
> +(2) SSI directory structure could be replaced could be replaced by a json 
> file.
> +
> +- footer is always the same.
> +- doctype is always the same.
> +- home is always the same. and is not used.
> +- brand for the top of the page.
> +- topnav for the upper navigation bar.
> +- leftnav is optional and special.
> +- rightnav is optional and only used once for l10n where there is also a 
> leftnav.
> +
> +(3) ssi.json is a directory of directories.
> +
> +For each template key look up the subpath and then look for the ssi element 
> name.
> +If missing then go up a level on the subpath.
> +
> +e.g. if you are looking in "/api/some/deep/path/"
> +then you look into "/api/some/deep/", "/api/some/", "/api/", and "/"
> +
> +ssi[path][key]
> +
> +For api:
> +    "/api/": {
> +     "leftnav":"/api/leftnav.html"
> +    }
> +    "/": {
> +     "doctype":"/doctype.html",
> +     "footer":"/footer.html",
> +     "brand":"/brand.html",
> +     "topnav":"/topnav.html"
> +    }
> +
> +
> +For de:
> +    "/de/product/": {
> +     "leftnav":"/de/product/leftnav.html"
> +    }
> +    "/de/": {
> +     "brand":"/de/brand.html",
> +     "topnav":"/de/topnav.html"
> +    }
> +    "/": {
> +     "doctype":"/doctype.html",
> +     "footer":"/footer.html",
> +     "brand":"/brand.html",
> +     "topnav":"/topnav.html"
> +    }
> +
> +For xx:
> +    "/xx/why/": {
> +     "leftnav":"/xx/why/leftnav.html"
> +    }
> +    "/xx/product/": {
> +     "leftnav":"/xx/product/leftnav.html"
> +    }
> +    "/xx/": {
> +     "topnav":"/xx/topnav.html",
> +     "brand":"/xx/brand.html"
> +    }
> +    "/": {
> +     "doctype":"/doctype.html",
> +     "footer":"/footer.html",
> +     "brand":"/brand.html",
> +     "topnav":"/topnav.html"
> +    }
> +
> +(4) List of templates:
> +
> +- brand.html
> +  - brand.mdtext
> +- footer.html
> +  - footer.mdtext
> +- doctype.html
> +  - doctype.mdtext
> +- navigator.html
> +  - topnav.mdtext
> +  - leftnav.mdtext
> +  - rightnav.mdtext
> +- html_page.html
> +  - *.html
> +  - *.htm
> +  - extends skeleton.html
> +  - replaces block content with content extracted from html
> +- single_narrative.html
> +  - *.mdtext thats not already covered by above.
> +  - extends skeleton.html
> +  
> +- skeleton.html
> +  - this is the page design:
> +
> +<!--#include virtual="{{ ssi.headers.doctype }}" -->
> +<html>
> +<head>
> +<link href="/css/ooo.css" rel="stylesheet" type="text/css">
> +{% if head %}{{ head|safe }}{% else %}
> +<title>{% block title %}{{ headers.title }}{% endblock %}</title>
> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
> +{% if headers.css %}<link href="{{ headers.css }}" rel="stylesheet" 
> type="text/css">{% endif %}
> +{% endif %}
> +<!--#include virtual="/scripts/google-analytics.js" --> 
> +<!--#include virtual="/scripts/entourage.js" -->
> +</head>
> +<body{% if bodytag %} {{ bodytag|safe }}{% endif %}>
> +<!--#include virtual="{{ ssi.headers.brand }}" -->
> +  <div id="topbara">
> +    {% if ssi.headers.topnav %}<!--#include virtual="{{ ssi.headers.topnav 
> }}" -->{% endif %}
> +    <div id="breadcrumbsa">{% block breaddcrumbs %}{{ breadcrumbs|safe }}{% 
> 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>
> 
> Added: openoffice/ooo-site/trunk/templates/ssi.json
> URL: 
> http://svn.apache.org/viewvc/openoffice/ooo-site/trunk/templates/ssi.json?rev=1882621&view=auto
> ==============================================================================
> --- openoffice/ooo-site/trunk/templates/ssi.json (added)
> +++ openoffice/ooo-site/trunk/templates/ssi.json Sun Oct 18 18:53:57 2020
> @@ -0,0 +1,324 @@
> +{
> +    "/": {
> +     "doctype":"/doctype.html",
> +     "footer":"/footer.html",
> +     "brand":"/brand.html",
> +     "topnav":"/topnav.html"
> +    }
> +    "/sl/": {
> +     "brand":"/sl/brand.html",
> +     "topnav":"/sl/topnav.html"
> +    }
> +    "/sk/": {
> +     "brand":"/sk/brand.html",
> +     "topnav":"/sk/topnav.html"
> +    }
> +    "/kab/": {
> +     "brand":"/kab/brand.html",
> +     "topnav":"/kab/topnav.html"
> +    }
> +    "/pl/why/": {
> +     "leftnav":"/pl/why/leftnav.html"
> +    }
> +    "/pl/product/": {
> +     "leftnav":"/pl/product/leftnav.html"
> +    }
> +    "/pl/": {
> +     "brand":"/pl/brand.html",
> +     "topnav":"/pl/topnav.html"
> +    }
> +    "/l10n/": {
> +     "topnav":"/l10n/topnav.html",
> +     "leftnav":"/l10n/leftnav.html",
> +     "rightnav":"/l10n/rightnav.html"
> +    }
> +    "/vi/": {
> +     "brand":"/vi/brand.html",
> +     "topnav":"/vi/topnav.html"
> +    }
> +    "/sv/product/": {
> +     "leftnav":"/sv/product/leftnav.html"
> +    }
> +    "/sv/": {
> +     "brand":"/sv/brand.html",
> +     "topnav":"/sv/topnav.html"
> +    }
> +    "/he/why/": {
> +     "leftnav":"/he/why/leftnav.html"
> +    }
> +    "/he/product/": {
> +     "leftnav":"/he/product/leftnav.html"
> +    }
> +    "/he/": {
> +     "topnav":"/he/topnav.html",
> +     "brand":"/he/brand.html"
> +    }
> +    "/km/": {
> +     "brand":"/km/brand.html",
> +     "topnav":"/km/topnav.html"
> +    }
> +    "/hy/": {
> +     "brand":"/hy/brand.html",
> +     "topnav":"/hy/topnav.html"
> +    }
> +    "/why/": {
> +     "leftnav":"/why/leftnav.html"
> +    }
> +    "/am/": {
> +     "brand":"/am/brand.html",
> +     "topnav":"/am/topnav.html"
> +    }
> +    "/da/why/": {
> +     "leftnav":"/da/why/leftnav.html"
> +    }
> +    "/da/product/": {
> +     "leftnav":"/da/product/leftnav.html"
> +    }
> +    "/da/": {
> +     "brand":"/da/brand.html",
> +     "topnav":"/da/topnav.html"
> +    }
> +    "/no/why/": {
> +     "leftnav":"/no/why/leftnav.html"
> +    }
> +    "/no/product/": {
> +     "leftnav":"/no/product/leftnav.html"
> +    }
> +    "/no/": {
> +     "topnav":"/no/topnav.html",
> +     "brand":"/no/brand.html"
> +    }
> +    "/ja/": {
> +     "brand":"/ja/brand.html",
> +     "topnav":"/ja/topnav.html"
> +    }
> +    "/el/": {
> +     "brand":"/el/brand.html",
> +     "topnav":"/el/topnav.html"
> +    }
> +    "/it/": {
> +     "brand":"/it/brand.html",
> +     "topnav":"/it/topnav.html"
> +    }
> +    "/om/": {
> +     "brand":"/om/brand.html",
> +     "topnav":"/om/topnav.html"
> +    }
> +    "/ca/": {
> +     "brand":"/ca/brand.html",
> +     "topnav":"/ca/topnav.html"
> +    }
> +    "/is/": {
> +     "brand":"/is/brand.html",
> +     "topnav":"/is/topnav.html"
> +    }
> +    "/cs/": {
> +     "brand":"/cs/brand.html",
> +     "topnav":"/cs/topnav.html"
> +    }
> +    "/ru/why/": {
> +     "leftnav":"/ru/why/leftnav.html"
> +    }
> +    "/ru/": {
> +     "brand":"/ru/brand.html"
> +     "topnav":"/ru/topnav.html"
> +    }
> +    "/product/": {
> +     "leftnav":"/product/leftnav.html"
> +    }
> +    "/zh-cn/": {
> +     "brand":"/zh-cn/brand.html",
> +     "topnav":"/zh-cn/topnav.html"
> +    }
> +    "/pt/why/": {
> +     "leftnav":"/pt/why/leftnav.html"
> +    }
> +    "/pt/product/": {
> +     "leftnav":"/pt/product/leftnav.html"
> +    }
> +    "/pt/": {
> +     "topnav":"/pt/topnav.html",
> +     "brand":"/pt/brand.html"
> +    }
> +    "/zh/": {
> +     "brand":"/zh/brand.html",
> +     "topnav":"/zh/topnav.html"
> +    }
> +    "/uk/": {
> +     "brand":"/uk/brand.html",
> +     "topnav":"/uk/topnav.html"
> +    }
> +    "/sr/": {
> +     "brand":"/sr/brand.html",
> +     "topnav":"/sr/topnav.html"
> +    }
> +    "/sr-latn/why/": {
> +     "leftnav":"/sr-latn/why/leftnav.html"
> +    }
> +    "/sr-latn/product/": {
> +     "leftnav":"/sr-latn/product/leftnav.html"
> +    }
> +    "/sr-latn/": {
> +     "topnav":"/sr-latn/topnav.html",
> +     "brand":"/sr-latn/brand.html"
> +    }
> +    "/zh-tw/": {
> +     "brand":"/zh-tw/brand.html",
> +     "topnav":"/zh-tw/topnav.html"
> +    }
> +    "/ar/": {
> +     "brand":"/ar/brand.html",
> +     "topnav":"/ar/topnav.html"
> +    }
> +    "/gl/": {
> +     "brand":"/gl/brand.html",
> +     "topnav":"/gl/topnav.html"
> +    }
> +    "/pt-br/": {
> +     "brand":"/pt-br/brand.html",
> +     "topnav":"/pt-br/topnav.html"
> +    }
> +    "/hu/why/": {
> +     "leftnav":"/hu/why/leftnav.html"
> +    }
> +    "/hu/product/": {
> +     "leftnav":"/hu/product/leftnav.html"
> +    }
> +    "/hu/": {
> +     "brand":"/hu/brand.html",
> +     "topnav":"/hu/topnav.html"
> +    }
> +    "/nl/why/": {
> +     "leftnav":"/nl/why/leftnav.html"
> +    }
> +    "/nl/product/": {
> +     "leftnav":"/nl/product/leftnav.html"
> +    }
> +    "/nl/": {
> +     "brand":"/nl/brand.html",
> +     "topnav":"/nl/topnav.html"
> +    }
> +    "/bg/": {
> +     "brand":"/bg/brand.html",
> +     "topnav":"/bg/topnav.html"
> +    }
> +    "/ast/": {
> +     "brand":"/ast/brand.html",
> +     "topnav":"/ast/topnav.html"
> +    }
> +    "/af/": {
> +     "brand":"/af/brand.html",
> +     "topnav":"/af/topnav.html"
> +    }
> +    "/hi/": {
> +     "brand":"/hi/brand.html",
> +     "topnav":"/hi/topnav.html"
> +    }
> +    "/api/": {
> +     "leftnav":"/api/leftnav.html"
> +    }
> +    "/de/product/": {
> +     "leftnav":"/de/product/leftnav.html"
> +    }
> +    "/de/": {
> +     "brand":"/de/brand.html",
> +     "topnav":"/de/topnav.html"
> +    }
> +    "/gd/": {
> +     "brand":"/gd/brand.html",
> +     "topnav":"/gd/topnav.html"
> +    }
> +    "/ko/product/": {
> +     "leftnav":"/ko/product/leftnav.html"
> +    }
> +    "/ko/": {
> +     "brand":"/ko/brand.html",
> +     "topnav":"/ko/topnav.html"
> +    }
> +    "/fi/": {
> +     "brand":"/fi/brand.html",
> +     "topnav":"/fi/topnav.html"
> +    }
> +    "/fr/": {
> +     "brand":"/fr/brand.html",
> +     "topnav":"/fr/topnav.html"
> +    }
> +    "/es/producto/": {
> +     "leftnav":"/es/producto/leftnav.html"
> +    }
> +    "/es/por-que/": {
> +     "leftnav":"/es/por-que/leftnav.html"
> +    }
> +    "/es/participar/": {
> +     "leftnav":"/es/participar/leftnav.html"
> +    }
> +    "/es/noticias/": {
> +     "leftnav":"/es/noticias/leftnav.html"
> +    }
> +    "/es/": {
> +     "brand":"/es/brand.html",
> +     "topnav":"/es/topnav.html"
> +    }
> +    "/et/": {
> +     "brand":"/et/brand.html",
> +     "topnav":"/et/topnav.html"
> +    }
> +    "/lt/why/": {
> +     "leftnav":"/lt/why/leftnav.html"
> +    }
> +    "/lt/product/": {
> +     "leftnav":"/lt/product/leftnav.html"
> +    }
> +    "/lt/": {
> +     "topnav":"/lt/topnav.html",
> +     "brand":"/lt/brand.html"
> +    }
> +    "/eu/why/": {
> +     "leftnav":"/eu/why/leftnav.html"
> +    }
> +    "/eu/product/": {
> +     "leftnav":"/eu/product/leftnav.html"
> +    }
> +    "/eu/": {
> +     "brand":"/eu/brand.html",
> +     "topnav":"/eu/topnav.html"
> +    }
> +    "/sr-cyrl/why/": {
> +     "leftnav":"/sr-cyrl/why/leftnav.html"
> +    }
> +    "/sr-cyrl/product/": {
> +     "leftnav":"/sr-cyrl/product/leftnav.html"
> +    }
> +    "/sr-cyrl/": {
> +     "topnav":"/sr-cyrl/topnav.html",
> +     "brand":"/sr-cyrl/brand.html"
> +    }
> +    "/xx/why/": {
> +     "leftnav":"/xx/why/leftnav.html"
> +    }
> +    "/xx/product/": {
> +     "leftnav":"/xx/product/leftnav.html"
> +    }
> +    "/xx/": {
> +     "topnav":"/xx/topnav.html",
> +     "brand":"/xx/brand.html"
> +    }
> +    "/ta/": {
> +     "brand":"/ta/brand.html",
> +     "topnav":"/ta/topnav.html"
> +    }
> +    "/th/": {
> +     "brand":"/th/brand.html",
> +     "topnav":"/th/topnav.html"
> +    }
> +    "/tr/why/": {
> +     "leftnav":"/tr/why/leftnav.html"
> +    }
> +    "/tr/product/": {
> +     "leftnav":"/tr/product/leftnav.html"
> +    }
> +    "/tr/": {
> +     "topnav":"/tr/topnav.ehtml",
> +     "brand":"/tr/brand.html"
> +    }
> +}
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to