File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -133,25 +133,24 @@ export class AtomicServer {
133
133
134
134
@func ( )
135
135
docsFolder ( ) : Directory {
136
- const cargoCache = dag . cacheVolume ( "cargo" ) ;
137
-
138
- const cargoHomeCache = dag . cacheVolume ( "cargo_home" ) ;
136
+ const cargoHomeCache = dag . cacheVolume ( "mdbook_cargo_home_cache" ) ;
139
137
140
138
const mdBookContainer = dag
141
139
. container ( )
142
140
. from ( RUST_IMAGE )
143
- . withMountedCache ( "/usr/local/cargo/registry" , cargoCache )
144
- . withMountedCache ( "/root/.cargo" , cargoHomeCache ) // Cache the Cargo home directory
141
+ . withMountedCache ( "/usr/local/cargo/registry" , cargoHomeCache )
145
142
. withExec ( [ "cargo" , "install" , "mdbook" ] )
146
143
. withExec ( [ "cargo" , "install" , "mdbook-linkcheck" ] ) ;
147
144
148
145
const actualDocsDirectory = this . source . directory ( "docs" ) ;
146
+
149
147
return mdBookContainer
150
148
. withMountedDirectory ( "/docs" , actualDocsDirectory )
151
149
. withWorkdir ( "/docs" )
152
150
. withExec ( [ "mdbook" , "build" ] )
153
151
. directory ( "/docs/build/html" ) ;
154
152
}
153
+
155
154
@func ( )
156
155
typedocPublish ( @argument ( ) netlifyAuthToken : Secret ) : Promise < string > {
157
156
const browserDir = this . jsBuild ( ) ;
You can’t perform that action at this time.
0 commit comments