Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove invalid entries from generated sitemap.xml #3909

Open
paulroemer opened this issue Nov 13, 2024 · 0 comments
Open

Remove invalid entries from generated sitemap.xml #3909

paulroemer opened this issue Nov 13, 2024 · 0 comments

Comments

@paulroemer
Copy link
Collaborator

paulroemer commented Nov 13, 2024

Sitemap generation does not ignore pages that use the url frontmatter attribute and apparently also pages that don’t have any frontmatter attributes. That’s an oversight in DSP itself.

The quickfix is to remove the actual Vaadin 7/8 articles as they are anyway only used for BoV generation.

Affected docs versions: Vaadin 7/8

To reproduce:

for url in $(curl https://vaadin.com/docs/v8/sitemap/sitemap-0.xml | xmllint --xpath '//*[local-name() = "loc"]/text()' - ); do CURL_RESULT=$(curl -s -o /dev/null -X GET -I -w "%{http_code}" $url); if [ $CURL_RESULT = 404 ]; then   echo "$url"; fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant