You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -60,26 +60,29 @@ We recommend that your branch name be: `publish-pkg-<module_name>`, `<module_nam
60
60
61
61
Take the module `helloworld` as an example
62
62
63
-
Enter the artifacthub directory you downloaded
64
-
```
65
-
cd artifacthub
63
+
Enter the `modules` directory you downloaded
64
+
65
+
```shell
66
+
cd modules
66
67
```
67
68
68
69
Create a branch `publish-pkg-helloworld` for the module `helloworld`
69
-
```
70
+
71
+
```shell
70
72
git checkout -b publish-pkg-helloworld
71
73
```
72
74
73
75
#### 3. Add your KCL module
74
76
75
-
You need to move your module to the current directory. In our example, we use the `kpm init` command to create the module `helloworld`
77
+
You need to move your module to the current directory. In our example, we use the `kcl mod init` command to create the module `helloworld`
76
78
77
-
```
78
-
kpm init helloworld
79
+
```shell
80
+
kcl mod init helloworld
79
81
```
80
82
81
83
You can add a `README.md` file to the root directory of the module to display on the homepage of AH.
82
-
```
84
+
85
+
```shell
83
86
echo"## Introduction">> helloworld/README.md
84
87
echo"This is a kcl module named helloworld.">> helloworld/README.md
85
88
```
@@ -90,18 +93,19 @@ You can use the following command to commit your module
90
93
91
94
Use `git add .` command to add your module to the staging area of git
92
95
93
-
```
96
+
```shell
94
97
git add .
95
98
```
96
99
97
100
Use `git commit -s` command to commit your module, we recommend that your commit message follow the format "publish module <module_name>".
98
-
```
101
+
102
+
```shell
99
103
git commit -m "publish module helloworld" -s
100
104
```
101
105
102
106
Use `git push` command to submit your module to your branch `publish-pkg-<module_name>`
103
107
104
-
```
108
+
```shell
105
109
git push
106
110
```
107
111
@@ -117,7 +121,7 @@ After completing the upload of the module content, you can upgrade your module b
117
121
118
122
NOTE: **We do not provide any upgrade strategy that changes the content of the module but does not change the version number.** If you want to upgrade your module and want your upgraded module to be displayed on AH, you need to modify the version number of your module. That is, the version field in the module section of the kcl.mod file.
0 commit comments