afterpython 0.1.0.dev6__py3-none-any.whl → 0.1.0.dev7__py3-none-any.whl

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.
@@ -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
 
afterpython/tools/myst.py CHANGED
@@ -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
  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
@@ -5,7 +5,7 @@ afterpython/_io/yaml.py,sha256=raksve_gaIFJim8lQrq-kQHkRjTloed7CT2FY0oUJSg,654
5
5
  afterpython/_paths.py,sha256=1NrPQ4erjA_rIvDggx7QRY4_01zyU-yht9s95Q-4YgM,1584
6
6
  afterpython/_typing.py,sha256=kmxBRbhft85C8Ycm5BFBP258Jozrw9tsl7KHOVPcF_o,146
7
7
  afterpython/builders/__init__.py,sha256=MOv3spIh-ABwyUtvQAHhPZ2horWb0D93WNmOPNAzKYo,215
8
- afterpython/builders/metadata.py,sha256=IL-fe3GJYbAaqtMvw5HhpZJ7O57h5GX2GJtKKdWVab8,1275
8
+ afterpython/builders/metadata.py,sha256=fj7rlawZCh43aJrBBfcmOTlYew1aW-om3QTpVulKbOk,1273
9
9
  afterpython/builders/molab.py,sha256=Qji8piWJB1tbzhgtld0pQWIsUA7d7RsGCfnoLVKd5EA,3714
10
10
  afterpython/cli/__init__.py,sha256=1vLZylRMnGaV7cJ-kHO96dChp33_P4fBIJ_Vi-yyZg4,85
11
11
  afterpython/cli/commands/build.py,sha256=GkO06D8ktaH3OZWcZhuh463n4vFE1A_OE-iwRuagQdM,8051
@@ -22,7 +22,7 @@ afterpython/cli/commands/pre_commit.py,sha256=DdmbkcZgJ7QArAY1y5vODYZmHUXWEIuXRy
22
22
  afterpython/cli/commands/preview.py,sha256=EbuB-dFcgonmqumTb2aHlLpXRiXkGE4DI3ddJdHwcaM,619
23
23
  afterpython/cli/commands/release.py,sha256=6SDEnPtuCL0_XUqWUlvRSKxAv011QqOD0kc5pKu7378,2479
24
24
  afterpython/cli/commands/start.py,sha256=PnO1ECXnYtJxTOoDgG2ZoiVnkJVYNhPT63rabronjZ0,3992
25
- afterpython/cli/commands/sync.py,sha256=PAb6t1sSvRBk_Gl0qCTu-j-6mepgVIZ5S9GzzTlorXE,4476
25
+ afterpython/cli/commands/sync.py,sha256=epgD8VvrkYB1GSKMu4UFQb3-uGjyiLzw8CjtjaGB6zs,4669
26
26
  afterpython/cli/commands/update.py,sha256=f6dzoJIiEod7j44dgnaFe-v7INVdUbopVoWPxv7-Mpo,5491
27
27
  afterpython/cli/main.py,sha256=GMcP7bmOA1glKGPsCuOXcd-9hv2k3BGkk_ofdo8oatw,2660
28
28
  afterpython/const.py,sha256=KsALiC1kERK9BQQdYRXSHdYosxVExxgDN7iGYMAJrZE,158
@@ -36,12 +36,12 @@ afterpython/tools/_afterpython.py,sha256=W88GhtQADB09DV4A24GOYBeYrHsnVVzllLdWFiK
36
36
  afterpython/tools/_git.py,sha256=pOcbP_hb6db3qRlbB4Hlp7MkShkTmUefnIBU2kqoq4I,3211
37
37
  afterpython/tools/commitizen.py,sha256=9aGXsO4tTyDs3s8qS_fiskdSabHqc9XjHwePThybJU0,1469
38
38
  afterpython/tools/github_actions.py,sha256=M3uGLJKOCml1fQBc8W2lkZWsR5p-0UVUolFWvqf5mDo,2866
39
- afterpython/tools/myst.py,sha256=izNEpPmyV9Tut9tSaGxfzDfgb8xC0dTrAmP1Txpnk34,6601
39
+ afterpython/tools/myst.py,sha256=w24zqWRUOLaZIC0twpGM4BF__wldmrgIvbns0FFdunA,6601
40
40
  afterpython/tools/pre_commit.py,sha256=stXUQfR0A6nPMCSuuKO-Icjc5F2z9VsZu2mKkIW1vWI,2193
41
41
  afterpython/tools/pyproject.py,sha256=YwJJAB3lIqYK9wt8UtL4dfCli9UN7uzi3e-vtycB0HE,2325
42
42
  afterpython/utils.py,sha256=WzP34cA0_Mh3F_focTtk-4sSqrIZUpv7PpkPJHpUUzc,6934
43
43
  afterpython/version.py,sha256=hihRV1S-gc1m46OaXD32ikkEkqzs-Gtq7AcAqOQV-wY,1603
44
- afterpython-0.1.0.dev6.dist-info/WHEEL,sha256=YUH1mBqsx8Dh2cQG2rlcuRYUhJddG9iClegy4IgnHik,79
45
- afterpython-0.1.0.dev6.dist-info/entry_points.txt,sha256=roa0PDgBueM1JPbRG0G2OSxzaN394OUL_oS9iEwVLBc,80
46
- afterpython-0.1.0.dev6.dist-info/METADATA,sha256=BP2WPhprUjtWpHJE53UeCuQYj5lio4_S9O9ix4WC8Pw,4848
47
- afterpython-0.1.0.dev6.dist-info/RECORD,,
44
+ afterpython-0.1.0.dev7.dist-info/WHEEL,sha256=YUH1mBqsx8Dh2cQG2rlcuRYUhJddG9iClegy4IgnHik,79
45
+ afterpython-0.1.0.dev7.dist-info/entry_points.txt,sha256=roa0PDgBueM1JPbRG0G2OSxzaN394OUL_oS9iEwVLBc,80
46
+ afterpython-0.1.0.dev7.dist-info/METADATA,sha256=eIAURxz9BQvYkgnlFQm9wXmiApHcOIx5JK555WhO1LY,5296
47
+ afterpython-0.1.0.dev7.dist-info/RECORD,,