From 8da981afcd20850196a9db5605ba24b122a1afbd Mon Sep 17 00:00:00 2001 From: srikant Date: Thu, 29 Feb 2024 19:02:51 +0530 Subject: [PATCH] Add Copyrights in docs file and revert links in js files to point to old docs Signed-off-by: srikant --- .../src/object-model/layout-dimensions.js | 4 ++-- .../common-properties-components.jsx | 6 +++--- .../sidepanel/api/sidepanel-api.jsx | 2 +- docs/css/styles.css | 16 +++++++++++++++ docs/images/DELETEME | 1 - docs/js/links-in-new-tabs.js | 20 +++++++++++++++++-- 6 files changed, 40 insertions(+), 9 deletions(-) delete mode 100644 docs/images/DELETEME diff --git a/canvas_modules/common-canvas/src/object-model/layout-dimensions.js b/canvas_modules/common-canvas/src/object-model/layout-dimensions.js index 73d4e37600..553198037f 100644 --- a/canvas_modules/common-canvas/src/object-model/layout-dimensions.js +++ b/canvas_modules/common-canvas/src/object-model/layout-dimensions.js @@ -73,7 +73,7 @@ const portsHorizontalDefaultLayout = { labelAllowReturnKey: false, // true allows line feed to be inserted into label, "save" to make the return key save the label. // An array of decorations to be applied to the node. For details see: - // https://github.com/elyra-ai/canvas/tree/main/guide/2.4.2-Decoration-Specification.md + // https://github.com/elyra-ai/canvas/wiki/2.4.2-Decoration-Specification // These are added to the node at run time and will not be saved into // the pipeline flow. decorations: [], @@ -488,7 +488,7 @@ const portsVerticalDefaultLayout = { labelAllowReturnKey: false, // true allows line feed to be inserted into label, "save" to make the return key save the label. // An array of decorations to be applied to the node. For details see: - // https://github.com/elyra-ai/canvas/tree/main/guide/2.4.2-Decoration-Specification.md + // https://github.com/elyra-ai/canvas/wiki/2.4.2-Decoration-Specification // These are added to the node at run time and will not be saved into // the pipeline flow. decorations: [], diff --git a/canvas_modules/harness/src/client/components/common-properties-components.jsx b/canvas_modules/harness/src/client/components/common-properties-components.jsx index be1982e023..4327663759 100644 --- a/canvas_modules/harness/src/client/components/common-properties-components.jsx +++ b/canvas_modules/harness/src/client/components/common-properties-components.jsx @@ -525,7 +525,7 @@ class CommonPropertiesComponents extends React.Component { to Custom and rightFlyout set to true. Below is the minimum specifications to render CommonProperties. More options and details are listed in the  Common Properties wiki . @@ -548,7 +548,7 @@ class CommonPropertiesComponents extends React.Component {

For more information with using CommonCanvas right-flyout for the properties editor, refer to the documentation in the  Common Properties wiki @@ -2123,7 +2123,7 @@ class CommonPropertiesComponents extends React.Component { to More than ten fields... This placeholder text can be configured through   custom labels.

diff --git a/canvas_modules/harness/src/client/components/sidepanel/api/sidepanel-api.jsx b/canvas_modules/harness/src/client/components/sidepanel/api/sidepanel-api.jsx index 033c3fe939..895a188b5a 100644 --- a/canvas_modules/harness/src/client/components/sidepanel/api/sidepanel-api.jsx +++ b/canvas_modules/harness/src/client/components/sidepanel/api/sidepanel-api.jsx @@ -476,7 +476,7 @@ export default class SidePanelAPI extends React.Component { if (this.state.appendLink) { messageLink = (
- Visit Common Canvas Wiki! + Visit Common Canvas Wiki!
); } diff --git a/docs/css/styles.css b/docs/css/styles.css index 675155171d..837e31c9c6 100644 --- a/docs/css/styles.css +++ b/docs/css/styles.css @@ -1,3 +1,19 @@ +/* + * Copyright 2017-2023 Elyra Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + th { font-weight: bold; } diff --git a/docs/images/DELETEME b/docs/images/DELETEME deleted file mode 100644 index 0fa15e4e80..0000000000 --- a/docs/images/DELETEME +++ /dev/null @@ -1 +0,0 @@ -Images for the guide go here. \ No newline at end of file diff --git a/docs/js/links-in-new-tabs.js b/docs/js/links-in-new-tabs.js index f269f65134..c3cd713bd0 100644 --- a/docs/js/links-in-new-tabs.js +++ b/docs/js/links-in-new-tabs.js @@ -1,9 +1,25 @@ +/* + * Copyright 2017-2023 Elyra Authors + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // This takes any external links and adds _blank to make sure they open in a new tab. Links to other // pages within the documentation will remain in the same tab // Source: https://stackoverflow.com/questions/4425198/can-i-create-links-with-target-blank-in-markdown#answer-4425214 -var links = document.links; -for (var i = 0, linksLength = links.length; i < linksLength; i++) { +const links = document.links; +for (let i = 0, linksLength = links.length; i < linksLength; i++) { if (links[i].hostname != window.location.hostname) { links[i].target = '_blank'; }