mirror of
				https://github.com/jaandrle/deka-dom-el
				synced 2025-11-03 22:59:16 +01:00 
			
		
		
		
	🐛 (bs/docs) Fixes (non)exsting docs target
This commit is contained in:
		@@ -7,6 +7,13 @@ import { createHTMl } from "./docs/jsdom.js";
 | 
				
			|||||||
import { register } from "../jsdom.js";
 | 
					import { register } from "../jsdom.js";
 | 
				
			||||||
const pkg= s.cat("package.json").xargs(JSON.parse);
 | 
					const pkg= s.cat("package.json").xargs(JSON.parse);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					if(s.test("-d", path_target.root)){
 | 
				
			||||||
 | 
						echo("Removing old files…");
 | 
				
			||||||
 | 
						s.rm("-rf", path_target.root+"*");
 | 
				
			||||||
 | 
					} else {
 | 
				
			||||||
 | 
						echo("Creating directory…");
 | 
				
			||||||
 | 
						s.mkdir("-p", path_target.root);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
echo("Collecting list of pages…");
 | 
					echo("Collecting list of pages…");
 | 
				
			||||||
const pages= s.ls($.xdg.main`../docs/*.html.js`).map(addPage);
 | 
					const pages= s.ls($.xdg.main`../docs/*.html.js`).map(addPage);
 | 
				
			||||||
for(const { id, info } of pages){
 | 
					for(const { id, info } of pages){
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user