Skip to content

Commit

Permalink
support interface/implements tags
Browse files Browse the repository at this point in the history
  • Loading branch information
hegemonic committed Aug 11, 2014
1 parent dae2503 commit e7e3766
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@
"fires": "Fires",
"functions": "Method |||| Methods",
"globals": "Global |||| Globals",
"implementations": "Implemented by",
"implements": "Implements",
"inheritedFrom": "Inherited from",
"interfaces": "Interface |||| Interfaces",
"license": "License",
"listeners": "Listener |||| Listeners",
"listens": "Listens to",
Expand Down
3 changes: 3 additions & 0 deletions lib/enums.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ var CATEGORIES = exports.CATEGORIES = {
EXTERNALS: 'externals',
FUNCTIONS: 'functions',
GLOBALS: 'globals',
INTERFACES: 'interfaces',
LISTENERS: 'listeners',
MIXINS: 'mixins',
MODULES: 'modules',
Expand All @@ -42,6 +43,7 @@ exports.KIND_TO_CATEGORY = {
'event': CATEGORIES.EVENTS,
'external': CATEGORIES.EXTERNALS,
'function': CATEGORIES.FUNCTIONS,
'interface': CATEGORIES.INTERFACES,
'member': CATEGORIES.PROPERTIES,
'mixin': CATEGORIES.MIXINS,
'module': CATEGORIES.MODULES,
Expand All @@ -56,6 +58,7 @@ exports.KIND_TO_CATEGORY = {
exports.OUTPUT_FILE_CATEGORIES = [
CATEGORIES.CLASSES,
CATEGORIES.EXTERNALS,
CATEGORIES.INTERFACES,
CATEGORIES.MIXINS,
CATEGORIES.MODULES,
CATEGORIES.NAMESPACES
Expand Down
2 changes: 2 additions & 0 deletions views/includes/details.swig
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{% include 'lists/version.swig' %}
{% include 'lists/since.swig' %}
{% include 'lists/inherited.swig' %}
{% include 'lists/implements.swig' %}
{% include 'lists/implementations.swig' %}
{% include 'lists/mixes.swig' %}
{% include 'lists/deprecated.swig' %}
{% include 'lists/author.swig' %}
Expand Down
6 changes: 6 additions & 0 deletions views/includes/lists/implementations.swig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% import '../../macros.swig' as macros %}

{% if implementations && implementations.length %}
<dt>{{ translate('headings.implementations', implementations.length) }}</dt>
{{ macros.listItems(implementations, { needsLink: true }) }}
{% endif %}
6 changes: 6 additions & 0 deletions views/includes/lists/implements.swig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% import '../../macros.swig' as macros %}

{% if implements && implements.length %}
<dt>{{ translate('headings.implements', implements.length) }}</dt>
{{ macros.listItems(implements, { needsLink: true }) }}
{% endif %}

0 comments on commit e7e3766

Please sign in to comment.