Metadata-Version: 2.4
Name: zensical-academic
Version: 0.1.1
Summary: Reusable academic page templates, theme, and LaTeX CV generator for Zensical
Author-email: Alan Guedes <a.guedes@reading.ac.uk>
License-Expression: MIT
Project-URL: Homepage, https://github.com/alanlivio/zensical-academic
Project-URL: Demo, https://alanlivio.github.io/zensical-academic/example-researcher/
Project-URL: Repository, https://github.com/alanlivio/zensical-academic
Project-URL: Issues, https://github.com/alanlivio/zensical-academic/issues
Project-URL: Changelog, https://github.com/alanlivio/zensical-academic/blob/main/CHANGELOG.md
Keywords: zensical,academic,cv,theme,latex,researcher,lab
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Education
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Documentation
Classifier: Topic :: Internet :: WWW/HTTP :: Site Management
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: zensical>=0.1.0
Requires-Dist: pylatex
Requires-Dist: pyyaml
Requires-Dist: jinja2
Provides-Extra: dev
Requires-Dist: black; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: pytest; extra == "dev"
Requires-Dist: twine; extra == "dev"
Provides-Extra: test
Requires-Dist: jinja2; extra == "test"
Requires-Dist: pytest; extra == "test"
Dynamic: license-file

# zensical-academic

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![PyPI version](https://img.shields.io/pypi/v/zensical-academic.svg)](https://pypi.org/project/zensical-academic/)

Reusable academic page templates, theme components, and LaTeX CV generator for individual researcher and research lab websites built with [Zensical](https://zensical.org/). See the live example site at [alanlivio.github.io/zensical-academic/example-researcher](https://alanlivio.github.io/zensical-academic/example-researcher/).

![](https://raw.githubusercontent.com/alanlivio/zensical-academic/main/assets/demo.gif)

## Features

- **[About Page](https://alanlivio.github.io/zensical-academic/example-researcher/)** (`about.html`): Researcher profile hero with biographical summary, photo, social links, research interests, applications, and dynamic blog-linked news via `news:` frontmatter.
- **[Curriculum Vitae](https://alanlivio.github.io/zensical-academic/example-researcher/cv/)** (`cv.html` + `cv.tex`): Structured web CV for appointments, education, honors, categorized certificates, and automatic LaTeX `moderncv` [PDF](https://alanlivio.github.io/zensical-academic/example-researcher/assets/pdfs/cv.pdf) generation from `zensical.toml`.
- **[Projects Showcase](https://alanlivio.github.io/zensical-academic/example-researcher/projects/)** (`projects.html`): Categorized card grid for PhD, MSc, and undergraduate projects with automatic section TOC navigation.
- **[Open Source Repositories](https://alanlivio.github.io/zensical-academic/example-researcher/opensource/)** (`opensource.html`): Repository grid with live GitHub star and fork counters.
- **[Team Page](https://alanlivio.github.io/zensical-academic/example-researcher/team/)** (`team.html`): Responsive circular avatar grid with names, roles, optional short bios, and social links, supporting grouped sections or flat member lists.
- **[Blog-Powered News](https://alanlivio.github.io/zensical-academic/example-researcher/news/)**: Works seamlessly with Zensical's built-in `[project.plugins.blog]` plugin and automatically embeds recent posts on the About page.

## Installation

```bash
pip install zensical-academic
```

To compile PDF CVs with `zensical-academic cv.pdf`, install TeX Live (`latexmk` and `lualatex` with `moderncv`).

## Usage

### Theme Configuration

In your `zensical.toml`:

```toml
[project.theme]
name = "zensical-academic"
```

Zensical automatically loads the packaged `zensical-academic` templates, stylesheets, scripts, and Markdown extension (`glightbox`, `footnotes`, `zensical_academic`).

### Generating the LaTeX CV PDF

Generate `docs/assets/pdfs/cv.pdf` directly from `[project.extra.academic]` in `zensical.toml`:

```bash
zensical-academic cv.pdf
```

Or generate only the LaTeX macros file:

```bash
zensical-academic latex zensical.toml cv/generated_academic.tex
```

### Validating a Site

Run built-in link integrity, Markdown formatting, metadata, template rendering, and LaTeX CV checks against your site:

```bash
zensical-academic test
```

### About Page with Blog-Linked News

Enable `[project.plugins.blog]` in `zensical.toml`:

```toml
[project.plugins.blog]
blog_dir = "news"
```

Then in `docs/index.md`:

```markdown
---
title: About
template: about.html
news:
  limit: 10
---

## News
```

### Team Page

Create `docs/team.md` using `template: team.html`:

```markdown
---
title: Team
template: team.html
sections:
  - title: Principal Investigator
    members:
      - name: Leslie Lamport
        role: Distinguished Scientist
        photo: assets/leslie_lamport.jpg
        url: https://en.wikipedia.org/wiki/Leslie_Lamport
        bio: Distributed Systems, Formal Specification & LaTeX
        social:
          - title: e-mail
            link: mailto:lamport@example.org
          - title: github
            link: https://github.com/tlaplus
          - title: scholar
            link: https://scholar.google.com/scholar?q=Leslie+Lamport
  - title: Selected Collaborators
    members:
      - name: Robert Shostak
        role: Co-author, Byzantine Generals
        bio: Fault-Tolerant Agreement & Formal Logic
        social:
          - title: website
            link: https://en.wikipedia.org/wiki/Byzantine_fault
      - name: Marshall Pease
        role: Co-author, Byzantine Generals
        bio: Distributed Reliability & Consensus
        social:
          - title: website
            link: https://en.wikipedia.org/wiki/Byzantine_fault
      - name: Nancy Lynch
        role: Collaborator, Distributed Algorithms
        bio: Formal Models of Concurrent & Distributed Systems
        social:
          - title: website
            link: https://en.wikipedia.org/wiki/Nancy_Lynch
---

Fictional research group roster highlighting collaborators and foundational work in distributed computing. Explore the [Projects](projects/index.md) page for detailed topics.
```

Common social titles (`email`, `github`, `scholar`, `linkedin`, `orcid`, `twitter`, `x`, `bluesky`, `website`) automatically map to bundled FontAwesome SVG icons.

## Contributing

See [CONTRIBUTING.md](https://github.com/alanlivio/zensical-academic/blob/main/CONTRIBUTING.md) and [BUILD.md](https://github.com/alanlivio/zensical-academic/blob/main/BUILD.md) for developer setup, testing, and contribution guidelines.
