-
Notifications
You must be signed in to change notification settings - Fork 10
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
Yuhsuan/documentation #2210
Yuhsuan/documentation #2210
Conversation
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.
@YuHsuan-Hwang This is a very impressive looking. Nice work!
It looks like it should work once merged to the 'dev' branch.
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 looks good! A note about deployment: we will need to version this, and have a site for each release as well as the development branch (because users will need to match the API docs to their CARTA release).
Here is a static build of the frontend documentation for reviewing: https://carta.asiaa.sinica.edu.tw/carta-frontend |
@YuHsuan-Hwang when I run
do we expect to see this in this branch? |
doing
|
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.
Looks great. 👍
Following are my minor comments:
- would be good to add links to the API document and code snippets tutorials in the "Snippers sub-menu"
- in the code snippets tutorial, it would be good to add "loops" and "conditions" to the "Basics" section.
This is fixed.
These are from dependencies, so we can not fix it.
Added:
I don't think we need to add more "JS tutorials" which could be endless ... . I added: "For more usages of ES6-based JavaScript, please refer to the features of the language." in the end of the section. @kswang1029 Do you think we need to revise the example snippets based on the changes? |
yes would be good to do so |
Updated example snippets for consistency. |
Description
Updated the documentation in the codebase from JSDoc to TSDoc.
Added eslint plugin
eslint-plugin-tsdoc
to check for the required TSDoc format. Incorrect format will result in a compile error.To run lint checks:
Implemented a documentation website using Docusaurus.
To build the website locally:
To create a production build locally:
The website includes:
documentation-guidelines.md
“Writing API documentation” for details.documentation-guidelines.md
“Writing documentation pages” for details.theme/SearchBar
are automatically generated by runningnpm run swizzle docusaurus-lunr-search SearchBar -- --eject --danger
.npm run reformat
, including markdown files.Notes:
docs_website/
instead ofdocs/
. This is because Docusaurus requires a sub dirdocs/
, anddocs/docs/
is confusing.Added CI checks for formatting and deployment of the documentation website. Used cloud service because our servers will be busy with
node-v16
andnode-v18
tasks.Added Github actions for updating GitHub Pages whenever the dev branch is updated. To be tested after merging the PR.
Closes Additional tutorial entries for code snippets #1556.
Added code snippet tutorials at
carta-frontend/docs/category/code-snippet-tutorial
in the documentation website.The first two tutorials are revised from the example code snippets in the codebase. Added some new content such as image properties and regions. Please review the content of the pages.
Closes create document for developer guidelines #1873.
Added developer guidelines at
carta-frontend/docs/category/contributing
in the documentation website, including topics of developer tips, Github workflow, unit test guidelines, and documentation guidelines. Please review the content of the pages.Other changes:
Action items after merging the PR:
Checklist
For linked issues (if there are):
For the pull request:
corresponding fix addedno changelog update neededprotobuf updated to the latest dev commit/ no protobuf update neededBackendService
unchanged /BackendService
changed and corresponding ICD test fix added