<commit_before>Sitemap Guide
==================

Sitemap
-------

Sitemap are xml files fetched by google to help your site indexation.
You have to tell google were the sitemap with the **Webmaster Tools**

The CMSSitemap will create a sitemap with all the published pages of your cms

Apps
----

Add the following to your project's ``INSTALLED_APPS`` setting::

	INSTALLED_APPS = (
		...
		'django.contrib.sitemaps',
		...
	)

urls.py
-------

In your main ``urls.py`` add the following import at the top of the file:
   	from cms.sitemaps import CMSSitemap

Then add the following line at the **start** of the ``urlpatterns`` definition::

    	urlpatterns = (
	url(r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': {'cmspages': CMSSitemap}}),),
	...
	)
<commit_msg>Corrected the documentation example code<commit_after>Sitemap Guide
==================

Sitemap
-------

Sitemap are xml files fetched by google to help your site indexation.
You have to tell google were the sitemap with the **Webmaster Tools**

The CMSSitemap will create a sitemap with all the published pages of your cms

Apps
----

Add the following to your project's ``INSTALLED_APPS`` setting::

	INSTALLED_APPS = (
		...
		'django.contrib.sitemaps',
		...
	)

urls.py
-------

In your main ``urls.py`` add the following import at the top of the file:
   	from cms.sitemaps import CMSSitemap

Then add the following line at the **start** of the ``urlpatterns`` definition::

    	urlpatterns = (
	url(r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': {'cmspages': CMSSitemap}}),
	...
	)

{'fraction_non_alphanumeric': 0.14454828660436136, 'fraction_numerical': 0.0, 'mean_word_length': 3.655072463768116, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '193043', 'n_tokens_mistral': 536, 'n_tokens_neox': 522, 'n_words': 182}