-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (82 loc) · 4.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="../../css/zen.css">
<link rel="stylesheet" href="../../css/icons.css">
<link rel="stylesheet" href="../../css/icons.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.21.0/themes/prism-tomorrow.min.css" rel="stylesheet" />
</head>
<body class="zen">
<z-container-fluid class="theme-cta">
<z-row>
<z-col>
<div class="center">
<h1 class="headline">Sitemap Generator</h1>
<p class="lead">Use this tool to generate a sitemap for your website</p>
</div>
</z-col>
</z-row>
</z-container-fluid>
<z-container>
<z-row>
<z-col>
<section id="content-area">
<p>
Set up and use the zenCSS Sitemap Generator tool to generate a sitemap for your local website. The script scans a specified directory for HTML files and generates a sitemap in XML format that is compatible with Google's requirements.
</p>
<h2>Prerequisites</h2>
<ul>
<li>Python 3.x installed on your system</li>
<li>Basic familiarity with running Python scripts and using the command line</li>
<li>Files are in .html format</li>
</ul>
<h2>Installation</h2>
<ol>
<li><strong>Ensure Python is Installed</strong>:
<p>Verify Python installation by running <code>python3 --version</code> in your terminal. You should see the Python version number if it's installed correctly.</p>
</li>
<li><strong>Download the Script</strong>:
<p>Download or create the <code>sitemap_generator.py</code> script in a directory of your choice.</p>
</li>
</ol>
<h2>Usage</h2>
<ol>
<li><strong>Modify the Script</strong>:
<p>Open the script in a text editor.</p>
<p>Replace <code>http://yourwebsite.com/</code> with your actual website's URL.</p>
<p>Update the path in <code>generate_sitemap('/path/to/your/local/site')</code> to the path where your website files are located.</p>
</li>
<li><strong>Run the Script</strong>:
<pre><code>python3 sitemap_generator.py</code></pre>
</li>
<li><strong>Check the Output</strong>:
<p>The script will generate a file named <code>sitemap.xml</code> in the same directory.</p>
<p>Verify that the <code>sitemap.xml</code> file contains the correct URLs of your website.</p>
<p>Optional. Validate your sitemap at <a href="https://www.xml-sitemaps.com/validate-xml-sitemap.html" target="_blank">https://www.xml-sitemaps.com/validate-xml-sitemap.html</a></p>
</li>
</ol>
<h2>Troubleshooting</h2>
<ul>
<li>Python Not Found: Make sure Python is correctly installed and added to your system PATH.</li>
<li>Script Errors: Ensure the path to your website files is correct and that the script has permission to read from the directory and write to the current directory.</li>
</ul>
<h2>Contributing</h2>
<p>
Feel free to fork this project and submit pull requests with any enhancements. For major changes, please open an issue first to discuss what you would like to change.
</p>
</section>
</z-col>
</z-row>
</z-container>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.21.0/prism.min.js"></script>
<script src="script.js" async defer></script>
<script src="/js/zencss.js" async defer></script>
</body>
</html>