Commit Graph

39 Commits

Author SHA1 Message Date
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
luca0N! 9f94172050
Added paragraph support to MarkdownParser
MarkdownParser will now recognize and insert paragraphs.
2022-03-02 17:44:07 -03:00
luca0N! 3cc372de97
Fix COPYING files
The LGPL license should be in the COPYING.LESSER file.
2022-02-25 18:56:20 -03:00
luca0N! d0c30d4ea7
Use MarkdownParser on WebsiteBuilder 2022-02-25 18:53:11 -03:00
luca0N! 333f59131a
Add Markdown parser
Added initial C++ Markdown support.
2022-02-25 18:52:16 -03:00
luca0N! 5ca4519ad2
Update README 2022-02-24 22:59:16 -03:00
luca0N! 98b74941db
Add original source files 2022-02-24 22:40:14 -03:00
luca0N! 6e1bdc8870
Removed duplicate license file 2022-02-24 22:39:07 -03:00
luca0N! 0525b0d288
Fix copyright files
Added missing GPL license and moved LGPL license to "COPYING.LESSER".
2022-02-24 22:30:25 -03:00
luca0N! 4c6d176167
Add info files 2022-02-24 22:18:14 -03:00