You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for considering contributing to **LocalSiteMap**! Contributions, whether they are bug fixes, new features, or improvements to the documentation, are always welcome. Before contributing, please read the following guidelines to ensure smooth collaboration.
4
+
5
+
## Getting Started
6
+
7
+
1.**Fork the Repository**
8
+
Create a fork of this repository to your GitHub account and clone it locally.
9
+
10
+
2.**Set Up the Environment**
11
+
Ensure you have Python 3.6+ installed. You should also install compatible versions of the necessary dependencies for the project.
12
+
13
+
3.**Run Tests**
14
+
Before making changes, run tests to confirm that everything works.
15
+
16
+
> [!TIP]
17
+
> We sometimes include testing scripts in our projects for easy testing.
18
+
19
+
## How to Contribute
20
+
21
+
1.**Report Issues**
22
+
Use the [GitHub Issues page](https://github.com/Infinitode/LocalSiteMap/issues) to report bugs or suggest features. Please include:
23
+
- A clear description of the issue or suggestion.
24
+
- Steps to reproduce (for bugs).
25
+
26
+
2.**Make Changes**
27
+
- Use clear and descriptive commit messages.
28
+
- (Optional) Write tests to show new functionality.
29
+
- Ensure the code is **readable**. You can learn more about Python code readability here: https://peps.python.org/pep-0008/.
30
+
31
+
3.**Submit a Pull Request**
32
+
- Push your changes to a feature branch in your fork.
33
+
- Submit a pull request with a detailed explanation of what you've changed or added.
34
+
- Ensure your PR passes all automated tests and adheres to the contribution guidelines.
35
+
36
+
## Community Guidelines
37
+
38
+
To maintain a positive and collaborative community, we ask that all contributors adhere to the following principles:
39
+
40
+
1.**Be Respectful**
41
+
Treat others with respect, regardless of their background or expertise.
42
+
43
+
2.**Provide Constructive Feedback**
44
+
Offer helpful and actionable suggestions during code reviews.
45
+
46
+
3.**Follow Licensing Requirements**
47
+
Ensure that any derivative works comply with the [license](https://github.com/infinitode/localsitemap/blob/main/LICENSE).
48
+
49
+
By contributing, you agree to abide by these guidelines and this project's [license](https://github.com/infinitode/localsitemap/blob/main/LICENSE). Thank you for helping make **LocalSiteMap** better!
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to make derivative works based on the Software, provided that any substantial changes to the Software are clearly distinguished from the original work and are distributed under a different name.
4
+
5
+
The original copyright notice and disclaimer must be retained in all copies or substantial portions of the Software.
6
+
7
+
THE SOFTWARE IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
LocalSiteMap is an open-source Python package designed for generating sitemaps from local files. It tracks `HTML` and `HTM` files, and generates complete sitemaps for the root website, including directories.
9
+
10
+
### Changes in version 1.0.0:
11
+
- Added initial package code, with automatic directory crawling to generate the `sitemap.xml` file.
12
+
13
+
> [!IMPORTANT]
14
+
> `LocalSiteMap` crawls any directory found in the root folder, be sure to add exclusions for important directories, or hidden/resource/file directories.
15
+
16
+
## Installation
17
+
18
+
You can install LocalSiteMap using pip:
19
+
20
+
```bash
21
+
pip install localsitemap
22
+
```
23
+
24
+
## Supported Python Versions
25
+
26
+
LocalSiteMap supports the following Python versions:
27
+
28
+
- Python 3.6
29
+
- Python 3.7
30
+
- Python 3.8
31
+
- Python 3.9
32
+
- Python 3.10
33
+
- Python 3.11/Later (Preferred)
34
+
35
+
Please ensure that you have one of these Python versions installed before using LocalSiteMap. LocalSiteMap may not work as expected on lower versions of Python than the supported.
36
+
37
+
## Features
38
+
39
+
-**Directory Crawling**: `LocalSiteMap` automatically crawls all subdirectories and files under the root directory, recursively adding them to your sitemap.
40
+
-**Automatic Last Modified Checks**: The package also automatically checks when the file has last been modified when adding it to the sitemap.
41
+
--**Customizable**: You can customize the sitemap generation process by excluding specific directories or files.
42
+
-**Easy to Use**: With just a few lines of code, you can generate a complete sitemap for your local website.
43
+
-**Open Source**: LocalSiteMap is open source, allowing you to inspect, modify, and contribute to the code.
44
+
45
+
## Usage
46
+
47
+
### Generating a sitemap
48
+
49
+
```python
50
+
from localsitemap import generate_sitemap
51
+
52
+
# Root site directory
53
+
root_directory =r"path/to/your/website/directory"
54
+
55
+
# Domain of your website (where it is hosted)
56
+
base_url_of_your_website ="https://example.com"
57
+
58
+
# List of file paths or directories to exclude from the sitemap
Contributions are welcome! If you encounter any issues, have suggestions, or want to contribute to LocalSiteMap, please open an issue or submit a pull request on [GitHub](https://github.com/infinitode/localsitemap).
69
+
70
+
## License
71
+
72
+
LocalSiteMap is released under the terms of the **MIT License (Modified)**. Please see the [LICENSE](https://github.com/infinitode/localsitemap/blob/main/LICENSE) file for the full text.
73
+
74
+
**Modified License Clause**
75
+
76
+
The modified license clause grants users the permission to make derivative works based on the LocalSiteMap software. However, it requires any substantial changes to the software to be clearly distinguished from the original work and distributed under a different name.
description="LocalSiteMap is an open-source Python library designed to make dataset analysis much easier by generating helpful detailed plots using matplotlib based on your dataset.",
0 commit comments