@@ -94,10 +94,12 @@ cargo run -- start-web-server
94
94
# This is the main command to build and add a documentation into docs.rs.
95
95
cargo run -- build crate < CRATE_NAME> < CRATE_VERSION>
96
96
97
+
97
98
# Adds essential files (css and fonts) into database to avoid duplication
98
99
# This command needs to be run after each rustc update
99
100
cargo run -- build add-essential-files
100
101
102
+
101
103
# Builds every crate adds them into database
102
104
# (beware: this may take months to finish)
103
105
cargo run -- build world
@@ -110,24 +112,35 @@ cargo run -- build world
110
112
# Initializes database. Currently, only creates tables in database.
111
113
cargo run -- database init
112
114
115
+
113
116
# Adds a directory into database to serve with `staticfile` crate.
114
117
cargo run -- database add-directory < DIRECTORY> [PREFIX]
115
118
119
+
116
120
# Updates github stats for crates.
117
121
# You need to set CRATESFYI_GITHUB_USERNAME, CRATESFYI_GITHUB_ACCESSTOKEN
118
122
# environment variables in order to run this command.
119
123
# You can define them in ~/.cratesfyi.env file.
120
124
cargo run -- database update-github-fields
121
125
122
- # Updates release activitiy
126
+
127
+ # Updates search-index.
128
+ # daemon is running this command occasionally, and this command must be
129
+ # run to update recent-version of a crate and search index.
130
+ # If you are having any trouble with accessing right version of a crate,
131
+ # run this command.
132
+ cargo run -- database update-search-index
133
+
134
+
135
+ # Updates release activitiy chart
123
136
cargo run -- database update-release-activity
124
137
```
125
138
126
139
127
140
#### ` doc ` subcommand
128
141
129
142
This subcommand will only build documentation of a crate.
130
- This subcommand is designed to run inside a container.
143
+ It is designed to run inside a secure container.
131
144
132
145
```
133
146
cargo run -- doc <CRATE_NAME>
0 commit comments