Skip to content

Commit 00df0ac

Browse files
committed
Publish documentation online
1 parent 23cec2a commit 00df0ac

File tree

3 files changed

+93
-18
lines changed

3 files changed

+93
-18
lines changed

.github/workflows/docs.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Publish documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- .github/workflows/docs.yml
9+
- docs/**
10+
- mkdocs.yml
11+
12+
permissions:
13+
id-token: write
14+
pages: write
15+
16+
jobs:
17+
github-pages:
18+
name: Publish to GitHub Pages
19+
runs-on: ubuntu-latest
20+
21+
environment:
22+
name: github-pages
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
29+
30+
- name: Set up Python runtime
31+
uses: actions/setup-python@v5
32+
with:
33+
python-version: 3.x
34+
35+
- name: Install dependencies
36+
run: pip install mkdocs-material
37+
38+
- name: Build web pages
39+
run: mkdocs build --site-dir=docs-site
40+
41+
- name: Upload to GitHub Pages
42+
uses: actions/upload-pages-artifact@v3
43+
with:
44+
path: docs-site
45+
46+
- name: Deploy to GitHub Pages
47+
uses: actions/deploy-pages@v4

README.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,4 @@
22

33
Use these tools to collect, process, and submit Software Accounting data to SAMS.
44

5-
6-
## Installation
7-
8-
Software Accounting can be installed with pip as long as you already have Python installed. Preferably use a virtual Python environment and run
9-
10-
```
11-
pip install softwareaccounting
12-
```
13-
14-
to install the basic feature set, or run
15-
16-
```
17-
pip install 'softwareaccounting[post-receiver]'
18-
```
19-
20-
if you also need the optional post-receiver.
21-
22-
For configuration options see the docs folder, especially the [example configurations](docs/example_configuration) subdirectory.
5+
For instructions on how to install and configure Software Accounting, see our [documentation](https://hpc2n.github.io/softwareaccounting/) available online.

mkdocs.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
site_name: Software Accounting
2+
site_url: https://hpc2n.github.io/softwareaccounting/
3+
4+
repo_name: hpc2n/softwareaccounting
5+
repo_url: https://github.com/hpc2n/softwareaccounting/
6+
7+
theme:
8+
name: material
9+
10+
nav:
11+
- Home: index.md
12+
- Overview: overview.md
13+
- Installation: installation.md
14+
- Configuration: configuration.md
15+
- Logging: logging.md
16+
- Programs:
17+
- Aggregator: sams-aggregator.md
18+
- Collector: sams-collector.md
19+
- POST Receiver: sams-post-receiver.md
20+
- Software Extractor: sams-software-extractor.md
21+
- Software Updater: sams-software-updater.md
22+
- Modules:
23+
- sams.aggregator:
24+
- SoftwareAccounting: aggregator/SoftwareAccounting.md
25+
- SoftwareAccountingPW: aggregator/SoftwareAccountingPW.md
26+
- sams.backend:
27+
- SoftwareAccounting: backend/SoftwareAccounting.md
28+
- SoftwareAccountingPW: backend/SoftwareAccountingPW.md
29+
- sams.loader:
30+
- File: loader/File.md
31+
- FileSlurmInfoFallback: loader/FileSlurmInfoFallback.md
32+
- sams.output:
33+
- File: output/File.md
34+
- Http: output/Http.md
35+
- sams.pidfinder:
36+
- Slurm: pidfinder/Slurm.md
37+
- sams.sampler:
38+
- Core: sampler/Core.md
39+
- Pressure: sampler/Pressure.md
40+
- SlurmInfo: sampler/SlurmInfo.md
41+
- Software: sampler/Software.md
42+
- sams.software:
43+
- Regexp: software/Regexp.md
44+
- Versions: sams-software.md
45+
- FAQ: sams-faq.md

0 commit comments

Comments
 (0)