-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elyra Canvas Documentation using mkdocs #1702
Conversation
Signed-off-by: Paul-Kawalkowski <[email protected]>
Signed-off-by: srikant <[email protected]>
Hi @matthoward366 Please review above setup for new Elyra Canvas Documentation |
@srikant-ch5 Is there a way I can test this out locally? |
Hi @matthoward366 Yes you can run this using command mkdocs serve . |
@matthoward366
@srikant-ch5 Can you add this info to the Read me? |
Signed-off-by: srikant <[email protected]>
Hi @tomlyn . Sure, I have added above instructions in Readme. |
mkdocs.yml
Outdated
edit_uri: edit/main/guide/ | ||
|
||
# Documentation and theme | ||
copyright: 'Copyright © 2023 IBM Watson Team, an open source project and all are welcome to contribute!<br> Maintained by the SPSS Modeler Team' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update year to 2024. Maintained by the elyra canvas Team.
mkdocs.yml
Outdated
@@ -0,0 +1,80 @@ | |||
site_name: Elyra Guide |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be Elyra Canvas Guide
guide/5.0-Styling.md
Outdated
|
||
### 3rd party styling | ||
|
||
If you are using the expression builder in common-properties then also include these libraries: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove lines 44-47 -
If you are using the expression builder in common-properties then also include these libraries:
codemirror/addon/hint/show-hint.css
codemirror/lib/codemirror.css
Signed-off-by: srikant <[email protected]>
Hi @nmgokhale Thanks for the review. I have updated the PR with above feedback. |
mkdocs.yml
Outdated
edit_uri: edit/main/guide/ | ||
|
||
# Documentation and theme | ||
copyright: 'Copyright © 2024. Maintained by the Elyra Canvas Team., an open source project and all are welcome to contribute!<br> Maintained by the SPSS Modeler Team' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove Maintained by the SPSS Modeler Team
guide/index.md
Outdated
@@ -0,0 +1,90 @@ | |||
# Welcome to the Elyra Canvas Wiki |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to Welcome to the Elyra Canvas Documentation
mkdocs.yml
Outdated
edit_uri: edit/main/guide/ | ||
|
||
# Documentation and theme | ||
copyright: 'Copyright © 2023 IBM Watson Team, an open source project and all are welcome to contribute!<br> Maintained by the SPSS Modeler Team' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be
copyright: 'Copyright © 2024 Elyra Authors, an open source project and all are welcome to contribute!
Maintained by the Elyra Authors Team'
mkdocs.yml
Outdated
@@ -0,0 +1,80 @@ | |||
site_name: Elyra Guide |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be Elyra Canvas Documentation
guide/index.md
Outdated
|
||
## Installation | ||
|
||
You'll need to build your application with common canvas. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be:
You'll need to build your application with Elyra Canvas.
guide/index.md
Outdated
|
||
You'll need to build your application with common canvas. | ||
|
||
* common-canvas requires react, react-dom, react-intl, and react-redux libraries to be installed. See peerDependencies in package.json for versions requirements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First sentence should be:
Elyra Canvas requires react, react-dom, react-intl, and react-redux libraries to be installed.
guide/4.0-Accessibility.md
Outdated
@@ -0,0 +1,3 @@ | |||
## Tips | |||
- All input elements need to have a visual indication `focus` is set. This is different then selection. | |||
- Use the correct html element for inputs. For example don't use a `div` with a click event. Use a `button` or `a` instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please delete this document. It doesn't add anything useful to the documentation.
…le for deployment Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Hi Team, I have deployed the docs at https://srikant-ch5.github.io/canvas/ Please review. The url can be changed to elyra-canvas . |
## Parameter Controls | ||
The following controls are supported in the Common Properties editor. Control types are intended for use with particular parameter types: | ||
|
||
### Control Types |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slider
control documentation is not added in this section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slider
control documentation is not added in this section.
Hi @nmgokhale I have included slider control documentation now https://srikant-ch5.github.io/canvas/3.3-Common-Properties-Controls/#control-types . Previously I was taking https://github.com/elyra-ai/canvas/wiki as reference (slider is not included in this).
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
.github/workflows/ci.yml
Outdated
on: | ||
push: | ||
branches: | ||
- new-guide |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem right. Would this mean the guide would only be updated when the branch is new-guide
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes Matt, this needs to be changed as main when merged, for testing purpose I have kept it as new-guide.
.github/workflows/ci.yml
Outdated
- uses: actions/checkout@v4 | ||
- name: Configure Git Credentials | ||
run: | | ||
git config user.name github-actions[bot] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How did you come up with these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Matt to deploy the docs using gh-pages I have followed https://squidfunk.github.io/mkdocs-material/publishing-your-site/ resource and able to deploy whenever I push any change in docs to my new-guide branch. It triggers ci to deploy the changes without manually running mkdocs gh-deploy --force
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm more wondering about git config user.name github-actions[bot]
and git config user.email 41898282+github-actions[bot]@users.noreply.github.com
. Do we need these?
@@ -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/wiki/2.4.2-Decoration-Specification | |||
// https://github.com/elyra-ai/canvas/tree/main/guide/2.4.2-Decoration-Specification.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't all these links be github pages links? Also, I don't this guide
is the folder anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Matt, I have reverted the docs links to point to existing elyra canvas docs once the new one is deployed I will change these urls pointing to new docs.
@@ -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/wiki/2.4.2-Decoration-Specification | |||
// https://github.com/elyra-ai/canvas/tree/main/guide/2.4.2-Decoration-Specification.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above. Have a look at all the links.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Matt, I have reverted the docs links to point to existing elyra canvas docs once the new one is deployed I will change these urls pointing to new docs.
@@ -0,0 +1,7 @@ | |||
th { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't all these new css and js files have copyrights?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Matt I have included copyrights in the new js and css files.
docs/images/DELETEME
Outdated
@@ -0,0 +1 @@ | |||
Images for the guide go here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Matt I have removed this file now. Thanks.
docs/js/links-in-new-tabs.js
Outdated
// 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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing copyright. Also, we usually use const
instead of var
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I have updated these.
…old docs Signed-off-by: srikant <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small comment and the rest looks good. Once it's deployed with your branch then we can change it to main before merging.
.github/workflows/ci.yml
Outdated
- uses: actions/checkout@v4 | ||
- name: Configure Git Credentials | ||
run: | | ||
git config user.name github-actions[bot] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm more wondering about git config user.name github-actions[bot]
and git config user.email 41898282+github-actions[bot]@users.noreply.github.com
. Do we need these?
Signed-off-by: srikant <[email protected]>
Signed-off-by: srikant <[email protected]>
Hi @matthoward366 I have removed these and its working fine. Thanks. |
Signed-off-by: srikant <[email protected]>
Fixes: #1701
Developer's Certificate of Origin 1.1