yosefserkez/Generate content map

Generate a map of all content found in the site directory

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
Runtime
Deprecated runtime
namedescriptionrequireddefault
file_typesfile types to include in the index.yesmd
meta_keyonly include pages with a given key in the metadata (currently only one supported)no""
meta_valueonly include pages with a given value matching the provided key in the metadata (requires meta_key to be set, and only one supported)no""
exclude_pathspaths to exclude from being indexed (ie: node_modules)no""
output_filename and location for the json file for output. defaults to "./site_content_map". Set to empty to skip saving file (maybe you only want to pass it to another action)yessite_content_map
website_rootroot path to the website used when setting a path to the original fileno""
output_content_typetype of content to return in output if desired. Options are markdown or html. defaults to markdown.yesmarkdown
output_content_max_lengthIf set will trim the output content to a maximum length. Useful for generating excerpts rather.noAll content
namedescription
contentsA json object containing the each indexed page with the content and metadata.