37 Commits (master)

Author SHA1 Message Date
Aadhavan Srinivasan 71a242e1d6 Added double-slash to escape _all_ forward slashes 5 days ago
Aadhavan Srinivasan 423eba2213 Added comment to explain weird use of associative array syntax 5 days ago
Aadhavan Srinivasan f1f5ab51b2 Fixed error where I would create a file called RSS_FEED_PATH 3 months ago
Aadhavan Srinivasan dc61c92a4e Added function to generate RSS file 3 months ago
Aadhavan Srinivasan e0c79984b2 Added info to top of site-map page, and fixed bug with 'temp' directory name 4 months ago
Aadhavan Srinivasan 54dda40de4 Made the script take in a paramter, which is the directory containing 'source' and 'output' 5 months ago
Aadhavan Srinivasan d098c7c290 Changed name at the top of the comments section 6 months ago
Aadhavan Srinivasan 0cb59bd30b Updated comment section at top of file to remove information that's no longer accurate 6 months ago
Aadhavan Srinivasan 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.
6 months ago
Aadhavan Srinivasan 0023d8ec7f Made the document conversion multithreaded, to speed up the script (50% reduction in time) 6 months ago
Aadhavan Srinivasan 554071f7f4 Updated build script, so that 'Two More Cents' doesn't get adedd twice to the the title of the 'Site Map' page 6 months ago
Aadhavan Srinivasan cd891e38e9 Updated build script to not throw an error if output directory doesn't exist 6 months ago
Aadhavan Srinivasan c965b825fb Added a few log statements 6 months ago
Aadhavan Srinivasan 1bf8064ac9 Added section to top of script, briefly describing what it does and how it works 7 months ago
Aadhavan Srinivasan 568050cb53 Added some comments to the top 8 months ago
Aadhavan Srinivasan c82b13f3ca Made all variables inside functions local 8 months ago
Aadhavan Srinivasan 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.
8 months ago
Aadhavan Srinivasan cc3bdae903 Changed working directory to /home/aadhavan/Programming/Bash/sitegen 8 months ago
Aadhavan Srinivasan 73d608e40f Removed unneccesary space :D 9 months ago
Aadhavan Srinivasan 490ffeb8de Added flag to pandoc, to include lua filters 9 months ago
Aadhavan Srinivasan 958fc8518a Added code to copy over fonts into output directory 9 months ago
Aadhavan Srinivasan f9468282f3 Added flag to 'cp' command so that it would recursively copy directories 9 months ago
Aadhavan Srinivasan 401546e751 Added a function to copy files and folders into the 'output' folder 9 months ago
Aadhavan Srinivasan 8c4862cd05 Renamed 'notitle' to 'noappend', and added 'date = auto' variable to automatically add the date 9 months ago
Aadhavan Srinivasan 506ea63f52 Added code to escape forward slashes in metadata values 9 months ago
Aadhavan Srinivasan 6701f5389b Added code to only add the date to the metadata array if it isn't already present 9 months ago
Aadhavan Srinivasan 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 9 months ago
Aadhavan Srinivasan 5e8445febf Started working on converting the regular arrays into an associative array 9 months ago
Aadhavan Srinivasan 2ab303fb2e Reversed sorting order so that the site map displays posts from newest to oldest 9 months ago
Aadhavan Srinivasan 1a477a1abf Added option to pandoc, to preserve line wrapping 9 months ago
Aadhavan Srinivasan ad2bc3a3ad Finished code for generating index file; created a separate function for adding header and footer to index file 9 months ago
Aadhavan Srinivasan 7d82d5ece3 Working on generating index page; moved the generation of a sorted file list to a separate function 9 months ago
Aadhavan Srinivasan 84cff5cfac Changed replace_vars to replace every occurence of a variable, not just the first occurence; Started working on generating index page 9 months ago
Aadhavan Srinivasan 7605bd8b78 Removed creation of 'output' directory, as it is deleted and re-created soon after 10 months ago
Aadhavan Srinivasan cc64d4482c Fixed a bug where folder structure of 'source' is not preserved in 'output' 10 months ago
Aadhavan Srinivasan e1cd7ce290 Added more error checking to build script, and deleted 'temp' directory at the end 10 months ago
Aadhavan Srinivasan 141be2c483 First commit 10 months ago