71a242e1d6 
					 
					
						
						
							
							Added double-slash to escape _all_ forward slashes  
						
						
						
						
					 
					
						2024-10-11 10:52:27 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						423eba2213 
					 
					
						
						
							
							Added comment to explain weird use of associative array syntax  
						
						
						
						
					 
					
						2024-10-11 10:33:18 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f1f5ab51b2 
					 
					
						
						
							
							Fixed error where I would create a file called RSS_FEED_PATH  
						
						
						
						
					 
					
						2024-07-25 10:55:03 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						dc61c92a4e 
					 
					
						
						
							
							Added function to generate RSS file  
						
						
						
						
					 
					
						2024-07-25 10:43:12 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e0c79984b2 
					 
					
						
						
							
							Added info to top of site-map page, and fixed bug with 'temp' directory name  
						
						
						
						
					 
					
						2024-06-05 10:34:34 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						54dda40de4 
					 
					
						
						
							
							Made the script take in a paramter, which is the directory containing 'source' and 'output'  
						
						
						
						
					 
					
						2024-05-06 10:27:02 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						d098c7c290 
					 
					
						
						
							
							Changed name at the top of the comments section  
						
						
						
						
					 
					
						2024-05-04 10:21:35 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0cb59bd30b 
					 
					
						
						
							
							Updated comment section at top of file to remove information that's no longer accurate  
						
						
						
						
					 
					
						2024-04-29 17:59:14 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1f05a69106 
					 
					
						
						
							
							Fixed issues with concurrent document conversion  
						
						... 
						
						
						
						Before, the documents all used to have the same content due to a bug
in the concurrent conversion. I fixed this by creating a function,
'convert_file()', that converts an individual document. I then called
this function concurrently for each file that I want to convert. To
prevent race conditions, where two parallel conversions access the same
file, I ensured that each file gets placed into its own unique directory,
with a randomly-generated name. 
						
						
					 
					
						2024-04-29 17:56:58 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						0023d8ec7f 
					 
					
						
						
							
							Made the document conversion multithreaded, to speed up the script (50% reduction in time)  
						
						
						
						
					 
					
						2024-04-28 17:45:14 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						554071f7f4 
					 
					
						
						
							
							Updated build script, so that 'Two More Cents' doesn't get adedd twice to the the title of the 'Site Map' page  
						
						
						
						
					 
					
						2024-04-23 12:01:17 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						cd891e38e9 
					 
					
						
						
							
							Updated build script to not throw an error if output directory doesn't exist  
						
						
						
						
					 
					
						2024-04-10 22:05:13 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c965b825fb 
					 
					
						
						
							
							Added a few log statements  
						
						
						
						
					 
					
						2024-04-10 21:50:16 -04:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1bf8064ac9 
					 
					
						
						
							
							Added section to top of script, briefly describing what it does and how it works  
						
						
						
						
					 
					
						2024-03-09 21:44:46 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						568050cb53 
					 
					
						
						
							
							Added some comments to the top  
						
						
						
						
					 
					
						2024-02-11 16:35:33 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						c82b13f3ca 
					 
					
						
						
							
							Made all variables inside functions local  
						
						
						
						
					 
					
						2024-02-11 00:17:33 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						45a136dfc3 
					 
					
						
						
							
							Big commit, mostly adding best-practice changes to the script.  
						
						... 
						
						
						
						1. Added lines at the top to exit the script if any command in
