afterpython 0.3.0__py3-none-any.whl → 0.3.1__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.
- afterpython/builders/faq_json.py +13 -12
- {afterpython-0.3.0.dist-info → afterpython-0.3.1.dist-info}/METADATA +1 -1
- {afterpython-0.3.0.dist-info → afterpython-0.3.1.dist-info}/RECORD +5 -5
- {afterpython-0.3.0.dist-info → afterpython-0.3.1.dist-info}/WHEEL +0 -0
- {afterpython-0.3.0.dist-info → afterpython-0.3.1.dist-info}/entry_points.txt +0 -0
afterpython/builders/faq_json.py
CHANGED
|
@@ -24,20 +24,21 @@ def build_faq_json():
|
|
|
24
24
|
click.echo("No faq.yml found, skip building faq.json")
|
|
25
25
|
return
|
|
26
26
|
|
|
27
|
-
click.echo("Building faq.json...")
|
|
28
|
-
|
|
29
27
|
raw = read_yaml(faq_yml_path)
|
|
30
28
|
if raw is None:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
29
|
+
click.echo("faq.yml is empty, skip building faq.json")
|
|
30
|
+
return
|
|
31
|
+
|
|
32
|
+
click.echo("Building faq.json...")
|
|
33
|
+
|
|
34
|
+
items = [
|
|
35
|
+
{
|
|
36
|
+
"question": str(item["question"]),
|
|
37
|
+
"answer": str(item["answer"]),
|
|
38
|
+
"category": str(item["category"]) if item.get("category") else "",
|
|
39
|
+
}
|
|
40
|
+
for item in raw
|
|
41
|
+
]
|
|
41
42
|
|
|
42
43
|
with open(build_path / "faq.json", "w") as f:
|
|
43
44
|
json.dump(items, f, indent=2)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: afterpython
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.1
|
|
4
4
|
Summary: CLI tool to streamline Python package maintenance and generate a dedicated project website
|
|
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
|
|
@@ -5,7 +5,7 @@ afterpython/_paths.py,sha256=FTwQ7necKYuRosCyMZPfv1eqaEmGIsyqd3yXpm-WQTA,1584
|
|
|
5
5
|
afterpython/_typing.py,sha256=FbphSGoujPuTfCZqt0HaKQrBgzhRpCOEAEQU6Cbl7oA,145
|
|
6
6
|
afterpython/builders/__init__.py,sha256=FDc-mChfq7zZWbjp7qZuOnXir_H3eg2wHAMgQb2_oKw,902
|
|
7
7
|
afterpython/builders/content_json.py,sha256=-LTkeA8oA6XEudc2b1H7U0-UwcJlHn7xgICeweMYrG0,4805
|
|
8
|
-
afterpython/builders/faq_json.py,sha256=
|
|
8
|
+
afterpython/builders/faq_json.py,sha256=mMfFepRBL_1QYO0tQ6orf5ESo2LVntk55nfFzencViM,1193
|
|
9
9
|
afterpython/builders/index_md.py,sha256=SDVHnVftL4D1AA8jw2YvRdTem_Ho8v8DcrORVjVtW8A,3762
|
|
10
10
|
afterpython/builders/jupyter_notebook.py,sha256=8yjgwWBaHfEzvN90j4biR6-RaTUHeIQ59h4NKethHOk,9693
|
|
11
11
|
afterpython/builders/llms_txt.py,sha256=9x-B1i1buTDJt4zGs8nugyto_pI5QIp7WUBcv-zpcso,9226
|
|
@@ -57,7 +57,7 @@ afterpython/tools/pre_commit.py,sha256=oNsrUkPI13rSSBSyhyTTKPnQGhDxLIPYhxu6kL0fD
|
|
|
57
57
|
afterpython/tools/pyproject.py,sha256=hz-DOf-pkGBF2m_RqEZipAaO-NDbsLxrrc65LWAIwLA,3698
|
|
58
58
|
afterpython/utils.py,sha256=fVa3jIzCvhn7QA7N0M6d_pvojpPFrN-hae8trUYhPKU,11701
|
|
59
59
|
afterpython/version.py,sha256=hihRV1S-gc1m46OaXD32ikkEkqzs-Gtq7AcAqOQV-wY,1603
|
|
60
|
-
afterpython-0.3.
|
|
61
|
-
afterpython-0.3.
|
|
62
|
-
afterpython-0.3.
|
|
63
|
-
afterpython-0.3.
|
|
60
|
+
afterpython-0.3.1.dist-info/WHEEL,sha256=q5IF0q2xCp3ktUFRCVWsQLjl2ChNlWXBJtnI1LCGdJ8,80
|
|
61
|
+
afterpython-0.3.1.dist-info/entry_points.txt,sha256=roa0PDgBueM1JPbRG0G2OSxzaN394OUL_oS9iEwVLBc,80
|
|
62
|
+
afterpython-0.3.1.dist-info/METADATA,sha256=OQnF1DZiQZxb84NLUYhQWMHSXpu68mErYGFRqFntY68,6218
|
|
63
|
+
afterpython-0.3.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|