Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
a-gubskiy committed Dec 20, 2024
1 parent bcd3b44 commit c3c4e8f
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ X.Web.Sitemap is a library for generating and managing sitemaps in .NET applicat

## Usage example

Below is an example of basic usage in a non-testable manner
### Sitemap usage example
Below is an example of basic usage:

```cs
class Program
Expand All @@ -20,7 +21,7 @@ Below is an example of basic usage in a non-testable manner
sitemap.Add(new Url
{
ChangeFrequency = ChangeFrequency.Hourly,
Location = "http://www.example.com",
Location = "https://www.example.com",
Priority = 0.8,
TimeStamp = DateTime.Now
});
Expand Down Expand Up @@ -57,7 +58,8 @@ Below is an example of basic usage in a non-testable manner
}
```

Below is a more comprehensive example that demonstrates how to create many sitemaps and how to add them to a sitemap index file in a unit-testable fashion.
### SitemapGenerator usage example
Below is a more comprehensive example that demonstrates how to create multiple sitemaps and how to add them to a sitemap index file.

```cs
public class SitemapGenerationWithSitemapIndexExample
Expand Down Expand Up @@ -155,3 +157,11 @@ Below is a more comprehensive example that demonstrates how to create many sitem
}
}
```

---

## Contributing
Contributions to the `X.Web.Sitemap` library are welcome. Please ensure to follow the contributing guidelines specified in the repository for submitting issues, feature requests, or pull requests.

## License
The `X.Web.Sitemap` library is released under [MIT license](https://raw.githubusercontent.com/a-gubskiy/X.Web.Sitemap/master/LICENSE.md).

0 comments on commit c3c4e8f

Please sign in to comment.