I am seeing extra (unecessary?) dashes (1), (2), and (3) between each line in the output sitemap...

md_sitemap_dashes

Maybe the dashes followed by the two indented lines is a deliberate and valuable feature of the format; I've no idea so I thought I would ask for advise.

By contrast (right or wrong, better or worse?) the LLMs.txt Gen module, out outputs to data like this...

llms_ttx_gen_output

Issue fork mdsitemap-3577463

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

sirclickalot created an issue. See original summary.

sirclickalot’s picture

Issue summary: View changes
StatusFileSize
new99.84 KB
sirclickalot’s picture

Issue summary: View changes
StatusFileSize
new60.62 KB
d.fisher’s picture

Version: 1.0.2 » 1.x-dev
Status: Active » Needs work

Thank you for opening this issue. This formatting is standard markdown for an unordered lists but I agree the approach in the LLMs.txt Gen module you've included is better as it reduces the number of lines and presents the title and url as markdown link which makes for sense generally.

Setting version to 1.x-dev and marking as needs work.

Tasks: Alter format of LLM sitemap from:

-
  Title: {title}
  URL: {url}

to

- [{title}]({url})
sirclickalot’s picture

Thanks for clarifying that @d.fisher, much appreciated.

d.fisher’s picture

Status: Needs work » Needs review

@sirclickalot I've create a merge request !6 that should take care of tidying these up onto one line and formatting them as links instead of key value list entries. I am still testing locally but if you want to take a look I'm pretty sure that's the result you are looking for?

sirclickalot’s picture

StatusFileSize
new55.83 KB

@d.fisher,
I applied patch 6 and all looking much better now as you see here...

https://www.drupal.org/files/issues/2026-03-06/mdsitemap_better_tighter_output.png

d.fisher’s picture

Status: Needs review » Reviewed & tested by the community

Excellent. Let's mark this one RTBC and get it rolled out.

d.fisher’s picture

Status: Reviewed & tested by the community » Fixed

Fixed in 1.0.3 release.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.