31 Commits (d098c7c29032b7e5142c493a9c8849f3c2ecdaf1)
 

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