mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 19:49:01 +01:00 
			
		
		
		
	docs: Deploy .html files for GitHub Pages
This commit is contained in:
		
							parent
							
								
									d381ef5100
								
							
						
					
					
						commit
						4f5fa9f42b
					
				| @ -21,6 +21,11 @@ wget -rp -e robots=off "$share_url" -P "$output_dir" | ||||
| mv "$output_dir/$SHARE_HOST"/* "$output_dir/" | ||||
| rmdir "$output_dir/$SHARE_HOST" | ||||
| 
 | ||||
| # Rename share/* to share/*.html because GitHub Pages will ask the client to download the files otherwise. | ||||
| for file in "$output_dir/share"/*; do | ||||
|     mv "$file" "$file.html" | ||||
| done | ||||
| 
 | ||||
| # Create home page with redirect | ||||
| index_dest_path="$output_dir/index.html" | ||||
| cp index.template.html "$index_dest_path" | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran