site-generator 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ __pycache__/
2
+ *.egg-info/
3
+ .venv/
4
+ dist/
5
+ .DS_Store
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Valley AI LLP
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,58 @@
1
+ Metadata-Version: 2.5
2
+ Name: site-generator
3
+ Version: 0.1.1
4
+ Summary: Static site generator for the Valley AI sites: YAML content plus a Jinja2 template in, HTML out.
5
+ Author: Jordan M. Adler
6
+ License-Expression: MIT
7
+ License-File: LICENSE
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Environment :: Console
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Topic :: Internet :: WWW/HTTP :: Site Management
15
+ Classifier: Topic :: Text Processing :: Markup :: HTML
16
+ Requires-Python: >=3.9
17
+ Requires-Dist: jinja2>=3.1.2
18
+ Requires-Dist: pyyaml>=6.0.1
19
+ Description-Content-Type: text/markdown
20
+
21
+ # site-generator
22
+
23
+ A static site generator. It renders pages from a YAML content file and a Jinja2 template. It also writes the sitemap, `robots.txt`, schema.org JSON-LD and clean URLs, and rewrites internal links to match.
24
+
25
+ It runs on Python 3.9 or later.
26
+
27
+ ## Install
28
+
29
+ Pin a version:
30
+
31
+ ```bash
32
+ pip install site-generator==0.1.1
33
+ ```
34
+
35
+ ## Use
36
+
37
+ Build the sites named in a config file:
38
+
39
+ ```bash
40
+ site-generator \
41
+ --content-dir content \
42
+ --template-dir templates \
43
+ --output-dir dist \
44
+ --config-file content/generator_config.yaml
45
+ ```
46
+
47
+ `generator_config.yaml` lists the sites to build:
48
+
49
+ ```yaml
50
+ sites:
51
+ - config_file: example.yaml
52
+ template_file: example-base.html
53
+ domain: example.com
54
+ ```
55
+
56
+ ## License
57
+
58
+ MIT. See `LICENSE`.
@@ -0,0 +1,38 @@
1
+ # site-generator
2
+
3
+ A static site generator. It renders pages from a YAML content file and a Jinja2 template. It also writes the sitemap, `robots.txt`, schema.org JSON-LD and clean URLs, and rewrites internal links to match.
4
+
5
+ It runs on Python 3.9 or later.
6
+
7
+ ## Install
8
+
9
+ Pin a version:
10
+
11
+ ```bash
12
+ pip install site-generator==0.1.1
13
+ ```
14
+
15
+ ## Use
16
+
17
+ Build the sites named in a config file:
18
+
19
+ ```bash
20
+ site-generator \
21
+ --content-dir content \
22
+ --template-dir templates \
23
+ --output-dir dist \
24
+ --config-file content/generator_config.yaml
25
+ ```
26
+
27
+ `generator_config.yaml` lists the sites to build:
28
+
29
+ ```yaml
30
+ sites:
31
+ - config_file: example.yaml
32
+ template_file: example-base.html
33
+ domain: example.com
34
+ ```
35
+
36
+ ## License
37
+
38
+ MIT. See `LICENSE`.
@@ -0,0 +1,36 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.27"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "site-generator"
7
+ version = "0.1.1"
8
+ description = "Static site generator for the Valley AI sites: YAML content plus a Jinja2 template in, HTML out."
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ license-files = ["LICENSE"]
12
+ requires-python = ">=3.9"
13
+ authors = [{ name = "Jordan M. Adler" }]
14
+ classifiers = [
15
+ "Development Status :: 4 - Beta",
16
+ "Environment :: Console",
17
+ "Intended Audience :: Developers",
18
+ "Operating System :: OS Independent",
19
+ "Programming Language :: Python :: 3",
20
+ "Programming Language :: Python :: 3 :: Only",
21
+ "Topic :: Internet :: WWW/HTTP :: Site Management",
22
+ "Topic :: Text Processing :: Markup :: HTML",
23
+ ]
24
+ dependencies = [
25
+ "pyyaml>=6.0.1",
26
+ "jinja2>=3.1.2",
27
+ ]
28
+
29
+ [project.scripts]
30
+ site-generator = "site_generator.core:main"
31
+
32
+ [tool.hatch.build.targets.wheel]
33
+ packages = ["src/site_generator"]
34
+
35
+ [tool.hatch.build.targets.sdist]
36
+ only-include = ["src", "README.md", "pyproject.toml", "LICENSE"]
@@ -0,0 +1,5 @@
1
+ """Static site generator: YAML content plus a Jinja2 template in, HTML out."""
2
+
3
+ from .core import ParameterizedSiteGenerator, main
4
+
5
+ __all__ = ["ParameterizedSiteGenerator", "main"]