File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ validate: validate-rust
47
47
ruff check
48
48
.PHONY : validate
49
49
50
+ update-generated :
51
+ cargo xtask update-generated
52
+ .PHONY : update-generated
53
+
50
54
vendor :
51
55
cargo xtask $@
52
56
.PHONY : vendor
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ fn main() {
19
19
#[ allow( clippy:: type_complexity) ]
20
20
const TASKS : & [ ( & str , fn ( & Shell ) -> Result < ( ) > ) ] = & [
21
21
( "manpages" , manpages) ,
22
- ( "man2markdown " , man2markdown ) ,
22
+ ( "update-generated " , update_generated ) ,
23
23
( "package" , package) ,
24
24
( "package-srpm" , package_srpm) ,
25
25
( "spec" , spec) ,
@@ -115,12 +115,13 @@ fn manpages(sh: &Shell) -> Result<()> {
115
115
Ok ( ( ) )
116
116
}
117
117
118
- /// Generate markdown files (converted from the man pages, which are generated
119
- /// from the Rust sources) into docs/src, which ends up in the rendered
120
- /// documentation. This process is currently manual.
121
- #[ context( "man2markdown" ) ]
122
- fn man2markdown ( sh : & Shell ) -> Result < ( ) > {
118
+ /// Update generated files, such as converting the man pages to markdown.
119
+ /// This process is currently manual.
120
+ #[ context( "Updating generated files" ) ]
121
+ fn update_generated ( sh : & Shell ) -> Result < ( ) > {
123
122
manpages ( sh) ?;
123
+ // And convert the man pages into markdown, so they can be included
124
+ // in the docs.
124
125
for ent in std:: fs:: read_dir ( "target/man" ) ? {
125
126
let ent = ent?;
126
127
let path = & ent. path ( ) ;
You can’t perform that action at this time.
0 commit comments