File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -98,17 +98,21 @@ export class AtomicServer {
9898 @func ( )
9999 docsFolder ( ) : Directory {
100100 const actualDocsDirectory = this . source . directory ( "docs" ) ;
101+ const cargoCache = dag . cacheVolume ( "cargo" ) ;
102+ const cargoBinCache = dag . cacheVolume ( "cargo-bin" ) ;
101103
102104 const docsContainer = dag
103105 . container ( )
104106 . from ( RUST_IMAGE )
107+ . withMountedCache ( "/usr/local/cargo/registry" , cargoCache )
108+ . withMountedCache ( "/usr/local/cargo/bin" , cargoBinCache )
105109 . withExec ( [ "cargo" , "install" , "mdbook" ] )
106110 . withExec ( [ "cargo" , "install" , "mdbook-linkcheck" ] ) ;
107111 return docsContainer
108112 . withMountedDirectory ( "/docs" , actualDocsDirectory )
109113 . withWorkdir ( "/docs" )
110114 . withExec ( [ "mdbook" , "build" ] )
111- . directory ( "/docs/book /html" ) ;
115+ . directory ( "/docs/build /html" ) ;
112116 }
113117 @func ( )
114118 typedocPublish ( @argument ( ) netlifyAuthToken : Secret ) : Promise < string > {
Original file line number Diff line number Diff line change 1+ [build ]
2+ build-dir = " build"
3+
14[book ]
25title = " Atomic Data Docs"
36authors = [" Joep Meindertsma" ]
You can’t perform that action at this time.
0 commit comments