Commit Graph

59 Commits

Author SHA1 Message Date
luca0N! ccba62546f
Bump copyright year 2024-03-24 17:53:09 -03:00
luca0N! fb546ccec8
Fix configuration file I/O (#8)
Due to a programming error introduced in commit 83ec72e80c, an instance
of std::ifstream was being initialized with the path to the website
directory (without the file name appended to the path).
2024-03-24 17:49:02 -03:00
luca0N! 2cc0fa67c5
Merge branch 'master' into dev 2023-12-01 08:12:03 -03:00
luca0N! cd4911519a
Rename variable to maintain consistency 2023-12-01 07:59:14 -03:00
luca0N! ec1f40e86c
Perform minor code refactoring
Use std::getline in the template-loading function instead of reading it using the C I/O library (also bump the copyright years).
2023-12-01 07:57:00 -03:00
luca0N! 7ecb76e493
Remove outdated references
Remove outdated references to ongoing website development (also bump the copyright years).
2023-12-01 06:57:35 -03:00
luca0N! bc843ffd4a
Remove unused comments 2023-12-01 06:52:12 -03:00
luca0N! 83ec72e80c
Perform ConfigUtils code refactoring
Instead of manually reading lines and storing them on memory, parse lines while reading them on the fly using std::fstream (also bump the source file copyright years).
2023-12-01 06:51:42 -03:00
luca0N! da4c0b6173
Update copyright year info 2023-09-07 23:48:22 -03:00
luca0N! 947a5ea044
Update README 2023-09-07 23:23:28 -03:00
luca0N! 864b6dafe7
Update copyright year in README 2023-09-07 23:17:04 -03:00
luca0N! 12814571cf
Fix list line break issue (#5)
Fixed an issue which would cause the MarkdownParser to prematurely end a list on a single line break.
2023-09-07 23:10:02 -03:00
luca0N! 340046a264
Fix URL escape bug
Fixed a bug which caused the Markdown interpreter to ignore escaped '-' characters.
2022-09-12 07:28:42 -03:00
luca0N! eb04e715d5
Open article links on new tab
The catalog now opens new articles on new tabs using the `target'
parameter for the `a' tag.
2022-06-09 22:59:09 -03:00
luca0N! 9eb5c21451
Add help command
Added a help command line option that shows command line syntax and
available options.
2022-06-09 22:44:44 -03:00
luca0N! 5058545c22
Add verbose cmdline option
Added a verbose cmdline option and moved stdout debug messages there.
2022-06-09 22:35:07 -03:00
luca0N! 8b07320f76
Improve command line parsing
Improve command line argument parser.  This will make it easier to add
code to read command line options (which previously weren't available).
2022-06-09 22:07:08 -03:00
luca0N! 3d44312e93
Add missing include
Added missing include which was left out in a previous minor refactor.
2022-05-24 20:38:34 -03:00
luca0N! 1ca68c7c49
Fix article metadata parser
Fixed two issues regarding the metadata parser. The first issue caused
the parser to ignore line breaks if the length of a line was equal to
the length of the buffer, whereas the second issue caused the parser to
ignore more than it should if it came across a comment whose length was
smaller than the buffer length.
2022-05-24 20:35:26 -03:00
luca0N! b58db4b9e7
Fix character escape bug
Fixed a bug which caused MarkdownParser to print the leading backslash
when escaping special Markdown characters.
2022-05-24 20:02:41 -03:00
luca0N! d97ef91db8
Minor code refactoring
Moved certain functions to proper locations and added new source files
for minor refactoring.
2022-05-02 20:58:58 -03:00
luca0N! 647ad56349
Add custom localized timestamp override
Add support for a custom key in the article metadata that allows users
to override the default date string (e.g. January 1, 1970).  This is
useful for other locales.
2022-04-27 20:51:39 -03:00
luca0N! 2cf3706a83
Fix article metadata parser
Fixed an issue which would cause the metadata parser to partially read
lines that were supposed to be ignored (comment lines).
2022-04-27 20:39:13 -03:00
luca0N! 44cd6dc1d6
Add basic article metadata to article files
Print basic metadata (title, authors and timestamp) to HTML article
files.
2022-04-27 20:18:38 -03:00
luca0N! e2aa7f4ce8
Generate blog catalog file
WebsiteBuilder now generates blog catalog files, containing a catalog of
articles for each blog.
2022-04-27 19:27:18 -03:00
luca0N! 304ed3013f
Generate blog catalog
WebsiteBuilder now generates a blog catalog containing each article from
every blog.  Articles are sorted by published date and are grouped based
on their month and year.
2022-04-26 23:54:12 -03:00
luca0N! 4753920f3d
Sort articles by timestamp
Sort articles in std::list by timestamp to generate blog catalogs.
2022-04-26 23:29:13 -03:00
luca0N! 1e8660fb86
Fix Y2K38 bug
Fixed a bug which caused Article::get_metadata() to read timestamps as
32-bit integers, causing issues with timestamps after 2038.
2022-04-25 22:53:42 -03:00
luca0N! 61a0513ad0
Prepare article metadata parsing in WebsiteBuilder
Added changes to WebsiteBuilder that implements the metadata parsing
function in the Article namespace.
2022-04-22 18:03:44 -03:00
luca0N! 0624e9bb60
Add Article namespace for metadata parsing
Added a new namespace used for parsing article metadata embedded in
article Markdown files, and updated the Makefile accordingly.
2022-04-22 18:02:44 -03:00
luca0N! 7dc67e3563
Fix function argument
Fixed multiple append() calls which passed the address of the character
instead of its actual value.
2022-03-30 15:24:12 -03:00
luca0N! fc48dfc0a5
Ignore markdown when reading HTML comments 2022-03-30 15:19:03 -03:00
luca0N! 17f7b3ec8b
[MarkdownParser] Add whitespace on line break 2022-03-30 14:15:52 -03:00
luca0N! 69bf645246
Fix unordered list interpretation
Fixed a bug which caused MarkdownParser to add dashes to the beginning
of the buffer when it contains a dash which is not used to specify an
item of an unordered list.
2022-03-29 23:55:05 -03:00
luca0N! 0ecdfa1dae
Add strike tag support
Add strike tag support to MarkdownParser.
2022-03-22 18:05:36 -03:00
luca0N! 00d22de1a2
Fix bold tag bug
Fixed a bug which caused the append() function on MarkdownParser to add
an extra undesirable byte in between characters inside of bold tags.
2022-03-22 17:57:19 -03:00
luca0N! 1cc18e0b2a
Fix unordered list interpretation
Fixed a bug which closed the HTML unordered list tag prematurely if the
file buffer ended before the end of the line.
2022-03-22 17:44:13 -03:00
luca0N! 46bd5333a8
Fix crash on rebuild
Fixed a bug which caused SWG to crash when rebuilding a website which
has been build before (a website with an existing "output" directory).
2022-03-22 17:27:40 -03:00
luca0N! d424e85466
Ignore .swg_ignore directory
SWG now ignores everything inside the .swg_ignore directory.
2022-03-22 17:03:49 -03:00
luca0N! 5ae637a52d
Compile non-blog Markdown files
SWG now compiles Markdown files that aren't meant to be interpreted as
blog articles, such as index pages.
2022-03-21 23:55:36 -03:00
luca0N! b8b1228720
Copy website files to output
SWG now copies non-special files (files that aren't used by SWG and
Markdown files) to the output directory (such as CSS files).
2022-03-21 23:08:23 -03:00
luca0N! c4d83a9eef
Add hyperlink support to MarkdownParser
MarkdownParser now supports hyperlinks.
2022-03-08 18:00:41 -03:00
luca0N! 99e2f412cd
Fix generated blog page contents
SWG now creates a proper HTML file with the .html extension set
correctly and puts the article contents inside of the main HTML
template.
2022-03-04 18:20:08 -03:00
luca0N! ba706016b9
Fix blog directory structure
Blog contents are now saved on a new subdirectory of "output" called
"blog".
2022-03-04 17:47:33 -03:00
luca0N! 7eb540099e
Fix output directory structure builds
Fixed a bug which created multiple subdirectories with blogs containing
more than one article.
2022-03-03 18:39:30 -03:00
luca0N! 5ecf95a4bf
Finished unordered list implementation
Finished the unordered list implementation in MarkdownParser.
2022-03-03 18:00:52 -03:00
luca0N! 58710d07c5
Add initial <ul> list support
Added initial support for unordered lists.  This update adds <li> tags,
but doesn't add <ul> tags.
2022-03-02 18:51:36 -03:00
luca0N! 81b523d312
Added documentation information 2022-03-02 18:41:21 -03:00
luca0N! b0f1b66956
Added example configuration file
Added an example .ini-like configuration file, required by SWG.
2022-03-02 18:39:37 -03:00
luca0N! 4c47a02f61
Fix MarkdownParser paragraph interpretation
Fixed a bug that added multiple paragraph HTML tags on non-paragraph new
lines.
2022-03-02 18:08:37 -03:00