w3c/web-roadmaps

Name: web-roadmaps

Owner: World Wide Web Consortium

Description: Framework for Web technology roadmaps

Created: 2015-07-08 16:46:37.0

Updated: 2018-01-08 08:40:10.0

Pushed: 2018-01-10 01:04:54.0

Homepage: https://w3c.github.io/web-roadmaps/

Size: 1278

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Framework for Web technology roadmaps

This repository hosts a framework to present roadmaps of ongoing and future Web technologies.

It aims at simplifying the creation and maintenance of such roadmaps by collecting automatically information about standardization and implementation status of features described in W3C specifications and others.

Available roadmaps
Table of contents
Overview of the framework

A roadmap is defined here as a collection of features that make up a consistent set of technologies used to build a particular type of applications (e.g. media applications, games) or to promote a particular aspect of application development (e.g. security). Each feature is described in prose to explain its relevance to the theme of the roadmap. From that prose, the framework generates tables (one per section) summarizing the standardization and implementation status of the specification(s) that define(s) the said feature.

A given roadmap is expected to contain one or more of the following sections describing the high-level status of the features described in the section:

Multiple roadmaps can be associated in a single multi-page roadmap with a front index page that links to individual roadmap pages. The framework generates a navigation menu in each individual roadmap page to navigate between them.

In short, the goal of the framework is to allow roadmap authors to focus on the prose that describes features that compose the roadmap, the framework taking care of adding implementation data for each feature that composes the roadmap and of formatting the result, including providing means for users to navigate between pages.

While the pages are generated dynamically in the browser, it is likely preferable to publish exported versions of the roadmaps since the framework has not been optimized for performance.

Adding a feature to a roadmap

A feature is roughly speaking a piece of technology that the target audience of the document would recognize as something they need to build the product they are interested in.

For the 3 first categories of features described above, a feature comes with one or more specifications that covers it. The process to add a feature to a roadmap or add a specification to an existing feature is as follows:

JSON format for describing specifications

Each specification is described by a JSON object that will allow retrieving information about the standardization status of the spec and its level of implementation in browsers.

That JSON object is stored in a file in the data directory, whose name is then used to refer to the said specification from relevant features.

Depending on the advancement of the underlying specification, the JSON object can have the following properties:

Here is an example of a JSON file that describes the “Intersection Observer” specification:


R": "https://www.w3.org/TR/intersection-observer/",
mpl": {
"caniuse": "intersectionobserver",
"chromestatus": 5695342691483648,
"webkitstatus": "specification-intersection-observer",
"edgestatus": "Intersection Observer"

olyfills": [
{
  "label": "Polyfill.io",
  "url": "https://polyfill.io/v2/docs/features/#IntersectionObserver"
}


If you would like to state that a particular feature is implemented in Chrome, under development in Firefox, and being considered in Edge, you would add:


R": "...",
mpl": {
"caniuse": "...",
"other": {
  "chrome": "shipped",
  "firefox": "indevelopment",
  "edge": "consideration"
}


Creating a new roadmap page or a new single-page roadmap

Start from the following template

CTYPE html>
l lang="en">
ead>
<meta charset="utf-8">
<title>Title of the roadmap</title>
head>
ody>
<header>
  <h1>Title of the roadmap</h1>
  <p>Description of the scope of the roadmap and to whom it matters</p>
</header>
<main>
  <section class="featureset well-deployed">
    <h2>Well-deployed technologies</h2>
  </section>
  <section class="featureset in-progress">
    <h2>Specifications in progress</h2>
  </section>
  <section class="featureset exploratory-work">
    <h2>Exploratory work</h2>
  </section>
  <section class="not-covered">
    <h2>Features not covered by ongoing work</h2>
    <dl>
      <dt></dt>
      <dd></dd>
    </dl>
  </section>
  <section class="discontinued">
    <h2>Discontinued features</h2>
    <dl>
      <dt></dt>
      <dd></dd>
    </dl>
  </section>
</main>
<script src="../js/generate.js"></script>
body>
ml>

If adding to an existing roadmap, you should also edit the toc.json file to add a link to that new page.

For a new single page roadmap, you also need to create a toc.json file as described below.

Creating the index of a new multi-page roadmap

If you want to divide your roadmap as a multipage document, you also need to create an index page and a JSON file listing the various sub-pages.

The template for the index page is as follows:

