Add mkdocs backbone and minimal content

This commit is contained in:
Pim Nelissen
2026-01-28 09:39:55 +01:00
parent 56caeb9e3a
commit 9302af4624
12 changed files with 127 additions and 1 deletions

View File

@ -0,0 +1,4 @@
---
title: pg_rad.landscape.create_landscape_from_path
---
::: pg_rad.landscape.create_landscape_from_path

View File

@ -0,0 +1,4 @@
---
title: pg_rad.landscape.Landscape
---
::: pg_rad.landscape.Landscape

View File

@ -0,0 +1,5 @@
---
title: pg_rad.objects.Object
---
::: pg_rad.objects.Object

4
docs/API/path/path.md Normal file
View File

@ -0,0 +1,4 @@
---
title: pg_rad.path.Path
---
::: pg_rad.path.Path

View File

@ -0,0 +1,5 @@
---
title: pg_rad.path.path_from_RT90
---
::: pg_rad.path.path_from_RT90

View File

@ -0,0 +1,4 @@
---
title: pg_rad.path.simplify_path
---
::: pg_rad.path.simplify_path

View File

@ -0,0 +1,5 @@
---
title: pg_rad.sources.PointSource
---
::: pg_rad.sources.PointSource

45
docs/index.md Normal file
View File

@ -0,0 +1,45 @@
# Welcome!
Primary Gamma RADiation Landscapes (PG-RAD) is a Python package for research in source localization. It can simulate mobile gamma spectrometry data acquired from vehicle-borne detectors along a predefined path (e.g. a road).
## Requirements
PG-RAD requires Python `3.12`. The guides below assume a unix-like system.
## Installation (CLI)
<!--pipx seems like a possible option to install python package in a contained environment on unix-->
Lorem ipsum
## Installation (Python module)
If you are interested in using PG-RAD in another Python project, create a virtual environment first:
```
python3 -m venv .venv
```
Then install PG-RAD in it:
```
source .venv/bin/activate
(.venv) pip install git+https://github.com/pim-n/pg-rad
```
See how to get started with PG-RAD with your own Python code [here](pg-rad-in-python).
## For developers
```
git clone https://github.com/pim-n/pg-rad
cd pg-rad
git checkout dev
```
or
```
git@github.com:pim-n/pg-rad.git
cd pg-rad
git checkout dev
```

4
docs/pg-rad-in-cli.md Normal file
View File

@ -0,0 +1,4 @@
---
title: Using PG-RAD in CLI
---
Lorem ipsum.

5
docs/pg-rad-in-python.md Normal file
View File

@ -0,0 +1,5 @@
---
title: Using PG-RAD as a module
---
Consult the API documentation in the side bar.

41
mkdocs.yml Normal file
View File

@ -0,0 +1,41 @@
site_name: PG-RAD Documentation
theme:
name: material
palette:
# Dark Mode
- scheme: slate
toggle:
icon: material/weather-sunny
name: Dark mode
primary: blue
accent: deep purple
# Light Mode
- scheme: default
toggle:
icon: material/weather-night
name: Light mode
primary: light blue
accent: blue
features:
- content.code.copy
markdown_extensions:
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences
plugins:
- mkdocstrings:
enabled: !ENV [ENABLE_MKDOCSTRINGS, true]
default_handler: python
locale: en
handlers:
python:
options:
show_source: false
show_root_heading: false

View File

@ -29,4 +29,4 @@ Homepage = "https://github.com/pim-n/pg-rad"
Issues = "https://github.com/pim-n/pg-rad/issues" Issues = "https://github.com/pim-n/pg-rad/issues"
[project.optional-dependencies] [project.optional-dependencies]
dev = ["pytest", "notebook"] dev = ["pytest", "notebook", "mkdocs-material", "mkdocstrings-python"]