Skip to content

Commit

Permalink
Add Copyrights in docs file and revert links in js files to point to …
Browse files Browse the repository at this point in the history
…old docs

Signed-off-by: srikant <[email protected]>
  • Loading branch information
srikant-ch5 committed Feb 29, 2024
1 parent 9df99fd commit 8da981a
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: [],
Expand Down Expand Up @@ -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: [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ class CommonPropertiesComponents extends React.Component {
to <span className="harness-highlight">Custom</span> and <span className="harness-highlight">rightFlyout</span> set to true.
Below is the minimum specifications to render CommonProperties. More options and details are listed in the&nbsp;
<a className="harness-properties-documentation-page-intro-link"
href={"https://github.com/elyra-ai/canvas/tree/main/guide/3.0-Common-properties-documentation.md"}
href={"https://github.com/elyra-ai/canvas/wiki/3.0-Common-properties-documentation"}
>
Common Properties wiki
</a>.
Expand All @@ -548,7 +548,7 @@ class CommonPropertiesComponents extends React.Component {
</pre>
<p>For more information with using CommonCanvas right-flyout for the properties editor, refer to the documentation in the&nbsp;
<a className="harness-properties-documentation-page-intro-link"
href={"https://github.com/elyra-ai/canvas/tree/main/guide/3.0-Common-properties-documentation.md" +
href={"https://github.com/elyra-ai/canvas/wiki/3.0-Common-properties-documentation" +
"#using-commonproperties-documentation-in-commoncanvas-right-flyout-panel"}
>
Common Properties wiki
Expand Down Expand Up @@ -2123,7 +2123,7 @@ class CommonPropertiesComponents extends React.Component {
to <span className="harness-highlight">More than ten fields...</span> This placeholder text can be configured through
&nbsp;
<a className="harness-properties-documentation-page-intro-link"
href="https://github.com/elyra-ai/canvas/tree/main/guide/3.0-Common-Properties-documentation#step-3--display-the-properties-editor.md"
href="https://github.com/elyra-ai/canvas/wiki/3.0-Common-Properties-documentation#step-3--display-the-properties-editor"
>custom labels</a>.
</p>
<div className="harness-section-row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ export default class SidePanelAPI extends React.Component {

if (this.state.appendLink) {
messageLink = (<div>
<a href="https://github.com/elyra-ai/canvas/tree/main/guide/2.0-Common-Canvas-Documentation.md" target="_blank">Visit Common Canvas Wiki!</a>
<a href="https://github.com/elyra-ai/canvas/wiki/2.0-Common-Canvas-Documentation" target="_blank">Visit Common Canvas Wiki!</a>
</div>);
}

Expand Down
16 changes: 16 additions & 0 deletions docs/css/styles.css
Original file line number Diff line number Diff line change
@@ -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;
}
Expand Down
1 change: 0 additions & 1 deletion docs/images/DELETEME

This file was deleted.

20 changes: 18 additions & 2 deletions docs/js/links-in-new-tabs.js
Original file line number Diff line number Diff line change
@@ -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';
}
Expand Down

0 comments on commit 8da981a

Please sign in to comment.