Skip to content

Commit 64716df

Browse files
example pages link to each other
1 parent e4d8d1e commit 64716df

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Gruntfile.js

+4
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ module.exports = function (grunt) {
290290
title: 'Index of dc.js examples',
291291
heading: 'Examples of using dc.js',
292292
description: 'An attempt to present a simple example of each chart type.',
293+
also: ['transitions', 'resizing', 'zoom'],
293294
sourceLink: 'https://github.com/dc-js/dc.js/tree/develop/<%= conf.websrc %>/examples'
294295
},
295296
files: [
@@ -304,6 +305,7 @@ module.exports = function (grunt) {
304305
heading: 'Eyeball tests for dc.js transitions',
305306
description: 'Transitions can only be tested by eye. ' +
306307
'These pages automate the transitions so they can be visually verified.',
308+
also: ['examples', 'resizing', 'zoom'],
307309
sourceLink: 'https://github.com/dc-js/dc.js/tree/develop/<%= conf.websrc %>/transitions'
308310
},
309311
files: [
@@ -321,6 +323,7 @@ module.exports = function (grunt) {
321323
'For the examples with a single chart taking up the entire window, you can add <code>?resize=viewbox</code> ' +
322324
'to the URL to test resizing the chart using the ' +
323325
'<a href="http://dc-js.github.io/dc.js/docs/html/dc.baseMixin.html#useViewBoxResizing__anchor">useViewBoxResizing</a> strategy.',
326+
also: ['examples', 'transitions', 'zoom'],
324327
sourceLink: 'https://github.com/dc-js/dc.js/tree/develop/<%= conf.websrc %>/resizing'
325328
},
326329
files: [
@@ -335,6 +338,7 @@ module.exports = function (grunt) {
335338
heading: 'Interactive test for dc.js chart zoom',
336339
description: 'It\'s hard to conceive of a way to test zoom except by trying it. ' +
337340
'So this is a substitute for automated tests in this area',
341+
also: ['examples', 'transitions', 'resizing'],
338342
sourceLink: 'https://github.com/dc-js/dc.js/tree/develop/<%= conf.websrc %>/zoom'
339343
},
340344
files: [

grunt/format-file-list.js

+2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ module.exports = function (grunt) {
1717
}
1818
rows.push(` <tr>\n${cols.join('\n')}\n </tr>`);
1919
}
20+
const alsoSee = opts.also ? `<p>Also see ${opts.also.map(cat => `<a href="../${cat}/">${cat}</a>`).join(' &ndash; ')}.</p>`: '';
2021
const body = `<table class="table">\n${rows.join('\n')}\n</table>`;
2122
return [
2223
`<html><head><title>${opts.title}</title>`,
2324
'<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css"></head>',
2425
'<body><div class="container">',
2526
`<h2>${opts.heading}</h2>`,
2627
`<p>${opts.description}</p>`,
28+
alsoSee,
2729
'<p>Contributions <a href="https://github.com/dc-js/dc.js/blob/master/CONTRIBUTING.md">welcome</a>.',
2830
`Source <a href="${opts.sourceLink}">`,
2931
'here</a>.</p>',

0 commit comments

Comments
 (0)