This commit is contained in:
2025-07-17 20:25:17 +04:00
parent 1b03a9ef6d
commit 09dedf9669
4 changed files with 10 additions and 4 deletions

View File

@@ -1 +1,2 @@
build
build
docusaurus_example

View File

@@ -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()!

View File

@@ -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++

View File

@@ -79,6 +79,7 @@ pub fn (mut s DocSite) dev(args DevArgs) ! {
'
retry: 0
)!
s.open()!
}