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 {
133133
134134 @func ( )
135135 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" ) ;
139137
140138 const mdBookContainer = dag
141139 . container ( )
142140 . 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 )
145142 . withExec ( [ "cargo" , "install" , "mdbook" ] )
146143 . withExec ( [ "cargo" , "install" , "mdbook-linkcheck" ] ) ;
147144
148145 const actualDocsDirectory = this . source . directory ( "docs" ) ;
146+
149147 return mdBookContainer
150148 . withMountedDirectory ( "/docs" , actualDocsDirectory )
151149 . withWorkdir ( "/docs" )
152150 . withExec ( [ "mdbook" , "build" ] )
153151 . directory ( "/docs/build/html" ) ;
154152 }
153+
155154 @func ( )
156155 typedocPublish ( @argument ( ) netlifyAuthToken : Secret ) : Promise < string > {
157156 const browserDir = this . jsBuild ( ) ;
You can’t perform that action at this time.
0 commit comments