the script fails.
2. Quoted all variable accesses.
3. Redirected error messages to stderr.
4. Used '[[' and ']]' in 'if' statements.
5. Added a debug mode, that can be triggered by setting the TRACE
environment variable to 1.
6. Used 'dirname' instead of 'PWD'. Therefore, in order to use the
script, you must place it in the same directory as your website
files. However, you can run it from anywhere as long as it is in
the correct location. 
						
						
					 
					
						2024-02-11 00:02:55 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						cc3bdae903 
					 
					
						
						
							
							Changed working directory to /home/aadhavan/Programming/Bash/sitegen  
						
						
						
						
					 
					
						2024-02-10 00:29:14 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						73d608e40f 
					 
					
						
						
							
							Removed unneccesary space :D  
						
						
						
						
					 
					
						2024-02-03 19:13:09 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						490ffeb8de 
					 
					
						
						
							
							Added flag to pandoc, to include lua filters  
						
						
						
						
					 
					
						2024-02-03 15:01:26 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						958fc8518a 
					 
					
						
						
							
							Added code to copy over fonts into output directory  
						
						
						
						
					 
					
						2024-02-01 07:13:56 -06:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						f9468282f3 
					 
					
						
						
							
							Added flag to 'cp' command so that it would recursively copy directories  
						
						
						
						
					 
					
						2024-01-31 22:30:00 -06:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						401546e751 
					 
					
						
						
							
							Added a function to copy files and folders into the 'output' folder  
						
						
						
						
					 
					
						2024-01-31 22:11:43 -06:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						8c4862cd05 
					 
					
						
						
							
							Renamed 'notitle' to 'noappend', and added 'date = auto' variable to automatically add the date  
						
						
						
						
					 
					
						2024-01-31 22:48:17 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						506ea63f52 
					 
					
						
						
							
							Added code to escape forward slashes in metadata values  
						
						
						
						
					 
					
						2024-01-15 13:24:30 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						6701f5389b 
					 
					
						
						
							
							Added code to only add the date to the metadata array if it isn't already present  
						
						
						
						
					 
					
						2024-01-13 15:14:03 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						93fe404571 
					 
					
						
						
							
							Switched to using associative arrays instead of two regular arrays for metadata, and ensured that the site map does not contain any file without a 'date-published' line  
						
						
						
						
					 
					
						2024-01-12 00:06:33 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						5e8445febf 
					 
					
						
						
							
							Started working on converting the regular arrays into an associative array  
						
						
						
						
					 
					
						2024-01-11 10:18:47 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						2ab303fb2e 
					 
					
						
						
							
							Reversed sorting order so that the site map displays posts from newest to oldest  
						
						
						
						
					 
					
						2024-01-09 17:26:15 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						1a477a1abf 
					 
					
						
						
							
							Added option to pandoc, to preserve line wrapping  
						
						
						
						
					 
					
						2024-01-08 22:52:56 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						ad2bc3a3ad 
					 
					
						
						
							
							Finished code for generating index file; created a separate function for adding header and footer to index file  
						
						
						
						
					 
					
						2024-01-08 22:46:17 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7d82d5ece3 
					 
					
						
						
							
							Working on generating index page; moved the generation of a sorted file list to a separate function  
						
						
						
						
					 
					
						2024-01-08 22:14:14 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						84cff5cfac 
					 
					
						
						
							
							Changed replace_vars to replace every occurence of a variable, not just the first occurence; Started working on generating index page  
						
						
						
						
					 
					
						2024-01-08 18:40:50 -05:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						7605bd8b78 
					 
					
						
						
							
							Removed creation of 'output' directory, as it is deleted and re-created soon after  
						
						
						
						
					 
					
						2024-01-04 22:43:11 -06:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						cc64d4482c 
					 
					
						
						
							
							Fixed a bug where folder structure of 'source' is not preserved in 'output'  
						
						
						
						
					 
					
						2024-01-04 22:40:32 -06:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						e1cd7ce290 
					 
					
						
						
							
							Added more error checking to build script, and deleted 'temp' directory at the end  
						
						
						
						
					 
					
						2024-01-04 22:10:25 -06:00 
						 
				 
			
				
					
						
					 
					
						
						
							
						
						141be2c483 
					 
					
						
						
							
							First commit  
						
						
						
						
					 
					
						2024-01-04 21:57:26 -06:00