ctype html>
l lang="en">
ead>
<meta charset="utf-8">
<title>Title of the roadmap</title>
head>
ody>
<header>
  <h1>Title of roadmap</h1>
  <p>Introduction of roadmap scope</p>
</header>
body>
cript src="../js/generate.js"></script>
ml>

The template for the JSON file listing sub-pages is as follows:


itle": "Title of the Roadmap",
iscourse": {
"category": "Category of the discourse instance where to post suggestions for new feature (leave empty if none)",
"url": "https://discourse.wicg.io/"

ages": [
{
  "url": "subpage.html",
  "title": "Title of the subpage",
  "icon": "https://.../icon/to/use/in/the/index/page",
  "description": "One line description of the scope of the subpage"
}


Repository branches

The source of the roadmaps is in the master branch. This is the default branch of the repository, and the branch against which you should be sending pull requests. Whenever content is pushed onto the master branch, a Travis script will run, fetch information and implementation data for all features listed in data, and eventually update the gh-pages branch accordingly.

The gh-pages branch is the branch published on https://w3c.github.io/web-roadmaps/.

If you would like to visualize the contents of a roadmap locally as it would appear on the published version, you will need to:

  1. Run the Makefile to update information and implementation data. This should generate specs/tr.json and specs/impl.json files. Note you'll need Python 2.7 (and a few other libraries) for that to work.
  2. Serve the root folder of the repository over HTTP (any HTTP server should work). In particular, opening the file directly with your Web browser will not work because the JavaScript code needs to send cross origin requests, which are not supported for file:// URLs.
Translating a roadmap

Note (January 2018): this part should be mostly stable now, but it may still evolve based on practical experience with translating roadmaps.

The translator needs to provide:

To maintain translations over time, it is wise to use Git tags to create snapshots of a roadmap whenever a significant update is needed. Maintaining the translation then becomes a matter of comparing the latest snapshot with the previous one. The translator can retrieve the ZIP that contains the HTML files to translate from GitHub.

Translating HTML pages

That is the main content that needs to be translated. A few recommendations:

Creating a translations.xx.json file

The js/translations.xx.json file, where xx is the BCP47 language code, needs to contain the translations of all specification titles, group names, feature names and other labels used within the roadmaps that need to be translated. This file is common to all roadmaps. It should respect the following structure:


ections": {
"well-deployed": "",
"in-progress": "",
"exploratory-work": "",
"not-covered": "",
"discontinued": ""

olumns": {
"feature": "",
"spec": "",
"group": "",
"maturity": "",
"impl": "",
"implintents": "",
"versions": ""

mplstatus": {
"shipped": "",
"experimental": "",
"indevelopment": "",
"consideration": ""

abels": {
"N/A": "",
"%feature in %spec": "",
"Polyfills": "",
"Home": ""

roups": {
"CSS Working Group": "",
"...": ""

pecifications": {
"CSS Animations": "",
"...": ""

eatures": {
"audio element": "",
"picture element": "",
"...": ""


The translations of section titles (sections), table columns headers (columns), implementation status (implstatus) and labels (labels) are required. Translations of group names, specification titles and feature names are optional, although recommended. The framework will default to English when a translation is missing.

Note the framework will also write the English version of specification titles and of group names next to their translations in the generated tables, because the English version is often used when referring to specs and groups in Web pages, regardless of the language of the page.

Translating the toc.json file

Create a toc.xx.json file that follows the same structure as the toc.json file. The contents of the localized version will overwrite the same content in the toc.json. You do not need to duplicate content that does not need to change. For instance, in the following translation in French of the example JSON file listing sub-pages that appears earlier in this document, note that the URL of the Discourse instance and the URL and icon of the subpage have not been duplicated in the localized file:


itle": "Le titre de la feuille de route",
iscourse": {
"category": "Ma catégorie",

ages": [
{
  "title": "Titre de la sous-page",
  "description": "Une courte description de la sous-page"
}


List translations in the toc.json file

To add links between translations in the footer of each page, the framework needs to know which translations are available. You should add the list in a translations key in the toc.json file, for instance:


itle": "Title of the Roadmap",
iscourse": {...},
ages": [...],
ranslations": [
{
  "title": "Français",
  "lang": "fr"
},
{
  "title": "English",
  "lang": "en"
},
{
  "title": "??",
  "lang": "zh""
}


The list of translations only needs to appear in the toc.json file, and does not need to appear in the localized toc.xx.json files.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.