Skip to content

Commit 53742ab

Browse files
Improved documentation, removed doxygen (#12)
* Improved documentation, removed doxygen * Added Ewald descirption
1 parent 2fd82ba commit 53742ab

File tree

8 files changed

+130
-2869
lines changed

8 files changed

+130
-2869
lines changed

docs/Makefile

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
# Docs Makefile - builds Doxygen + Sphinx docs
1+
# Docs Makefile - builds Sphinx docs only
22

33
# Sphinx configuration
44
SPHINXBUILD ?= sphinx-build
55
SPHINXOPTS ?=
66
SOURCEDIR = source
77
BUILDDIR = build
88

9-
# Doxygen configuration
10-
DOXYFILE ?= doxyfile
11-
DOXYGEN_XML = $(SOURCEDIR)/xml
12-
13-
.PHONY: help doxygen html clean all
9+
.PHONY: help html clean all
1410

1511
# Default target: build HTML docs
1612
all: html
@@ -19,23 +15,17 @@ all: html
1915
help:
2016
@echo "Usage: make [target]"
2117
@echo "Targets:"
22-
@echo " html - build HTML docs (runs Doxygen first)"
23-
@echo " doxygen - generate Doxygen XML for Sphinx"
18+
@echo " html - build HTML docs"
2419
@echo " clean - remove generated files"
2520

26-
# Generate Doxygen XML
27-
doxygen:
28-
@echo "Generating Doxygen XML..."
29-
@doxygen $(DOXYFILE)
30-
31-
# Build HTML docs (runs Doxygen first)
32-
html: doxygen
21+
# Build HTML docs
22+
html:
3323
@echo "Building Sphinx HTML..."
3424
@$(SPHINXBUILD) -b html "$(SOURCEDIR)" "$(BUILDDIR)/html" $(SPHINXOPTS)
3525
@echo "HTML docs built in $(BUILDDIR)/html"
3626

37-
# Clean Sphinx build and Doxygen XML
27+
# Clean Sphinx build
3828
clean:
39-
@echo "Cleaning Sphinx build and Doxygen XML..."
40-
@rm -rf $(BUILDDIR) $(DOXYGEN_XML)
29+
@echo "Cleaning Sphinx build..."
30+
@rm -rf $(BUILDDIR)
4131
@echo "Clean complete"

docs/build.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,29 @@ set -euo pipefail
33

44
# ------------------------------------------------------------------------------
55
# MANIAC-MC Documentation Build Script
6-
# ------------------------------------------------------------------------------
76
# 1. Reads the version number from version.txt (repository root)
87
# 2. Updates the 'release' variable in Sphinx conf.py
9-
# 3. Builds the documentation using the Makefile (Doxygen + Sphinx)
8+
# 3. Builds the documentation using Sphinx
109
# ------------------------------------------------------------------------------
1110

1211
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
1312
DOCS_DIR="$ROOT_DIR/docs"
1413
CONF_FILE="$DOCS_DIR/source/conf.py"
1514
VERSION_FILE="$ROOT_DIR/version.txt"
1615

16+
# --- Step 0: Optional clean ---------------------------------------------------
17+
if [[ "${1:-}" == "clean" ]]; then
18+
echo "Cleaning build directory..."
19+
rm -rf "$DOCS_DIR/build"
20+
echo "Clean complete."
21+
exit 0
22+
fi
23+
1724
# --- Step 1: Read version number ---------------------------------------------
1825
if [[ ! -f "$VERSION_FILE" ]]; then
1926
echo "Error: version.txt not found at $VERSION_FILE"
2027
exit 1
2128
fi
22-
2329
VERSION=$(tr -d '[:space:]' < "$VERSION_FILE")
2430
echo "Using version: $VERSION"
2531

@@ -28,13 +34,11 @@ if [[ ! -f "$CONF_FILE" ]]; then
2834
echo "Error: conf.py not found at $CONF_FILE"
2935
exit 1
3036
fi
31-
3237
echo "Updating conf.py with version: $VERSION"
3338
sed -i "s/^release = .*/release = '${VERSION}'/" "$CONF_FILE"
3439

3540
# --- Step 3: Build documentation ---------------------------------------------
3641
cd "$DOCS_DIR"
3742
echo "Running 'make html'..."
3843
make html
39-
4044
echo "Documentation build complete."

0 commit comments

Comments
 (0)