...
This commit is contained in:
3
examples/web/.gitignore
vendored
3
examples/web/.gitignore
vendored
@@ -1 +1,2 @@
|
||||
build
|
||||
build
|
||||
docusaurus_example
|
||||
@@ -9,8 +9,12 @@ mut ds := docusaurus.new(
|
||||
path_publish: '/tmp/docusaurus_publish'
|
||||
)!
|
||||
|
||||
mut site:=ds.get(path:"${os.home_dir()}/code/git.threefold.info/tfgrid/docs_tfgrid4/ebooks/tech",name:"atest")!
|
||||
// mut site:=ds.get(path:"${os.home_dir()}/code/git.threefold.info/tfgrid/docs_tfgrid4/ebooks/tech",name:"atest")!
|
||||
mut site:=ds.get(url:"https://git.threefold.info/tfgrid/docs_tfgrid4/src/branch/main/ebooks/tech",name:"atest")!
|
||||
|
||||
println(site)
|
||||
|
||||
site.generate()!
|
||||
//next generates but doesn't do anything beyond
|
||||
// site.generate()!
|
||||
|
||||
site.dev()!
|
||||
|
||||
@@ -248,7 +248,7 @@ fn (mut self ReplaceInstructions) replace_in_dir_recursive(path1 string, extensi
|
||||
txtold := os.read_file(pathnew)!
|
||||
txtnew := self.replace(text: txtold, dedent: false)!
|
||||
if txtnew.trim(' \n') == txtold.trim(' \n') {
|
||||
console.print_header(' nothing to do : ${pathnew}')
|
||||
//console.print_header(' nothing to do : ${pathnew}')
|
||||
} else {
|
||||
console.print_header(' replace done : ${pathnew}')
|
||||
count++
|
||||
|
||||
@@ -79,6 +79,7 @@ pub fn (mut s DocSite) dev(args DevArgs) ! {
|
||||
'
|
||||
retry: 0
|
||||
)!
|
||||
s.open()!
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user