From 3d7ddb26bff5931dfd3382dfe3bfabd7acd3bee4 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Tue, 31 May 2011 15:25:21 +0200 Subject: [PATCH] jsdoc template: allow optional naming of symbols in the package list and name '_global_' -> 'global paper scope' --- build/jsdoc-toolkit/templates/jsdoc/classLayout.js | 2 +- build/jsdoc-toolkit/templates/jsdoc/publish.js | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/build/jsdoc-toolkit/templates/jsdoc/classLayout.js b/build/jsdoc-toolkit/templates/jsdoc/classLayout.js index d7f95f97..636fc825 100644 --- a/build/jsdoc-toolkit/templates/jsdoc/classLayout.js +++ b/build/jsdoc-toolkit/templates/jsdoc/classLayout.js @@ -1,5 +1,5 @@ var classLayout = { - 'Paper.js': ['global'], + 'Paper.js': ['global paper scope:_global_'], 'Basic Types': ['Point', 'Size', 'Rectangle', 'Matrix'], 'Items': ['Item', 'Layer', 'Group', 'Raster', 'PlacedSymbol'], 'Paths': ['Path', 'CompoundPath', 'Segment', 'Curve', 'PathStyle', 'ruler', diff --git a/build/jsdoc-toolkit/templates/jsdoc/publish.js b/build/jsdoc-toolkit/templates/jsdoc/publish.js index 70f16049..8852c1ba 100644 --- a/build/jsdoc-toolkit/templates/jsdoc/publish.js +++ b/build/jsdoc-toolkit/templates/jsdoc/publish.js @@ -222,7 +222,13 @@ var Utils = { return out; } function getLink(name) { - return '
  • ' + name + '
  • '; + var link = name; + if (name.indexOf(':') > 0) { + var names = name.split(':'); + name = names[0]; + link = names[1]; + } + return '
  • ' + name + '
  • '; } function getRuler() {