zensical-academic 0.1.0__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 (30) hide show
  1. zensical_academic-0.1.0/LICENSE +21 -0
  2. zensical_academic-0.1.0/PKG-INFO +153 -0
  3. zensical_academic-0.1.0/README.md +114 -0
  4. zensical_academic-0.1.0/pyproject.toml +67 -0
  5. zensical_academic-0.1.0/setup.cfg +4 -0
  6. zensical_academic-0.1.0/setup.py +27 -0
  7. zensical_academic-0.1.0/tests/test_package.py +334 -0
  8. zensical_academic-0.1.0/tests/test_templates.py +540 -0
  9. zensical_academic-0.1.0/zensical_academic/__init__.py +306 -0
  10. zensical_academic-0.1.0/zensical_academic/__main__.py +5 -0
  11. zensical_academic-0.1.0/zensical_academic/about.html +55 -0
  12. zensical_academic-0.1.0/zensical_academic/cli.py +389 -0
  13. zensical_academic-0.1.0/zensical_academic/css/academic.css +680 -0
  14. zensical_academic-0.1.0/zensical_academic/cv.html +157 -0
  15. zensical_academic-0.1.0/zensical_academic/cv.tex +62 -0
  16. zensical_academic-0.1.0/zensical_academic/js/academic.js +152 -0
  17. zensical_academic-0.1.0/zensical_academic/main.html +12 -0
  18. zensical_academic-0.1.0/zensical_academic/mkdocs_theme.yml +16 -0
  19. zensical_academic-0.1.0/zensical_academic/opensource.html +80 -0
  20. zensical_academic-0.1.0/zensical_academic/partials/render_cards.html +42 -0
  21. zensical_academic-0.1.0/zensical_academic/partials/render_github_stars_forks.html +28 -0
  22. zensical_academic-0.1.0/zensical_academic/partials/render_team.html +78 -0
  23. zensical_academic-0.1.0/zensical_academic/projects.html +110 -0
  24. zensical_academic-0.1.0/zensical_academic/team.html +124 -0
  25. zensical_academic-0.1.0/zensical_academic.egg-info/PKG-INFO +153 -0
  26. zensical_academic-0.1.0/zensical_academic.egg-info/SOURCES.txt +28 -0
  27. zensical_academic-0.1.0/zensical_academic.egg-info/dependency_links.txt +1 -0
  28. zensical_academic-0.1.0/zensical_academic.egg-info/entry_points.txt +6 -0
  29. zensical_academic-0.1.0/zensical_academic.egg-info/requires.txt +14 -0
  30. zensical_academic-0.1.0/zensical_academic.egg-info/top_level.txt +1 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alan Guedes, <a.guedes@reading.ac.uk>.
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,153 @@
1
+ Metadata-Version: 2.4
2
+ Name: zensical-academic
3
+ Version: 0.1.0
4
+ Summary: Reusable academic page templates, theme, and LaTeX CV generator for Zensical
5
+ Author-email: Alan Guedes <a.guedes@reading.ac.uk>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/alanlivio/zensical-academic
8
+ Project-URL: Repository, https://github.com/alanlivio/zensical-academic
9
+ Project-URL: Issues, https://github.com/alanlivio/zensical-academic/issues
10
+ Project-URL: Changelog, https://github.com/alanlivio/zensical-academic/blob/main/CHANGELOG.md
11
+ Keywords: zensical,academic,cv,theme,latex,researcher,lab
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Intended Audience :: Education
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Classifier: Topic :: Documentation
22
+ Classifier: Topic :: Internet :: WWW/HTTP :: Site Management
23
+ Requires-Python: >=3.10
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ Requires-Dist: zensical>=0.1.0
27
+ Requires-Dist: pylatex
28
+ Requires-Dist: pyyaml
29
+ Requires-Dist: jinja2
30
+ Provides-Extra: dev
31
+ Requires-Dist: black; extra == "dev"
32
+ Requires-Dist: build; extra == "dev"
33
+ Requires-Dist: pytest; extra == "dev"
34
+ Requires-Dist: twine; extra == "dev"
35
+ Provides-Extra: test
36
+ Requires-Dist: jinja2; extra == "test"
37
+ Requires-Dist: pytest; extra == "test"
38
+ Dynamic: license-file
39
+
40
+ # zensical-academic
41
+
42
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)
43
+ [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
44
+ [![PyPI version](https://img.shields.io/pypi/v/zensical-academic.svg)](https://pypi.org/project/zensical-academic/)
45
+
46
+ Reusable academic page templates, theme components, and LaTeX CV generator for individual researcher and research lab websites built with [Zensical](https://zensical.org/).
47
+
48
+ ## Features
49
+
50
+ - **About Page** (`about.html`): Researcher profile hero with biographical summary, photo, social links, research interests, applications, and dynamic blog-linked news via `news:` frontmatter.
51
+ - **Curriculum Vitae** (`cv.html` + `cv.tex`): Structured web CV for appointments, education, honors, categorized certificates, and automatic LaTeX `moderncv` PDF generation from `zensical.toml`.
52
+ - **Projects Showcase** (`projects.html`): Categorized card grid for PhD, MSc, and undergraduate projects with automatic section TOC navigation.
53
+ - **Open Source Repositories** (`opensource.html`): Repository grid with live GitHub star and fork counters.
54
+ - **Team Page** (`team.html`): Responsive circular avatar grid with names, roles, optional short bios, and social links, supporting grouped sections or flat member lists.
55
+ - **Blog-Powered News**: Works seamlessly with Zensical's built-in `[project.plugins.blog]` plugin and automatically embeds recent posts on the About page.
56
+
57
+ ## Installation
58
+
59
+ ```bash
60
+ pip install zensical-academic
61
+ ```
62
+
63
+ To compile PDF CVs with `zensical-academic cv.pdf`, install TeX Live (`latexmk` and `lualatex` with `moderncv`).
64
+
65
+ ## Usage
66
+
67
+ ### Theme Configuration
68
+
69
+ In your `zensical.toml`:
70
+
71
+ ```toml
72
+ [project.theme]
73
+ name = "academic"
74
+ ```
75
+
76
+ Zensical automatically loads the packaged `zensical-academic` templates, stylesheets, scripts, and Markdown extension (`glightbox`, `footnotes`, `zensical_academic`).
77
+
78
+ ### Generating the LaTeX CV PDF
79
+
80
+ Generate `docs/assets/pdfs/cv.pdf` directly from `[project.extra.academic]` in `zensical.toml`:
81
+
82
+ ```bash
83
+ zensical-academic cv.pdf
84
+ ```
85
+
86
+ Or generate only the LaTeX macros file:
87
+
88
+ ```bash
89
+ zensical-academic latex zensical.toml cv/generated_academic.tex
90
+ ```
91
+
92
+ ### About Page with Blog-Linked News
93
+
94
+ Enable `[project.plugins.blog]` in `zensical.toml`:
95
+
96
+ ```toml
97
+ [project.plugins.blog]
98
+ blog_dir = "news"
99
+ ```
100
+
101
+ Then in `docs/index.md`:
102
+
103
+ ```markdown
104
+ ---
105
+ title: About
106
+ template: about.html
107
+ news:
108
+ limit: 10
109
+ ---
110
+
111
+ ## News
112
+ ```
113
+
114
+ ### Team Page
115
+
116
+ Create `docs/team.md` using `template: team.html`:
117
+
118
+ ```markdown
119
+ ---
120
+ title: Team
121
+ template: team.html
122
+ sections:
123
+ - title: Faculty
124
+ members:
125
+ - name: Dr. Jane Doe
126
+ role: Principal Investigator
127
+ photo: assets/team/jane.jpg
128
+ url: https://janedoe.example.edu
129
+ bio: Computer Vision & Multimedia
130
+ social:
131
+ - title: e-mail
132
+ link: mailto:jane@example.edu
133
+ - title: github
134
+ link: https://github.com/janedoe
135
+ - title: scholar
136
+ link: https://scholar.google.com/citations?user=EXAMPLE
137
+ - title: PhD Students
138
+ members:
139
+ - name: Alex Smith
140
+ role: PhD Candidate
141
+ social:
142
+ - title: github
143
+ link: https://github.com/alexsmith
144
+ ---
145
+
146
+ Meet the researchers and students of our lab.
147
+ ```
148
+
149
+ Common social titles (`email`, `github`, `scholar`, `linkedin`, `orcid`, `twitter`, `x`, `bluesky`, `website`) automatically map to bundled FontAwesome SVG icons.
150
+
151
+ ## Contributing
152
+
153
+ See [CONTRIBUTING.md](./CONTRIBUTING.md) and [BUILD.md](./BUILD.md) for developer setup, testing, and contribution guidelines.
@@ -0,0 +1,114 @@
1
+ # zensical-academic
2
+
3
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)
4
+ [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
5
+ [![PyPI version](https://img.shields.io/pypi/v/zensical-academic.svg)](https://pypi.org/project/zensical-academic/)
6
+
7
+ Reusable academic page templates, theme components, and LaTeX CV generator for individual researcher and research lab websites built with [Zensical](https://zensical.org/).
8
+
9
+ ## Features
10
+
11
+ - **About Page** (`about.html`): Researcher profile hero with biographical summary, photo, social links, research interests, applications, and dynamic blog-linked news via `news:` frontmatter.
12
+ - **Curriculum Vitae** (`cv.html` + `cv.tex`): Structured web CV for appointments, education, honors, categorized certificates, and automatic LaTeX `moderncv` PDF generation from `zensical.toml`.
13
+ - **Projects Showcase** (`projects.html`): Categorized card grid for PhD, MSc, and undergraduate projects with automatic section TOC navigation.
14
+ - **Open Source Repositories** (`opensource.html`): Repository grid with live GitHub star and fork counters.
15
+ - **Team Page** (`team.html`): Responsive circular avatar grid with names, roles, optional short bios, and social links, supporting grouped sections or flat member lists.
16
+ - **Blog-Powered News**: Works seamlessly with Zensical's built-in `[project.plugins.blog]` plugin and automatically embeds recent posts on the About page.
17
+
18
+ ## Installation
19
+
20
+ ```bash
21
+ pip install zensical-academic
22
+ ```
23
+
24
+ To compile PDF CVs with `zensical-academic cv.pdf`, install TeX Live (`latexmk` and `lualatex` with `moderncv`).
25
+
26
+ ## Usage
27
+
28
+ ### Theme Configuration
29
+
30
+ In your `zensical.toml`:
31
+
32
+ ```toml
33
+ [project.theme]
34
+ name = "academic"
35
+ ```
36
+
37
+ Zensical automatically loads the packaged `zensical-academic` templates, stylesheets, scripts, and Markdown extension (`glightbox`, `footnotes`, `zensical_academic`).
38
+
39
+ ### Generating the LaTeX CV PDF
40
+
41
+ Generate `docs/assets/pdfs/cv.pdf` directly from `[project.extra.academic]` in `zensical.toml`:
42
+
43
+ ```bash
44
+ zensical-academic cv.pdf
45
+ ```
46
+
47
+ Or generate only the LaTeX macros file:
48
+
49
+ ```bash
50
+ zensical-academic latex zensical.toml cv/generated_academic.tex
51
+ ```
52
+
53
+ ### About Page with Blog-Linked News
54
+
55
+ Enable `[project.plugins.blog]` in `zensical.toml`:
56
+
57
+ ```toml
58
+ [project.plugins.blog]
59
+ blog_dir = "news"
60
+ ```
61
+
62
+ Then in `docs/index.md`:
63
+
64
+ ```markdown
65
+ ---
66
+ title: About
67
+ template: about.html
68
+ news:
69
+ limit: 10
70
+ ---
71
+
72
+ ## News
73
+ ```
74
+
75
+ ### Team Page
76
+
77
+ Create `docs/team.md` using `template: team.html`:
78
+
79
+ ```markdown
80
+ ---
81
+ title: Team
82
+ template: team.html
83
+ sections:
84
+ - title: Faculty
85
+ members:
86
+ - name: Dr. Jane Doe
87
+ role: Principal Investigator
88
+ photo: assets/team/jane.jpg
89
+ url: https://janedoe.example.edu
90
+ bio: Computer Vision & Multimedia
91
+ social:
92
+ - title: e-mail
93
+ link: mailto:jane@example.edu
94
+ - title: github
95
+ link: https://github.com/janedoe
96
+ - title: scholar
97
+ link: https://scholar.google.com/citations?user=EXAMPLE
98
+ - title: PhD Students
99
+ members:
100
+ - name: Alex Smith
101
+ role: PhD Candidate
102
+ social:
103
+ - title: github
104
+ link: https://github.com/alexsmith
105
+ ---
106
+
107
+ Meet the researchers and students of our lab.
108
+ ```
109
+
110
+ Common social titles (`email`, `github`, `scholar`, `linkedin`, `orcid`, `twitter`, `x`, `bluesky`, `website`) automatically map to bundled FontAwesome SVG icons.
111
+
112
+ ## Contributing
113
+
114
+ See [CONTRIBUTING.md](./CONTRIBUTING.md) and [BUILD.md](./BUILD.md) for developer setup, testing, and contribution guidelines.
@@ -0,0 +1,67 @@
1
+ [build-system]
2
+ requires = ["setuptools>=61.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "zensical-academic"
7
+ version = "0.1.0"
8
+ description = "Reusable academic page templates, theme, and LaTeX CV generator for Zensical"
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ license-files = ["LICENSE"]
12
+ requires-python = ">=3.10"
13
+ authors = [
14
+ { name = "Alan Guedes", email = "a.guedes@reading.ac.uk" },
15
+ ]
16
+ keywords = ["zensical", "academic", "cv", "theme", "latex", "researcher", "lab"]
17
+ classifiers = [
18
+ "Development Status :: 4 - Beta",
19
+ "Intended Audience :: Science/Research",
20
+ "Intended Audience :: Education",
21
+ "Programming Language :: Python :: 3",
22
+ "Programming Language :: Python :: 3.10",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Programming Language :: Python :: 3.13",
26
+ "Programming Language :: Python :: 3.14",
27
+ "Topic :: Documentation",
28
+ "Topic :: Internet :: WWW/HTTP :: Site Management",
29
+ ]
30
+ dependencies = [
31
+ "zensical>=0.1.0",
32
+ "pylatex",
33
+ "pyyaml",
34
+ "jinja2",
35
+ ]
36
+
37
+ [project.urls]
38
+ Homepage = "https://github.com/alanlivio/zensical-academic"
39
+ Repository = "https://github.com/alanlivio/zensical-academic"
40
+ Issues = "https://github.com/alanlivio/zensical-academic/issues"
41
+ Changelog = "https://github.com/alanlivio/zensical-academic/blob/main/CHANGELOG.md"
42
+
43
+ [project.optional-dependencies]
44
+ dev = [
45
+ "pytest",
46
+ "black",
47
+ "build",
48
+ "twine",
49
+ ]
50
+ test = [
51
+ "pytest",
52
+ "jinja2",
53
+ ]
54
+
55
+ [project.scripts]
56
+ zensical-academic = "zensical_academic.cli:cli"
57
+
58
+ [project.entry-points."mkdocs.themes"]
59
+ academic = "zensical_academic"
60
+ zensical-academic = "zensical_academic"
61
+
62
+ [tool.setuptools.packages.find]
63
+ where = ["."]
64
+ include = ["zensical_academic*"]
65
+
66
+ [tool.setuptools.package-data]
67
+ zensical_academic = ["*.html", "**/*.html", "*.tex", "css/*.css", "js/*.js", "mkdocs_theme.yml"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,27 @@
1
+ from pathlib import Path
2
+ from setuptools import setup
3
+ from setuptools.command.build_py import build_py
4
+ from setuptools.command.editable_wheel import _TopLevelFinder, editable_wheel
5
+
6
+ PTH_FILENAME = "zensical_academic_autoload.pth"
7
+ PTH_CONTENT = "import zensical_academic\n"
8
+
9
+ _orig_get_implementation = _TopLevelFinder.get_implementation
10
+
11
+
12
+ def _get_implementation_with_autoload(self):
13
+ yield from _orig_get_implementation(self)
14
+ yield (PTH_FILENAME, PTH_CONTENT.encode("utf-8"))
15
+
16
+
17
+ _TopLevelFinder.get_implementation = _get_implementation_with_autoload
18
+
19
+
20
+ class BuildPy(build_py):
21
+ def run(self):
22
+ super().run()
23
+ target = Path(self.build_lib) / PTH_FILENAME
24
+ target.write_text(PTH_CONTENT, encoding="utf-8")
25
+
26
+
27
+ setup(cmdclass={"build_py": BuildPy, "editable_wheel": editable_wheel})