Liking cljdoc? Tell your friends :D

qy-upup.grok-video-generator.core


extract-year-from-slugclj

(extract-year-from-slug blog-post-slug)

Extracts the year from a Grok AI video generator blog post slug.

Assumes the slug ends with a year in the format '-YYYY'. Returns the year as an integer, or nil if no year is found. For example: (extract-year-from-slug "grok-ai-video-generator-the-ultimate-guide-to-creating-ai-videos-2025") => 2025 (extract-year-from-slug "grok-ai-video-generator-the-ultimate-guide-to-creating-ai-videos") => nil

Extracts the year from a Grok AI video generator blog post slug.

Assumes the slug ends with a year in the format '-YYYY'.
Returns the year as an integer, or nil if no year is found.
For example:
(extract-year-from-slug "grok-ai-video-generator-the-ultimate-guide-to-creating-ai-videos-2025")
=> 2025
(extract-year-from-slug "grok-ai-video-generator-the-ultimate-guide-to-creating-ai-videos")
=> nil
raw docstring

generate-grok-blog-urlclj

(generate-grok-blog-url blog-post-slug)

Generates a URL for a Grok AI video generator blog post on supermaker.ai.

Takes a blog post slug (a string) as input and returns the full URL. For example: (generate-grok-blog-url "grok-ai-video-generator-the-ultimate-guide-to-creating-ai-videos-2025") => "https://supermaker.ai/blog/grok-ai-video-generator-the-ultimate-guide-to-creating-ai-videos-2025"

Generates a URL for a Grok AI video generator blog post on supermaker.ai.

Takes a blog post slug (a string) as input and returns the full URL.
For example:
(generate-grok-blog-url "grok-ai-video-generator-the-ultimate-guide-to-creating-ai-videos-2025")
=> "https://supermaker.ai/blog/grok-ai-video-generator-the-ultimate-guide-to-creating-ai-videos-2025"
raw docstring

mock-video-dataclj

(mock-video-data blog-post-title)

Generates mock video data for a Grok AI video generator blog post.

Takes a blog post title (a string) as input and returns a map containing mock video metadata. This is a placeholder for actual video data extraction.

For example: (mock-video-data "Grok AI Video Generator: The Ultimate Guide") => {:title "Grok AI Video Generator: The Ultimate Guide", :duration "3:45", :views 12345}

Generates mock video data for a Grok AI video generator blog post.

Takes a blog post title (a string) as input and returns a map
containing mock video metadata.  This is a placeholder for
actual video data extraction.

For example:
(mock-video-data "Grok AI Video Generator: The Ultimate Guide")
=> {:title "Grok AI Video Generator: The Ultimate Guide", :duration "3:45", :views 12345}
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close