File: README.md

package info (click to toggle)
scitokens-cpp 1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,172 kB
  • sloc: cpp: 11,717; ansic: 596; sh: 161; python: 132; makefile: 22
file content (60 lines) | stat: -rw-r--r-- 1,456 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# SciTokens C++ Documentation

This directory contains the Sphinx documentation for the SciTokens C++ library.

## Building the Documentation

### Prerequisites

1. Install Python dependencies:
   ```bash
   pip install -r requirements.txt
   ```

2. Install Doxygen (for API extraction):
   ```bash
   # Ubuntu/Debian
   sudo apt install doxygen
   
   # CentOS/RHEL
   sudo yum install doxygen
   ```

### Building

From this directory, run:

```bash
make html
```

Or using sphinx-build directly:

```bash
sphinx-build -b html . _build/html
```

The generated documentation will be in `_build/html/`.

## Documentation Structure

- `index.rst` - Main documentation page
- `installation.rst` - Installation and building instructions
- `api.rst` - API reference (auto-generated from source comments)
- `examples.rst` - Usage examples
- `conf.py` - Sphinx configuration
- `requirements.txt` - Python dependencies

## ReadTheDocs Integration

This documentation is configured for ReadTheDocs. See `.readthedocs.yml` in the project root for the configuration.

The documentation will automatically build when pushed to the repository.

## Adding Examples

Examples in `examples.rst` are based on the test cases in the `test/` directory. When adding new functionality, please:

1. Add appropriate docstring comments to the public API functions in `src/scitokens.h`
2. Add usage examples to `examples.rst`
3. Test that the documentation builds without warnings