From f0bcc8be83a51a31b914500eb2dcb01a52a7d4a9 Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Mon, 29 Mar 2021 23:34:11 -0700 Subject: [PATCH] Rename Relationship methods section to Retrieval methods --- docs/api/node.md | 6 ++---- docs/api/path.md | 6 ++---- docs/api/point.md | 4 ++-- docs/api/range.md | 6 ++---- 4 files changed, 8 insertions(+), 14 deletions(-) diff --git a/docs/api/node.md b/docs/api/node.md index ff8e1185e..22b04df71 100644 --- a/docs/api/node.md +++ b/docs/api/node.md @@ -2,13 +2,11 @@ ## Static methods -- [Getter methods](#getter-methods) +- [Retrieval methods](#retrieval-methods) - [Text methods](#text-methods) - [Check methods](#check-methods) -### Getter methods - -Methods used to retrieve nodes. +### Retrieval methods ###### `Node.ancestor(root: Node, path: Path): Ancestor` diff --git a/docs/api/path.md b/docs/api/path.md index 161d1c0e7..43de139dd 100644 --- a/docs/api/path.md +++ b/docs/api/path.md @@ -8,13 +8,11 @@ type Path = number[] ## Static methods -- [Relationship methods](#relationship-methods) +- [Retrieval methods](#retrieval-methods) - [Check methods](#check-methods) - [Transform method](#transform-method) -### Relationship methods - -The relationships around the Path like its ancestors, next sibling, etc. +### Retrieval methods ###### `Path.ancestors(path: Path, options: { reverse?: boolean } = {}): Path[]` diff --git a/docs/api/point.md b/docs/api/point.md index efc82b038..91f9594b4 100644 --- a/docs/api/point.md +++ b/docs/api/point.md @@ -12,11 +12,11 @@ interface Point { ## Static methods -- [Relationship methods](#relationship-methods) +- [Retrieval methods](#retrieval-methods) - [Check methods](#check-methods) - [Transform method](#transform-method) -### Relationship methods +### Retrieval methods ###### `Point.compare(point: Point, another: Point): -1 | 0 | 1` diff --git a/docs/api/range.md b/docs/api/range.md index aae2cf45a..9bf4c91dc 100644 --- a/docs/api/range.md +++ b/docs/api/range.md @@ -12,13 +12,11 @@ interface Range { ## Static methods -- [Relationship methods](#relationship-methods) +- [Retrieval methods](#retrieval-methods) - [Check methods](#check-methods) - [Transform method](#transform-method) -### Relationship methods - -Relationship of a Range like its start and end points and the intersection with another Range. +### Retrieval methods ###### `Range.edges(range: Range, options?): [Point, Point]`