mirror of
https://github.com/pim-n/pg-rad
synced 2026-02-02 14:33:09 +01:00
Add mkdocs backbone and minimal content
This commit is contained in:
4
docs/API/landscape/create_landscape_from_path.md
Normal file
4
docs/API/landscape/create_landscape_from_path.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
title: pg_rad.landscape.create_landscape_from_path
|
||||||
|
---
|
||||||
|
::: pg_rad.landscape.create_landscape_from_path
|
||||||
4
docs/API/landscape/landscape.md
Normal file
4
docs/API/landscape/landscape.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
title: pg_rad.landscape.Landscape
|
||||||
|
---
|
||||||
|
::: pg_rad.landscape.Landscape
|
||||||
5
docs/API/objects/object.md
Normal file
5
docs/API/objects/object.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
title: pg_rad.objects.Object
|
||||||
|
---
|
||||||
|
|
||||||
|
::: pg_rad.objects.Object
|
||||||
4
docs/API/path/path.md
Normal file
4
docs/API/path/path.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
title: pg_rad.path.Path
|
||||||
|
---
|
||||||
|
::: pg_rad.path.Path
|
||||||
5
docs/API/path/path_from_RT90.md
Normal file
5
docs/API/path/path_from_RT90.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
title: pg_rad.path.path_from_RT90
|
||||||
|
---
|
||||||
|
::: pg_rad.path.path_from_RT90
|
||||||
|
|
||||||
4
docs/API/path/simplify_path.md
Normal file
4
docs/API/path/simplify_path.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
title: pg_rad.path.simplify_path
|
||||||
|
---
|
||||||
|
::: pg_rad.path.simplify_path
|
||||||
5
docs/API/sources/point_source.md
Normal file
5
docs/API/sources/point_source.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
title: pg_rad.sources.PointSource
|
||||||
|
---
|
||||||
|
|
||||||
|
::: pg_rad.sources.PointSource
|
||||||
45
docs/index.md
Normal file
45
docs/index.md
Normal 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
4
docs/pg-rad-in-cli.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
title: Using PG-RAD in CLI
|
||||||
|
---
|
||||||
|
Lorem ipsum.
|
||||||
5
docs/pg-rad-in-python.md
Normal file
5
docs/pg-rad-in-python.md
Normal 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
41
mkdocs.yml
Normal 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
|
||||||
@ -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"]
|
||||||
Reference in New Issue
Block a user