From 7ca06db96ed3ab1a753c49d056b06d53a1455ad2 Mon Sep 17 00:00:00 2001 From: wusongqing Date: Mon, 9 May 2022 17:41:04 +0800 Subject: [PATCH] corrected link errors Signed-off-by: wusongqing --- .../reference/apis/js-apis-window.md | 2 +- .../reference/apis/js-apis-zlib.md | 6 +- .../public_sys-resources/icon-caution.gif | Bin 580 -> 0 bytes .../faqs/public_sys-resources/icon-danger.gif | Bin 580 -> 0 bytes .../faqs/public_sys-resources/icon-note.gif | Bin 394 -> 0 bytes .../faqs/public_sys-resources/icon-notice.gif | Bin 406 -> 0 bytes .../faqs/public_sys-resources/icon-tip.gif | Bin 253 -> 0 bytes .../public_sys-resources/icon-warning.gif | Bin 580 -> 0 bytes .../hpm-part/hpm-part-development.md | 83 +++++++++--------- en/device-dev/subsystems/Readme-EN.md | 12 +-- ...ment-guidelines.md => subsys-tel-guide.md} | 0 ...hony-service.md => subsys-tel-overview.md} | 0 en/device-dev/subsystems/subsys-tel.md | 7 +- en/device-dev/subsystems/subsys.md | 20 +---- ...ickstart-ide-lite-steps-hi3861-running.md} | 0 .../quickstart-ide-lite-steps-hi3861.md | 3 +- 16 files changed, 61 insertions(+), 72 deletions(-) delete mode 100755 en/device-dev/faqs/public_sys-resources/icon-caution.gif delete mode 100755 en/device-dev/faqs/public_sys-resources/icon-danger.gif delete mode 100755 en/device-dev/faqs/public_sys-resources/icon-note.gif delete mode 100755 en/device-dev/faqs/public_sys-resources/icon-notice.gif delete mode 100755 en/device-dev/faqs/public_sys-resources/icon-tip.gif delete mode 100755 en/device-dev/faqs/public_sys-resources/icon-warning.gif rename en/device-dev/subsystems/{development-guidelines.md => subsys-tel-guide.md} (100%) rename en/device-dev/subsystems/{telephony-service.md => subsys-tel-overview.md} (100%) rename zh-cn/device-dev/quick-start/{quickstart-ide-lite-steps-hi3816-running.md => quickstart-ide-lite-steps-hi3861-running.md} (100%) diff --git a/en/application-dev/reference/apis/js-apis-window.md b/en/application-dev/reference/apis/js-apis-window.md index 6e89658071..d42d54118b 100644 --- a/en/application-dev/reference/apis/js-apis-window.md +++ b/en/application-dev/reference/apis/js-apis-window.md @@ -4,7 +4,7 @@ > > The initial APIs of this module are supported since API version 6. Newly added APIs will be marked with a superscript to indicate their earliest API version. > -> The APIs of API version 9 is of the Canary version and are for trial use only. The API call may be unstable. +> The APIs of API version 9 are of the canary version and are for trial use only. The API call may be unstable. ## Modules to Import diff --git a/en/application-dev/reference/apis/js-apis-zlib.md b/en/application-dev/reference/apis/js-apis-zlib.md index f1435417e6..8241cfe294 100644 --- a/en/application-dev/reference/apis/js-apis-zlib.md +++ b/en/application-dev/reference/apis/js-apis-zlib.md @@ -127,9 +127,9 @@ zlib.unzipFile(inFile, outFile, options).then((data) => { | Name | Description | | --------------------------- | ------------------------------------------------------------ | -| level?: CompressLeve | See [zip.CompressLevel](#zip.CompressLevel).| -| memLevel?: MemLevel | See [zip.MemLevel](#zip.MemLevel) | -| strategy?: CompressStrategy | See [zip.CompressStrategy](#zip.CompressStrategy)| +| level?: CompressLeve | See [zip.CompressLevel](#zipcompresslevel). | +| memLevel?: MemLevel | See [zip.MemLevel](#zipmemlevel) | +| strategy?: CompressStrategy | See [zip.CompressStrategy](#zipcompressstrategy) | ## zip.MemLevel diff --git a/en/device-dev/faqs/public_sys-resources/icon-caution.gif b/en/device-dev/faqs/public_sys-resources/icon-caution.gif deleted file mode 100755 index 6e90d7cfc2193e39e10bb58c38d01a23f045d571..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 580 zcmV-K0=xZ3Nk%w1VIu$?0Hp~4{QBgqmQ+MG9K51r{QB&)np^||1PlfQ%(86!{`~yv zv{XhUWKt}AZaiE{EOcHp{O-j3`t;<+eEiycJT4p@77X;(jQsMfB$R?oG%6hQ z+MMLZbQBH@)Vg&1^3?qHb(5!%>3r0+`eq=&V&E}0Dypi0000000000 z00000A^8LW000R9EC2ui03!e$000L5z=Uu}ED8YtqjJd<+B}(9bIOb$3-31_h|V>=0A{ z1Hh0#H30>fNT})^fRU_83uewx9oRr{f{Sx1Ml`t)EQ zGkHZ67&~y{W5Jpq4H_WfuLxp*3<7O}GEl;1ESe36fLNs=B0&LQM1Buf(R)qg(BRd`t1OPjI1m_q4 diff --git a/en/device-dev/faqs/public_sys-resources/icon-danger.gif b/en/device-dev/faqs/public_sys-resources/icon-danger.gif deleted file mode 100755 index 6e90d7cfc2193e39e10bb58c38d01a23f045d571..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 580 zcmV-K0=xZ3Nk%w1VIu$?0Hp~4{QBgqmQ+MG9K51r{QB&)np^||1PlfQ%(86!{`~yv zv{XhUWKt}AZaiE{EOcHp{O-j3`t;<+eEiycJT4p@77X;(jQsMfB$R?oG%6hQ z+MMLZbQBH@)Vg&1^3?qHb(5!%>3r0+`eq=&V&E}0Dypi0000000000 z00000A^8LW000R9EC2ui03!e$000L5z=Uu}ED8YtqjJd<+B}(9bIOb$3-31_h|V>=0A{ z1Hh0#H30>fNT})^fRU_83uewx9oRr{f{Sx1Ml`t)EQ zGkHZ67&~y{W5Jpq4H_WfuLxp*3<7O}GEl;1ESe36fLNs=B0&LQM1Buf(R)qg(BRd`t1OPjI1m_q4 diff --git a/en/device-dev/faqs/public_sys-resources/icon-note.gif b/en/device-dev/faqs/public_sys-resources/icon-note.gif deleted file mode 100755 index 6314297e45c1de184204098efd4814d6dc8b1cda..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 394 zcmZ?wbhEHblx7fPSjxcg=ii?@_wH=jwxy=7CMGH-B`L+l$wfv=#>UF#$gv|VY%C^b zCQFtrnKN(Bo_%|sJbO}7RAORe!otL&qo<>yq_Sq+8Xqqo5h0P3w3Lvb5E(g{p01vl zxR@)KuDH0l^z`+-dH3eaw=XqSH7aTIx{kzVBN;X&hha0dQSgWuiw0NWUvMRmkD|> diff --git a/en/device-dev/faqs/public_sys-resources/icon-notice.gif b/en/device-dev/faqs/public_sys-resources/icon-notice.gif deleted file mode 100755 index 86024f61b691400bea99e5b1f506d9d9aef36e27..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 406 zcmV;H0crk6Nk%w1VIu$@0J8u9|NsB@_xJDb@8;&_*4Ea}&d#;9wWXz{jEszHYim+c zQaU<1At50E0000000000A^8Le000gEEC2ui03!e%000R7038S%NU)&51O^i-Tu6`s z0)`MFE@;3YqD6xSC^kTNu_J>91{PH8XfZ(p1pp2-SU@u3#{mEUC}_}tg3+I#{z}{Ok@D_ZUDg- zt0stin4;pC8M{WLSlRH*1pzqEw1}3oOskyNN?j;7HD{BBZ*OEcv4HK!6Bk6beR+04 z&8}k>SkTusVTDmkyOz#5fCA$JTPGJVQvr3uZ?QzzPQFvD0rGf_PdrcF`pMs}p^BcF zKtKTd`0wipR%nKN&Wj+V}pX;WC3SdJV!a_8Qi zE7z`U*|Y^H0^}fB$R?oG%6hQ z+MMLZbQBH@)Vg&1^3?qHb(5!%>3r0+`eq=&V&E}0Dypi0000000000 z00000A^8LW000R9EC2ui03!e$000L5z=Uu}ED8YtqjJd<+B}(9bIOb$3-31_h|V>=0A{ z1Hh0#H30>fNT})^fRU_83uewx9oRr{f{Sx1Ml`t)EQ zGkHZ67&~y{W5Jpq4H_WfuLxp*3<7O}GEl;1ESe36fLNs=B0&LQM1Buf(R)qg(BRd`t1OPjI1m_q4 diff --git a/en/device-dev/hpm-part/hpm-part-development.md b/en/device-dev/hpm-part/hpm-part-development.md index b00b0739c0..fa7fb8e339 100644 --- a/en/device-dev/hpm-part/hpm-part-development.md +++ b/en/device-dev/hpm-part/hpm-part-development.md @@ -6,6 +6,7 @@ You can search for common development resources on [DevEco Marketplace](https://repo.harmonyos.com) and import required resources to your projects through dependencies. If you cannot find the desired resources there, develop the resources on your own and publish them in the form of an HPM Part. To develop HPM Parts, install the hpm-cli tool first. > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> > You are advised to perform the following operations on Ubuntu 18.04 or later. @@ -17,24 +18,25 @@ The hpm-cli tool is developed based on Node.js. Therefore, you must install Node ### Installing Node.js and hpm-cli 1. Install Node.js. - Download Node.js from its official website and install it on your local PC. - - You are advised to install the latest LTS version (not earlier than 12.x) of [Node.js](https://nodejs.org/). - + +Download Node.js from its official website and install it on your local PC. + +You are advised to install the latest LTS version (not earlier than 12.x) of [Node.js](https://nodejs.org/). + 2. Install the hpm-cli tool using **npm** delivered with **Node.js**. Run the following command: - + ``` npm install -g @ohos/hpm-cli ``` 3. Run the following command to check whether the installation is successful. If a hpm version is displayed, the installation is successful. - + ``` hpm -V or hpm --version ``` 4. (Optional) Run the following command to update the hpm version if needed: - + ``` npm update -g @ohos/hpm-cli ``` @@ -44,13 +46,13 @@ The hpm-cli tool is developed based on Node.js. Therefore, you must install Node After hpm-cli is installed, run the following command to view the hpm configuration: - + ``` hpm config ``` - The default hpm configuration is displayed upon successful command execution. You can modify the default configuration as required. The following lists the common hpm configuration: - +The default hpm configuration is displayed upon successful command execution. You can modify the default configuration as required. The following lists the common hpm configuration: + ``` registry = https://hpm.harmonyos.com ### login Settings @@ -82,16 +84,17 @@ You can create an HPM Part by using a template or define an existing project as ### Creating an HPM Part Using a Template 1. Run the following command to create a directory: - + ``` hpm init -t default mybundle ``` > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** - > -In the preceding command, **default** indicates that the **default** template is used. You can use another template such as **simple** or **dist**. - + > +> In the preceding command, **default** indicates that the **default** template is used. You can use another template such as **simple** or **dist**. + The generated directory structure is as follows: - + ``` / ├── headers # Header file (example) @@ -103,10 +106,10 @@ You can create an HPM Part by using a template or define an existing project as └── Makefile # Build description file (example) └── README.md # Readme file - ``` - +``` + 2. Write the code and build script of the HPM Part. - + ``` hpm init -t {templatename} -d {dir} {name} ``` @@ -120,14 +123,14 @@ You can create an HPM Part by using a template or define an existing project as The hpm-cli tool provides a few default templates. More templates are available on [DevEco Marketplace](https://repo.harmonyos.com). You can run the **hpm search -t template** command to search for a template stored on [DevEco Marketplace](https://repo.harmonyos.com). -![zh-cn_image_0000001217486680](figures/zh-cn_image_0000001217486680.png) +![en-us_image_0000001217486680](figures/en-us_image_0000001217486680.png) ### Defining an Existing Project as an HPM Part If you have a code project and need to distribute it on the HPM platform, run the following command in the project directory, for example, **mybundle2**: - + ``` hpm init ``` @@ -137,7 +140,7 @@ hpm init 2. Enter the version and description. A **bundle.json** file will be generated in the current directory. 3. Open the **bundle.json** file. - + ``` $ hpm init Your bundle will be created in directory ~\demo\mybundle2 @@ -148,7 +151,7 @@ hpm init ``` 4. Modify other information (such as the author, code repository, code directories, scripts, and dependencies) in **bundle.json**. An example is shown below: - + ``` { "name": "mybundle2", @@ -177,7 +180,7 @@ In the distribution metadata file, define the dependent HPM Parts and how to bui The following uses the **bundle.json** file as an example. In this example, the **dist** command uses the **hb** framework. - + ``` { "name": "@your/dist_name", @@ -225,7 +228,7 @@ The hpm-cli tool supports command integration so that you can select any build t This section describes how to build an executable file named **helloworld** in the **app** directory. - + ``` app ├── BUILD.gn @@ -237,7 +240,7 @@ app Create a **BUILD.gn** file in the same directory as **helloworld.c**. - + ``` touch BUILD.gn vim BUILD.gn @@ -245,7 +248,7 @@ vim BUILD.gn The following is an example of **BUILD.gn**: - + ``` executable("hello_world") { sources = [ @@ -268,28 +271,28 @@ executable("hello_world") { Run the following command to start the build: - + ``` hpm build ``` After all build operations are complete, the message "build succeed" is displayed. You need to check the build result. -![zh-cn_image_0000001262166533](figures/zh-cn_image_0000001262166533.png) +![en-us_image_0000001262166533](figures/en-us_image_0000001262166533.png) ### Building an Image Run the following command in the root directory of the current distribution: - + ``` hpm dist ``` The hpm-cli tool automatically starts the build. After the build is complete, an image file will be generated, as shown below: - + ``` out |-xxdist.img @@ -303,7 +306,7 @@ To publish an HPM Part, you must obtain an account and create an organization (o After that, generate a public key on the local PC based on your invitation code (which can be obtained on the **My profile** page on [DevEco Marketplace](https://repo.harmonyos.com)), and configure the public key on the **My profile** page. - + ``` hpm config set loginUser {your-invitation-code} hpm gen-keys @@ -315,7 +318,7 @@ Now you have the permission to publish HPM Parts in your organization. In the directory where the HPM Part is located, run the following command to pack and publish the HPM Part: - + ``` hpm publish ``` @@ -346,13 +349,13 @@ Visit [DevEco Marketplace](https://repo.harmonyos.com), search for HPM Parts tha 4. Run the **hpm build** command to perform build and output the build result. Run the following command in your project. Make sure that the project directory contains the **bundle.json** file. - + ``` $ hpm install @scope/the_bundle ``` The referenced HPM Part will be installed under **ohos_bundle** in the directory where your project is located. The directory structure is as follows: - + ``` project ├── ohos_bundle @@ -368,7 +371,7 @@ project Open the **bundle.json** file. You will see that the HPM Part has been introduced to the dependencies of your project. - + ``` { "dependencies": { @@ -379,7 +382,7 @@ Open the **bundle.json** file. You will see that the HPM Part has been introduce You can edit the dependencies of multiple HPM Parts in this file. - + ``` { "dependencies": { @@ -399,13 +402,13 @@ Run the **hpm install** command again to download and install all HPM Parts that If the referenced HPM Part is shared by multiple projects, for example, the compiler toolchain, you can install it globally. Run the following command in your project. Make sure that the project directory contains the **bundle.json** file. - + ``` $ hpm install -g @scope/the_tool ``` The referenced HPM Part will be installed in the directory specified by the **globalRepo** parameter of the **hpm config** command. - + ``` ~\.hpm\global\ohos_bundles │ └── scope @@ -415,7 +418,7 @@ $ hpm install -g @scope/the_tool > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > - For an HPM Part installed in a project, you can reference it using the environment variable **DEP_SCOPE_bundle_name** when running the hpm build command. > For example, after you run **hpm i \@opensource/gn** to install an HPM Part, edit the build script in the **bundle.json** file as follows: -> +> > ``` > "scripts": { > "build": "${DEP_OPENSOURCE_gn}/gn --version" @@ -425,14 +428,14 @@ $ hpm install -g @scope/the_tool > Then, you can run the **hpm build** command to call gn functions. > > - For a globally installed HPM Part, you can directly call the HPM Part using an environment variable or reference the HPM Part using the **${key}/tool_name** parameter in the **hpm config set key value** command. Example: -> +> > ``` > hpm i -g @ohos/opensource/gn > hpm config BUILD_SYS_GN ~/.hpm/global/ohos_bundles/opensource/gn > ``` > > You can edit the build script in the **bundle.json** file as follows: -> +> > ``` > "scripts": { > "build": "${BUILD_SYS_GN}/gn --version" diff --git a/en/device-dev/subsystems/Readme-EN.md b/en/device-dev/subsystems/Readme-EN.md index 9d104caf78..7d2139638a 100644 --- a/en/device-dev/subsystems/Readme-EN.md +++ b/en/device-dev/subsystems/Readme-EN.md @@ -53,7 +53,7 @@ - [Sensor Usage Guidelines](subsys-sensor-guide.md) - [Sensor Usage Example](subsys-sensor-demo.md) - [USB](subsys-usbservice.md) - - [[USB Overview](subsys-usbservice-overview.md) + - [USB Overview](subsys-usbservice-overview.md) - [USB Usage Guidelines](subsys-usbservice-guide.md) - [USB Usage Example](subsys-usbservice-demo.md) - [Application Framework](subsys-application-framework.md) @@ -61,10 +61,10 @@ - [Setting Up a Development Environment](subsys-application-framework-envbuild.md) - [Development Guidelines](subsys-application-framework-guide.md) - [Development Example](subsys-application-framework-demo.md) -- [OTA Upgrade](subsys-ota-guide.md) -- [Telephony Service ](subsys-tel.md) - - [Telephony Service](telephony-service.md) - - [Development Guidelines](development-guidelines.md) +- [OTA Update](subsys-ota-guide.md) +- [Telephony ](subsys-tel.md) + - [Telephony Overview](subsys-tel-overview.md) + - [Telephony Development](subsys-tel-guide.md) - [Security](subsys-security.md) - [Overview](subsys-security-overview.md) - [Development on Application Signature Verification](subsys-security-sigverify.md) @@ -80,7 +80,7 @@ - [syspara Module](subsys-boot-syspara.md) - [FAQs](subsys-boot-faqs.md) - [Reference](subsys-boot-ref.md) -- [Testing](subsys-testguide-test.md) +- [Test](subsys-testguide-test.md) - [DFX](subsys-dfx.md) - [DFX](subsys-dfx-overview.md) - [HiLog Development](subsys-dfx-hilog-rich.md) diff --git a/en/device-dev/subsystems/development-guidelines.md b/en/device-dev/subsystems/subsys-tel-guide.md similarity index 100% rename from en/device-dev/subsystems/development-guidelines.md rename to en/device-dev/subsystems/subsys-tel-guide.md diff --git a/en/device-dev/subsystems/telephony-service.md b/en/device-dev/subsystems/subsys-tel-overview.md similarity index 100% rename from en/device-dev/subsystems/telephony-service.md rename to en/device-dev/subsystems/subsys-tel-overview.md diff --git a/en/device-dev/subsystems/subsys-tel.md b/en/device-dev/subsystems/subsys-tel.md index b99d321dbb..9213dd3ad8 100644 --- a/en/device-dev/subsystems/subsys-tel.md +++ b/en/device-dev/subsystems/subsys-tel.md @@ -1,6 +1,5 @@ -# Subsystems +# Telephony -- [Telephony Service](telephony-service.md) - - [Telephony Service](telephony-service.md) - - [Development Guidelines](development-guidelines.md) +- [Telephony Overview](subsys-tel-overview.md) +- [Telephony Development](subsys-tel-guide.md) diff --git a/en/device-dev/subsystems/subsys.md b/en/device-dev/subsystems/subsys.md index 06318d2b2a..d119cbed51 100644 --- a/en/device-dev/subsystems/subsys.md +++ b/en/device-dev/subsystems/subsys.md @@ -1,35 +1,21 @@ # Subsystem Development Guidelines - **[Compilation and Building](subsys-build.md)** - - **[Distributed Remote Startup](subsys-remote-start.md)** - - **[Graphics](subsys-graphics.md)** - - **[Multimedia](subsys-multimedia.md)** - - **[Data Management](subsys-data.md)** - - **[Utils](subsys-utils.md)** - - **[AI Framework](subsys-aiframework.md)** - - **[Sensors](subsys-sensor.md)** - - **[Application Framework](subsys-application-framework.md)** - -- **[OTA Upgrade](subsys-ota-guide.md)** - +- **[OTA Update](subsys-ota-guide.md)** +- **[Telephony](subsys-tel.md)** - **[Security](subsys-security.md)** - - **[Startup](subsys-boot.md)** - -- **[Testing](subsys-testguide-test.md)** - +- **[Test](subsys-testguide-test.md)** - **[DFX](subsys-dfx.md)** - - **[R&D Tools](subsys-toolchain.md)** - - **[XTS](subsys-xts-guide.md)** diff --git a/zh-cn/device-dev/quick-start/quickstart-ide-lite-steps-hi3816-running.md b/zh-cn/device-dev/quick-start/quickstart-ide-lite-steps-hi3861-running.md similarity index 100% rename from zh-cn/device-dev/quick-start/quickstart-ide-lite-steps-hi3816-running.md rename to zh-cn/device-dev/quick-start/quickstart-ide-lite-steps-hi3861-running.md diff --git a/zh-cn/device-dev/quick-start/quickstart-ide-lite-steps-hi3861.md b/zh-cn/device-dev/quick-start/quickstart-ide-lite-steps-hi3861.md index 4bbfca7971..4c78423f3f 100644 --- a/zh-cn/device-dev/quick-start/quickstart-ide-lite-steps-hi3861.md +++ b/zh-cn/device-dev/quick-start/quickstart-ide-lite-steps-hi3861.md @@ -12,4 +12,5 @@ - **[调试验证](quickstart-ide-lite-steps-hi3861-debug.md)** -- **[运行](quickstart-ide-lite-steps-hi3816-running.md)** \ No newline at end of file +- **[运行](quickstart-ide-lite-steps-hi3861-running.md)** + -- GitLab