Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mobile] Add new page to list features mentioned per group #511

Merged
merged 1 commit into from
Sep 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion js/generate-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,11 @@ const createMentionCell = function (column, refId, featureName, specInfo, implIn
cell.innerHTML = featureName;
}
pages.forEach((page, pos) => {
const localizedUrl = ((lang === 'en') ? page.url :
page.url.replace(/\.([^\.]+)$/, '.' + lang + '.$1'));
cell.innerHTML += ((pos > 0 || featureName) ? '<br/>' : '') +
seeLabel.replace('%page',
'<a href="' + page.url + '">' + page.title + '</a>');
'<a href="' + localizedUrl + '">' + page.title + '</a>');
});
cell.classList.add('mention');
return cell;
Expand Down
8 changes: 8 additions & 0 deletions js/template-groups.zh.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div id="intro">
<p>
This page summarizes groups mentioned throughout this document's pages, along with the name of the specifications and features that these groups are (or were) responsible for. Please refer to individual pages for details about the relevance and status of each work.
</p>
</div>
<section id="table">
<h2>List of groups</h2>
</section>
2 changes: 1 addition & 1 deletion mobile/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h1>About this document</h1>
<h2>Change History</h2>
<section>
<h3>September 2020</h3>
<p>The <a href="https://www.w3.org/2020/09/web-roadmaps/mobile/">September 2020</a> snapshot adds new W3C community groups incubations, new W3C working group deliverables, and refreshes the status of other specifications. Changes made since the November 2019 snapshot:</p>
<p>The <a href="https://www.w3.org/2020/09/web-roadmaps/mobile/">September 2020</a> snapshot adds new W3C community groups incubations, new W3C working group deliverables, and refreshes the status of other specifications. The snapshot also features a new <a href="groups.html">groups page</a> that summarizes the list of groups, specifications and mentions that appear throughout the roadmap. Changes made to individual pages since the November 2019 snapshot:</p>
<dl>
<dt>Exploratory work</dt>
<dd><ul>
Expand Down
14 changes: 14 additions & 0 deletions mobile/groups.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>List of relevant groups</title>
</head>
<body>
<header>
<h1>List of relevant groups</h1>
</header>
<main data-contents="groups"></main>
<script src="../js/generate.js"></script>
</body>
</html>
14 changes: 14 additions & 0 deletions mobile/groups.zh.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<title>List of relevant groups</title>
</head>
<body>
<header>
<h1>List of relevant groups</h1>
</header>
<main data-contents="groups"></main>
<script src="../js/generate.js"></script>
</body>
</html>