afterpython 0.1.0.dev6__tar.gz → 0.1.0.dev7__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.
Files changed (46) hide show
  1. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/PKG-INFO +10 -1
  2. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/README.md +9 -0
  3. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/builders/metadata.py +1 -1
  4. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cli/commands/sync.py +14 -9
  5. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/tools/myst.py +1 -1
  6. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/pyproject.toml +1 -1
  7. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/.pre-commit-config.yaml +0 -0
  8. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/__init__.py +0 -0
  9. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/_io/toml.py +0 -0
  10. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/_io/yaml.py +0 -0
  11. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/_paths.py +0 -0
  12. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/_typing.py +0 -0
  13. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/builders/__init__.py +0 -0
  14. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/builders/molab.py +0 -0
  15. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cli/__init__.py +0 -0
  16. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cli/commands/build.py +0 -0
  17. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cli/commands/bump.py +0 -0
  18. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cli/commands/check.py +0 -0
  19. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cli/commands/clean.py +0 -0
  20. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cli/commands/commit.py +0 -0
  21. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cli/commands/commitizen.py +0 -0
  22. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cli/commands/dev.py +0 -0
  23. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cli/commands/format.py +0 -0
  24. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cli/commands/init.py +0 -0
  25. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cli/commands/install.py +0 -0
  26. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cli/commands/pre_commit.py +0 -0
  27. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cli/commands/preview.py +0 -0
  28. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cli/commands/release.py +0 -0
  29. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cli/commands/start.py +0 -0
  30. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cli/commands/update.py +0 -0
  31. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cli/main.py +0 -0
  32. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/const.py +0 -0
  33. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/cz.toml +0 -0
  34. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/main.py +0 -0
  35. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/pcu.py +0 -0
  36. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/templates/deploy-workflow-template.yml +0 -0
  37. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/templates/release-workflow-template.yml +0 -0
  38. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/templates/ruff-template.toml +0 -0
  39. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/tools/_afterpython.py +0 -0
  40. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/tools/_git.py +0 -0
  41. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/tools/commitizen.py +0 -0
  42. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/tools/github_actions.py +0 -0
  43. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/tools/pre_commit.py +0 -0
  44. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/tools/pyproject.py +0 -0
  45. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/utils.py +0 -0
  46. {afterpython-0.1.0.dev6 → afterpython-0.1.0.dev7}/afterpython/version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: afterpython
3
- Version: 0.1.0.dev6
3
+ Version: 0.1.0.dev7
4
4
  Summary: CLI tool for AfterPython
5
5
  Keywords: package-maintenance,project-website,static-site-generator,developer-tools,documentation,cli-tool,ci/cd,mystmd,semantic-release,python-packaging
6
6
  Author: Stephen Yau
@@ -82,7 +82,16 @@ First-time maintainers must learn multiple tools and concepts, e.g. [MyST], [Sem
82
82
  - [ ] **⚡ Full-text search** across **ALL** your content in your website — docs, blogs, tutorials, everything
83
83
  - [ ] **🤖 Embedded AI Chatbot** that answers questions directly using an in-browser LLM — at no cost
84
84
 
85
+ ---
86
+ ## Project Website
87
+ > The project website for `afterpython` is created using `afterpython` itself. See the [**website**](https://afterpython.afterpython.org).
88
+ <picture>
89
+ <source media="(prefers-color-scheme: dark)" srcset="afterpython/static/website-dark.png">
90
+ <source media="(prefers-color-scheme: light)" srcset="afterpython/static/website-light.png">
91
+ <img alt="Project Website" src="afterpython/static/website-light.png">
92
+ </picture>
85
93
 
94
+ ---
86
95
  ## Installation
87
96
  ```bash
88
97
  # install afterpython as a dev dependency
@@ -46,7 +46,16 @@ First-time maintainers must learn multiple tools and concepts, e.g. [MyST], [Sem
46
46
  - [ ] **⚡ Full-text search** across **ALL** your content in your website — docs, blogs, tutorials, everything
47
47
  - [ ] **🤖 Embedded AI Chatbot** that answers questions directly using an in-browser LLM — at no cost
48
48
 
49
+ ---
50
+ ## Project Website
51
+ > The project website for `afterpython` is created using `afterpython` itself. See the [**website**](https://afterpython.afterpython.org).
52
+ <picture>
53
+ <source media="(prefers-color-scheme: dark)" srcset="afterpython/static/website-dark.png">
54
+ <source media="(prefers-color-scheme: light)" srcset="afterpython/static/website-light.png">
55
+ <img alt="Project Website" src="afterpython/static/website-light.png">
56
+ </picture>
49
57
 
58
+ ---
50
59
  ## Installation
51
60
  ```bash
52
61
  # install afterpython as a dev dependency
@@ -23,7 +23,7 @@ def convert_paths():
23
23
  markdown_text = metadata["description"]
24
24
 
25
25
  # Replace with the correct paths
26
- updated_markdown = markdown_text.replace("./afterpython/static/", "/")
26
+ updated_markdown = markdown_text.replace("afterpython/static/", "/")
27
27
 
28
28
  # Write back to metadata.json
29
29
  metadata["description"] = updated_markdown
@@ -55,15 +55,20 @@ def sync():
55
55
  company_url = str(_from_tomlkit(afterpython["company"]).get("url", ""))
56
56
  website_url = str(_from_tomlkit(afterpython["website"]).get("url", ""))
57
57
  authors = pyproject.authors
58
- nav_bar = [
59
- {
60
- "title": content_type.capitalize() + "s",
61
- "url": f"{website_url}/{content_type}",
62
- }
63
- if website_url
64
- else ""
65
- for content_type in CONTENT_TYPES
66
- ]
58
+ if company_name and company_url:
59
+ nav_bar = [{"title": company_name, "url": company_url}]
60
+ else:
61
+ nav_bar = []
62
+ if website_url:
63
+ nav_bar.extend(
64
+ [
65
+ {
66
+ "title": content_type.capitalize() + "s",
67
+ "url": f"{website_url}/{content_type}",
68
+ }
69
+ for content_type in CONTENT_TYPES
70
+ ]
71
+ )
67
72
 
68
73
  _sync_authors_yml(authors)
69
74
 
@@ -154,7 +154,7 @@ def init_myst():
154
154
  },
155
155
  "site": {
156
156
  "options": {
157
- "favicon": "../static/favicon.ico",
157
+ "favicon": "../static/favicon.svg",
158
158
  "logo": "../static/logo.svg",
159
159
  "logo_dark": "../static/logo.svg",
160
160
  "analytics_google": "{{ GOOGLE_ANALYTICS_ID }}",
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "afterpython"
3
- version = "0.1.0.dev6"
3
+ version = "0.1.0.dev7"
4
4
  description = "CLI tool for AfterPython"
5
5
  license = "Apache-2.0"
6
6
  authors = [