Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt-Brunner committed Jan 17, 2025
1 parent ff87607 commit 0ec0f50
Show file tree
Hide file tree
Showing 7 changed files with 473 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build_docs.yml
on:
push:
branches:
- main
- napytau/tooling/add-documentation-framework
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
23 changes: 23 additions & 0 deletions docs/docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Welcome to NapyTau

## About

NapyTau is a Python project, made as a successor to the Napatau tool. It's primary purpose is to calculate `Tau`, also
known as the lifetime. NapyTau primarily aims at modernizing the user experience of the original Napatau tool, by providing
a more user-friendly interface and a more modern look. Furthermore, NapyTau provides a command line interface, allowing its usage in automated scripts.

## Tech Stack

The NapyTau source is written entirely in Python, with the GUI being built using the `tkinter` library. Specifically, the `customtk` component library is used to provide a more modern look to the GUI. To facilitate efficient calculations, the ubiquitous `numpy` and `scipy` libraries are used.

The project also provides pre-built binaries for Windows and Linux, which are built using `Nuitka`.

Finally, this documentation is built using `mkdocs` and `mkdocs-material`.

## Installation

See [ReadMe#Installation](https://github.com/BP-TPSE-Projektgruppe-80/NaPyTau/blob/main/README.md#installation) for installation instructions.

## Contributing

See [ReadMe#Contributing](https://github.com/BP-TPSE-Projektgruppe-80/NaPyTau/blob/main/README.md#installation) for information on contributing.
Binary file added docs/docs/ressources/favicon.ico
Binary file not shown.
Binary file added docs/docs/ressources/logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
site_name: NapyTau Documentation
theme:
name: material
palette:
- scheme: default
toggle:
icon: material/weather-sunny
name: Light
primary: lavender
accent: pink

- scheme: slate
toggle:
icon: material/weather-night
name: Dark
primary: slate
accent: pink
font:
text: Roboto
code: Roboto Mono
logo: /ressources/logo.jpg
favicon: /ressources/favicon.ico
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ requires-python = ">=3.12"
dependencies = [
"customtkinter>=5.2.2",
"matplotlib>=3.10.0",
"mkdocs-material>=9.5.49",
"numpy>=2.2.0",
"scipy>=1.14.1",
]
Expand Down
398 changes: 398 additions & 0 deletions uv.lock

Large diffs are not rendered by default.

0 comments on commit 0ec0f50

Please sign in to comment.