Skip to content

Commit 427027e

Browse files
c-dilkstongtongcao
authored andcommitted
doc: setup guide, and cleanup main README.md (#902)
1 parent ea920aa commit 427027e

4 files changed

Lines changed: 63 additions & 26 deletions

File tree

README.md

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,12 @@
33
[![Validation Status](https://github.com/JeffersonLab/coatjava/actions/workflows/validation.yml/badge.svg)](https://github.com/JeffersonLab/coatjava/actions/workflows/validation.yml)
44
[![Coverage](https://badgen.net/static/JaCoCo/coverage/purple)](https://jeffersonlab.github.io/coatjava/jacoco)
55

6-
- [**Documentation Homepage**](https://jeffersonlab.github.io/coatjava)
7-
- [API Documentation (Javadoc)](https://jeffersonlab.github.io/coatjava/javadoc)
8-
- [Developer notes](/docs/dev_notes.md)
6+
| Table of Contents | |
7+
| --- | --- |
8+
| [:star: **Documentation Homepage** :star:](https://jeffersonlab.github.io/coatjava) | API documentation, HIPO banks, and more |
9+
| [Developer notes](/docs/dev_notes.md) | Notes for developers and maintainers |
910

10-
----
11+
---
1112

12-
The original repository for COATJAVA was named "clas12-offline-software" and is [now archived and read-only](https://github.com/JeffersonLab/clas12-offline-software). On May 17, 2023, this new repository was created by running BFG Repo Cleaner to get rid of old, large data files and things that should never have been in the repository, giving 10x reduction in repository size, clone time, etc, and renamed `coatjava`. The most critical, GitHub-specific aspects have been transferred to this new repository:
13-
14-
* Open issues
15-
* Branch protection rules
16-
* User access permission
17-
18-
But some things remain only in the original repository:
19-
20-
* Release notes up to 9.0.1 (probably worth transferring)
21-
* Closed issues (probably not worth transferring)
22-
* Wiki (never really utilized and probably worth restarting from scratch)
23-
24-
Due to the cleanup, previously existing forks and local copies of the old repository will not be automatically mergeable.
25-
26-
----
27-
28-
If you just want to use the software without modifying/building it, you can download a pre-built package from the [GitHub releases](https://github.com/JeffersonLab/coatjava/releases) page or the corresponding repo at [JLab](https://clasweb.jlab.org/clas12offline/distribution/coatjava/). Builds on JLab machines are also available, see the [general software wiki](https://clasweb.jlab.org/wiki/index.php/CLAS12_Software_Center) for setting up your environment to use them.
29-
30-
For anything more, see the "General Developer Documentation" link on that software wiki, which points [here](https://clasweb.jlab.org/wiki/index.php/COATJAVA_Developer_Docs).
31-
32-
The [troubleshooting](https://github.com/JeffersonLab/clas12-offline-software/wiki/Troubleshooting) wiki page may also still be useful but likely outdated.
13+
> [!NOTE]
14+
> The original repository for COATJAVA was named "clas12-offline-software" and is [now archived and read-only](https://github.com/JeffersonLab/clas12-offline-software). On May 17, 2023, this new repository was created by running BFG Repo Cleaner to get rid of old, large data files and things that should never have been in the repository, giving 10x reduction in repository size, clone time, etc, and renamed `coatjava`.

docs/mkdocs/docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
| --- | --- |
77
| [**API Documentation**](javadoc/index.html) | Documentation for classes and methods |
88
| [**HIPO Banks**](banks.md) | Bank descriptions |
9+
| [**Setup and Installation**](setup.md) | How to obtain or build and install the software |
910
| [**Source code**](https://github.com/JeffersonLab/coatjava) | The source code `git` repository |
1011

1112
---

docs/mkdocs/docs/setup.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Setup Guide
2+
3+
<br>
4+
5+
## Obtaining the Software
6+
7+
If you just want to use the software without modifying/building it, you can download a pre-built package from the [GitHub releases](https://github.com/JeffersonLab/coatjava/releases) page or the corresponding repo at [JLab](https://clasweb.jlab.org/clas12offline/distribution/coatjava/). Builds on JLab machines are also available, see the [general software wiki](https://clasweb.jlab.org/wiki/index.php/CLAS12_Software_Center) for setting up your environment to use them.
8+
9+
If you would rather build and install it yourself, `git clone` [the repository](https://github.com/JeffersonLab/coatjava), then skip to the next section below.
10+
11+
For anything more, see the "General Developer Documentation" link on that software wiki, which points [here](https://clasweb.jlab.org/wiki/index.php/COATJAVA_Developer_Docs).
12+
13+
The [troubleshooting](https://github.com/JeffersonLab/clas12-offline-software/wiki/Troubleshooting) wiki page may also still be useful but likely outdated.
14+
15+
<br>
16+
17+
## Dependencies
18+
19+
- Java
20+
- Maven
21+
22+
Maven will automatically obtain all other dependencies.
23+
24+
<br>
25+
26+
## Building and Installing
27+
28+
Run the installation script:
29+
```
30+
./build-coatjava.sh
31+
```
32+
33+
For more usage guidance, run:
34+
```
35+
./build-coatjava.sh --help
36+
```
37+
38+
The software will then be installed _within_ the top-level repository directory, in a subdirectory named `coatjava/`, which contains:
39+
40+
| Directory | Description |
41+
| --- | --- |
42+
| `bin` | Executables for the user, such as `recon-util` |
43+
| `etc` | Various supplementary files, such as bank schema and magnetic field maps |
44+
| `lib` | JAR files |
45+
| `libexec` | Internal scripts |
46+
47+
<br>
48+
49+
## Troubleshooting
50+
51+
If you want to _cleanly_ rebuild, use the `--clean` option for `build-coatjava.sh`.
52+
53+
If you need to clean your Maven cache, which by default is stored in `~/.m2/repository`, you can try either removing that directory, or renaming it, so that it is recreated. Then try to build `coatjava` again.

docs/mkdocs/mkdocs.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
site_name: COATJAVA Documentation
22
nav:
33
- Home: index.md
4-
- HIPO Bank Definitions: banks.md
4+
- HIPO Banks: banks.md
5+
- Setup Guide: setup.md
56
use_directory_urls: false
67
extra:
78
homepage: index.html

0 commit comments

Comments
 (0)