Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
187 changes: 0 additions & 187 deletions BUILDING_SETUP.md

This file was deleted.

8 changes: 3 additions & 5 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ This file provides guidance to Claude Code when working in this repository.
A Quarto book documenting the [PKNCA](https://github.com/humanpred/pknca) R package (≥ 0.12.2).
Every function, option, and parameter is covered with runnable examples verified against live PKNCA output.

**Book repo (current):** https://github.com/TeunP/PKNCA.doc
**Rendered book (current):** https://teunp.github.io/PKNCA.doc/
**Book repo (intended):** https://github.com/humanpred/pknca-book
**Rendered book (intended):** https://humanpred.github.io/pknca-book/
**Book repo:** https://github.com/humanpred/pknca-book
**Rendered book:** https://humanpred.github.io/pknca-book/
**pkgdown site:** https://humanpred.github.io/pknca/

## How to Render
Expand Down Expand Up @@ -54,7 +52,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for the full update workflow, including h
- New dev topics → add a `.qmd` to `dev/` and register it in `_quarto.yml`
- Always run `quarto render` after changes and check the console for errors
- Every chapter must end with a `:::callout-note` footer linking new functions to `https://humanpred.github.io/pknca/reference/<function>.html` — add links when introducing functions not yet in the footer
- The live URL depends on where the repo is hosted — `teunp.github.io/PKNCA.doc/` (current), `humanpred.github.io/pknca-book/` (intended), or a custom domain. If the URL changes, update `site-url` in `_quarto.yml`
- The book deploys to `https://humanpred.github.io/pknca-book/`. If the site ever moves (e.g. to a custom domain), update `site-url` in `_quarto.yml`
- When reviewing code correctness, read every code chunk in full and check for: wrong input shapes (e.g. multi-subject vectors passed to single-subject functions), out-of-scope variables (referenced before creation or from a different chunk), bad column references, and invalid function arguments. Then render the book locally (`quarto render`) and inspect the console output for warnings and errors — static review alone is not sufficient
- When updating the CI workflow's package list, audit all chapters at once rather than fixing one missing package per run:
```bash
Expand Down
22 changes: 6 additions & 16 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
This guide explains how to update the book when a new version of PKNCA is released.
Anyone — maintainers, users, or contributors — can follow this workflow.

**Book repo (current):** https://github.com/TeunP/PKNCA.doc
**Rendered book (current):** https://teunp.github.io/PKNCA.doc/
**Book repo (intended):** https://github.com/humanpred/pknca-book
**Rendered book (intended):** https://humanpred.github.io/pknca-book/
**Book repo:** https://github.com/humanpred/pknca-book
**Rendered book:** https://humanpred.github.io/pknca-book/
**Package repo:** https://github.com/humanpred/pknca
**pkgdown reference:** https://humanpred.github.io/pknca/reference/index.html
**Upstream issue:** https://github.com/humanpred/pknca/issues/541
Expand All @@ -33,8 +31,8 @@ packageVersion("PKNCA")
- Clone the book:

```bash
git clone https://github.com/TeunP/PKNCA.doc
cd PKNCA.doc
git clone https://github.com/humanpred/pknca-book
cd pknca-book
```

---
Expand Down Expand Up @@ -167,15 +165,7 @@ git commit -m "update docs for PKNCA vX.Y.Z"
git push
```

The `_book/` directory is in `.gitignore` — only source `.qmd` files are committed. Pushing to `main` triggers the GitHub Actions workflow (`.github/workflows/book.yml`), which renders the book and deploys it automatically. The live URL depends on where the repo is hosted:

| Repo | Rendered URL |
|---|---|
| `TeunP/PKNCA.doc` (current) | https://teunp.github.io/PKNCA.doc/ |
| `humanpred/pknca-book` (intended) | https://humanpred.github.io/pknca-book/ |
| Custom domain (optional) | e.g. `pknca.humanpred.com/user-guide/` |

If the URL changes, update `site-url` in `_quarto.yml` accordingly.
The `_book/` directory is in `.gitignore` — only source `.qmd` files are committed. Pushing to `main` triggers the GitHub Actions workflow (`.github/workflows/book.yml`), which renders the book and deploys it to https://humanpred.github.io/pknca-book/. If the site ever moves (e.g. to a custom domain), update `site-url` in `_quarto.yml` accordingly.

---

Expand All @@ -187,7 +177,7 @@ Post a comment on the upstream issue or open a new one:

Template:
> Updated the documentation book for PKNCA vX.Y.Z — covers [list new features].
> Book: [insert live URL — see step 6 for the URL that applies to your repo]
> Book: https://humanpred.github.io/pknca-book/

---

Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# PKNCA Documentation Book

[![Render and deploy book](https://github.com/TeunP/PKNCA.doc/actions/workflows/book.yml/badge.svg)](https://github.com/TeunP/PKNCA.doc/actions/workflows/book.yml)
[![Render and deploy book](https://github.com/humanpred/pknca-book/actions/workflows/book.yml/badge.svg)](https://github.com/humanpred/pknca-book/actions/workflows/book.yml)

A comprehensive **Quarto book** documenting the [PKNCA](https://github.com/humanpred/pknca) R package (≥ 0.12.2) with runnable examples throughout. Every function, option, and parameter is verified against live PKNCA output.

**Live book:** https://teunp.github.io/PKNCA.doc/
**Intended home (pending org setup):** https://humanpred.github.io/pknca-book/
**Live book:** https://humanpred.github.io/pknca-book/

## Build locally

Expand All @@ -15,8 +14,8 @@ remotes::install_github("humanpred/pknca")
```

```bash
git clone https://github.com/TeunP/PKNCA.doc
cd PKNCA.doc
git clone https://github.com/humanpred/pknca-book
cd pknca-book
quarto render
open _book/index.html
```
Expand Down Expand Up @@ -71,4 +70,3 @@ open _book/index.html
- pkgdown reference: https://humanpred.github.io/pknca/reference/index.html
- CRAN: https://cran.r-project.org/package=PKNCA
- Discussion: [humanpred/pknca#541](https://github.com/humanpred/pknca/issues/541)
- Setup guide for org repo + hub site: [BUILDING_SETUP.md](BUILDING_SETUP.md)
Loading