Skip to content

okf/index-scope

warningOKF specification

index.md lists its own directory’s contents (OKF §8): each entry points within the directory.

An index.md enumerates its own directory’s contents (§8), so a person or agent reading sales/index.md expects what’s in sales/. An entry may point into a subdirectory, as a root index often lists a few key pages deeper down, but not outside the directory: a page elsewhere belongs in its own directory’s index, and a “see also” belongs in a concept, as a link. An entry left outside is often what moving a page leaves behind.

This file breaks the rule:

sales/index.md
# Sales
* [Playbook](playbook.md) - How we sell.
* [Plans](../pricing/plans.md) - What we charge.

okforest validate reports:

sales/index.md
4:3 warning Index entries list this directory's contents (OKF §8): `../pricing/plans.md` is outside it. Link to it from a concept instead. okf/index-scope

Fixed:

sales/index.md
# Sales
* [Playbook](playbook.md) - How we sell.