Liking cljdoc? Tell your friends :D

sitemap.core

Library for sitemap generation and validation.

Library for sitemap generation and validation.
raw docstring

*extension*clj

source

chunk-sizeclj

source

encoding-utf-8clj

source

generate-sitemapclj

(generate-sitemap url-entries)

Render Clojure data structures to a String of sitemap XML.

Render Clojure data structures to a String of sitemap XML.
sourceraw docstring

generate-sitemap*clj

(generate-sitemap* url-entries)

Render Clojure data structures to a seq of sitemap XMLs, chunked at the maximum sitemap size (50,000).

Render Clojure data structures to a seq of sitemap XMLs, chunked at the maximum sitemap
size (50,000).
sourceraw docstring

generate-sitemap-and-saveclj

(generate-sitemap-and-save path url-entries)

Render Clojure data structures to a string of sitemap XML and save it to file. Does not check whether the number of url-entries is greater than allowed.

Render Clojure data structures to a string of sitemap XML and save it to file. Does not
check whether the number of url-entries is greater than allowed.
sourceraw docstring

generate-sitemap-and-save*clj

(generate-sitemap-and-save* absolute-root basename url-entries)
(generate-sitemap-and-save* absolute-root basename url-entries opts)

Render Clojure data structures to sitemap XML, emitting a sitemap index with sitemap chunks when the number of url-entries is greater than permitted for a single sitemap (50,000). The output file name(s) will be based on the basename.

Example: (generate-sitemap-and-save* "https://example.com" "dir/sitemap" url-entries) will emit dir/sitemap.xml when count(url-entries) <= 50,000, otherwise will emit dir/sitemap.xml (index, pointing to https://example.com/sitemap-0.xml and so on), dir/sitemap-0.xml, dir/sitemap-1.xml, and so on.

Render Clojure data structures to sitemap XML, emitting a sitemap index with sitemap chunks
when the number of url-entries is greater than permitted for a single sitemap (50,000). The
output file name(s) will be based on the basename.

Example: (generate-sitemap-and-save* "https://example.com" "dir/sitemap" url-entries)
will emit dir/sitemap.xml when count(url-entries) <= 50,000, otherwise will emit
dir/sitemap.xml (index, pointing to https://example.com/sitemap-0.xml and so on),
dir/sitemap-0.xml, dir/sitemap-1.xml, and so on.
sourceraw docstring

generate-sitemap-indexclj

(generate-sitemap-index sitemap-paths)

Generates sitemap index XML for the sitemap-paths, returned as a string.

Generates sitemap index XML for the `sitemap-paths`, returned as a string.
sourceraw docstring

path-generatorclj

Default output path generator

Default output path generator
sourceraw docstring

save-sitemapclj

(save-sitemap f sitemap-xml)
source

SitemapPathGeneratorcljprotocol

chunk-pathclj

(chunk-path _ basename i)

Returns the output path for a sitemap 'chunk' (a sub-sitemap of a sitemap index) with index i.

Returns the output path for a sitemap 'chunk' (a sub-sitemap of a sitemap index) with index i.

root-pathclj

(root-path _ basename)

Returns the output path for a sitemap or sitemap index.

Returns the output path for a sitemap or sitemap index.
source

validate-sitemapclj

(validate-sitemap in)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close