English| 简体中文
Welcome to this project! This document will help you quickly get started with the installation, development, building, and deployment of RDK_DOC.
To install the dependencies for this project, execute the following command:
npm installTo build only the Chinese manual:
npm run startTo build only the English manual:
npm run start -- --locale enThis method does not support switching between Chinese and English documents. It can only build a single language document. If you need to display Chinese and English simultaneously, please refer to the method in Step III.
To fully deploy the manual offline, please run the following script to download all images locally:
python3 download_imgs.pyFor compiling and deploying the documents, use the following command:
npm run buildTo deploy the documents, use the following command:
#Direct Deployment
npm run serve
#Deploy with Specified IP Address and Port Number
npm run serve -- --host=10.64.62.34 --port=1688 --no-openThis will start a static file server and provide the following links for access in the browser,The port number should be based on the actual port number:
English manual link: http://localhost:3000/en/rdk_doc/
Chinese manual link: http://localhost:3000/rdk_doc/
Note: Please ensure that Node.js version 18.0 or higher is required.