Skip to content

Commit 1e928df

Browse files
authored
Merge pull request #388 from sourcelair/issue-#366
Update documentation with cleaner license declaration
2 parents db9bec0 + 1d30091 commit 1e928df

15 files changed

Lines changed: 51 additions & 113 deletions

File tree

jsdoc.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
{
22
"source": {
33
"include": [
4-
"src/xterm.js",
5-
"src/handlers/Clipboard.js",
6-
"addons/attach/attach.js",
7-
"addons/fit/fit.js",
8-
"addons/fullscreen/fullscreen.js",
9-
"addons/linkify/linkify.js"
10-
]
4+
"src/"
5+
],
6+
"exclude": [
7+
"src/test/"
8+
],
9+
"excludePattern": "src/.+\\.test\\.(js|ts)$"
1110
},
1211
"opts": {
1312
"readme": "README.md",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"express": "4.13.4",
2121
"express-ws": "2.0.0-rc.1",
2222
"glob": "^7.0.5",
23-
"jsdoc": "3.4.0",
23+
"jsdoc": "3.4.3",
2424
"mocha": "2.5.3",
2525
"nodemon": "1.10.2",
2626
"pty.js": "0.3.1",

src/CompositionHelper.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/**
2-
* xterm.js: xterm, in the browser
3-
* Copyright (c) 2014-2016, SourceLair Private Company (www.sourcelair.com (MIT License)
2+
* @license MIT
43
*/
54

65
import { ITerminal } from './Interfaces';

src/EventEmitter.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/**
2-
* xterm.js: xterm, in the browser
3-
* Copyright (c) 2014-2016, SourceLair Private Company (www.sourcelair.com (MIT License)
2+
* @license MIT
43
*/
54

65
function EventEmitter() {

src/Interfaces.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/**
2-
* xterm.js: xterm, in the browser
3-
* Copyright (c) 2014-2016, SourceLair Private Company (www.sourcelair.com (MIT License)
2+
* @license MIT
43
*/
54

65
export interface ITerminal {

src/Viewport.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/**
2-
* xterm.js: xterm, in the browser
3-
* Copyright (c) 2014-2016, SourceLair Private Company (www.sourcelair.com (MIT License)
2+
* @license MIT
43
*/
54

65
import { ITerminal } from './Interfaces';

src/addons/attach/attach.js

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
/*
2-
* Implements the attach method, that
3-
* attaches the terminal to a WebSocket stream.
4-
*
5-
* The bidirectional argument indicates, whether the terminal should
6-
* send data to the socket as well and is true, by default.
1+
/**
2+
* Implements the attach method, that attaches the terminal to a WebSocket stream.
3+
* @module xterm/addons/attach/attach
4+
* @license MIT
75
*/
86

97
(function (attach) {
@@ -26,12 +24,6 @@
2624
})(function (Xterm) {
2725
'use strict';
2826

29-
/**
30-
* This module provides methods for attaching a terminal to a WebSocket
31-
* stream.
32-
*
33-
* @module xterm/addons/attach/attach
34-
*/
3527
var exports = {};
3628

3729
/**

src/addons/fit/fit.js

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
/*
2-
* Fit terminal columns and rows to the dimensions of its
3-
* DOM element.
1+
/**
2+
* Fit terminal columns and rows to the dimensions of its DOM element.
43
*
5-
* Approach:
6-
* - Rows: Truncate the division of the terminal parent element height
7-
* by the terminal row height
4+
* ## Approach
5+
* - Rows: Truncate the division of the terminal parent element height by the terminal row height.
86
*
9-
* - Columns: Truncate the division of the terminal parent element width by
10-
* the terminal character width (apply display: inline at the
11-
* terminal row and truncate its width with the current number
12-
* of columns)
7+
* - Columns: Truncate the division of the terminal parent element width by the terminal character
8+
* width (apply display: inline at the terminal row and truncate its width with the current
9+
* number of columns).
10+
* @module xterm/addons/fit/fit
11+
* @license MIT
1312
*/
13+
1414
(function (fit) {
1515
if (typeof exports === 'object' && typeof module === 'object') {
1616
/*
@@ -29,11 +29,6 @@
2929
fit(window.Terminal);
3030
}
3131
})(function (Xterm) {
32-
/**
33-
* This module provides methods for fitting a terminal's size to a parent container.
34-
*
35-
* @module xterm/addons/fit/fit
36-
*/
3732
var exports = {};
3833

3934
exports.proposeGeometry = function (term) {

src/addons/fullscreen/fullscreen.js

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1-
/*
1+
/**
22
* Fullscreen addon for xterm.js
3-
*
4-
* Implements the toggleFullscreen function.
5-
*
6-
* If the `fullscreen` argument has been supplied, then
7-
* if it is true, the fullscreen mode gets turned on,
8-
* if it is false or null, the fullscreen mode gets turned off.
9-
*
10-
* If the `fullscreen` argument has not been supplied, the
11-
* fullscreen mode is being toggled.
3+
* @module xterm/addons/fullscreen/fullscreen
4+
* @license MIT
125
*/
136
(function (fullscreen) {
147
if (typeof exports === 'object' && typeof module === 'object') {
@@ -30,6 +23,11 @@
3023
})(function (Xterm) {
3124
var exports = {};
3225

26+
/**
27+
* Toggle the given terminal's fullscreen mode.
28+
* @param {Xterm} term - The terminal to toggle full screen mode
29+
* @param {boolean} fullscreen - Toggle fullscreen on (true) or off (false)
30+
*/
3331
exports.toggleFullScreen = function (term, fullscreen) {
3432
var fn;
3533

src/addons/linkify/linkify.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* Methods for turning URL subscrings in the terminal's content into links (`a` DOM elements).
3+
* @module xterm/addons/linkify/linkify
4+
* @license MIT
5+
*/
6+
17
(function (linkify) {
28
if (typeof exports === 'object' && typeof module === 'object') {
39
/*
@@ -18,12 +24,6 @@
1824
})(function (Xterm) {
1925
'use strict';
2026

21-
/**
22-
* This module provides methods for convertings valid URL substrings
23-
* into HTML anchor elements (links), inside a terminal view.
24-
*
25-
* @module xterm/addons/linkify/linkify
26-
*/
2727
var exports = {},
2828
protocolClause = '(https?:\\/\\/)',
2929
domainCharacterSet = '[\\da-z\\.-]+',

0 commit comments

Comments
 (0)