[WIP] Initial commit for qsgen3

This commit is contained in:
2025-05-30 20:37:56 +02:00
parent 106b66753f
commit 75105821fd
138 changed files with 12471 additions and 7 deletions

View File

@ -0,0 +1,2 @@
##
# @brief Add the blog list to the index file if blog_in_index is true.

View File

@ -0,0 +1,2 @@
##
# @brief Cache the state of blog files and identify changes.

View File

@ -0,0 +1,2 @@
##
# @brief Generate the file blog/index.tmp.html.

View File

@ -0,0 +1,2 @@
##
# @brief Generate the www_root/blog/index.html file.

View File

@ -0,0 +1,2 @@
##
# @brief Generate or update blog files or export metadata based on argument.

View File

@ -0,0 +1,4 @@
##
# @brief Remove leftover tags from the content.
# @param content The content to be cleaned.
# @return The cleaned content.

View File

@ -0,0 +1,3 @@
##
# @brief Update #updated and #version tags in the provided file.
# @param file_path The path to the file to be updated.

View File

@ -0,0 +1,4 @@
##
# @brief Convert the filename to lowercase and replace spaces with dashes.
# @param filename The original filename.
# @return The modified filename.

View File

@ -0,0 +1,3 @@
##
# @brief Display help information for the script.
# @param ... Additional arguments (unused in this function).

View File

@ -0,0 +1,4 @@
##
# @brief Convert #showimg tags to HTML img tags.
# @param content The content containing #showimg tags.
# @return The content with #showimg tags replaced by HTML img tags.

View File

@ -0,0 +1,4 @@
##
# @brief Update #updated and #version tags in the provided content.
# @param content The content to be updated.
# @return The updated content.

View File

@ -0,0 +1,4 @@
##
# @brief Convert #link tags to clickable HTML links.
# @param content The content containing #link tags.
# @return The content with #link tags replaced by HTML links.

View File

@ -0,0 +1,2 @@
##
# @brief List all blog files and store them in an array.

View File

@ -0,0 +1,2 @@
##
# @brief List all page files and store them in an array.

View File

@ -0,0 +1,4 @@
##
# @brief Display a message with specific formatting based on message type.
# @param type The type of message (e.g., std, info, debug, etc.)
# @param ... The keys or additional strings to be formatted and displayed.

View File

@ -0,0 +1,4 @@
##
# @brief Convert QStags to HTML using Perl.
# @param content The content containing QStags.
# @return The content with QStags converted to HTML.

View File

@ -0,0 +1,2 @@
##
# @brief Generate all new and updated pages.

View File

@ -0,0 +1,3 @@
##
# @brief Cache the state of page files and identify changes.
# @return Array of pages to be processed.

View File

@ -0,0 +1,4 @@
##
# @brief Convert QStags to HTML using Zsh regex module.
# @param content The content containing QStags.
# @return The content with QStags converted to HTML.

View File

@ -0,0 +1,3 @@
##
# @brief Run the configured engine to process the input file.
# @param input The input file to be processed.

View File

@ -0,0 +1,2 @@
##
# @brief Generate the sitemap files if conditions are met.

View File

@ -0,0 +1,3 @@
##
# @brief Display the version information of the script.
# @param ... Additional arguments (unused in this function).

View File

@ -0,0 +1,4 @@
##
# @brief Embed a YouTube video in the provided content.
# @param content The content containing #ytvideo tags.
# @return The content with #ytvideo tags replaced by YouTube iframe embeds.