Skip to content

Commit c840652

Browse files
authored
Merge pull request #1413 from nicholasyang2022/fix-doc-adocxt-anchor-master
Fix: doc/toolchain: fix missing anchor in generated AIO doc (#1409)
2 parents 6ec5681 + 0aa9907 commit c840652

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

doc/toolchain/bin/adocxt

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import typing
1010
RE_FROM_CODE = re.compile(r'^\[\[([^,]+),[^,]*,From Code]]$')
1111
RE_TAG = re.compile('^cmdhelp_(.*)$')
1212
RE_SECTION_TITLE = re.compile('^=')
13-
RE_FROM_CODE_OR_SECTION_TITLE=re.compile(r'^(?:\[\[([^,]+),[^,]*,From Code]]$|=)')
13+
RE_ANCHOR_OR_SECTION_TITLE=re.compile(r'^(?:\[\[.*]]$|=)')
1414

1515
TAG_EXCLUDES = {
1616
'cmdhelp_root_report',
@@ -86,7 +86,7 @@ def generate_include(stdin, stdout):
8686
break
8787
case _:
8888
# waiting for next section
89-
found = RE_FROM_CODE_OR_SECTION_TITLE.match(line)
89+
found = RE_ANCHOR_OR_SECTION_TITLE.match(line)
9090
if found:
9191
tag = None
9292
section_title = None

doc/website-v1/man-4.6.adoc

+6
Original file line numberDiff line numberDiff line change
@@ -1103,6 +1103,7 @@ Options:
11031103

11041104

11051105

1106+
[[cmdhelp_cluster_health,Cluster health check]]
11061107
==== `health`
11071108

11081109
Runs a larger set of tests and queries on all nodes in the cluster to
@@ -1363,6 +1364,7 @@ Options:
13631364

13641365

13651366

1367+
[[cmdhelp_cluster_rename,Rename the cluster]]
13661368
==== `rename`
13671369

13681370
Rename the cluster name
@@ -1407,6 +1409,7 @@ Options:
14071409

14081410

14091411

1412+
[[cmdhelp_cluster_status,Cluster status check]]
14101413
==== `status`
14111414

14121415
Reports the status for the cluster messaging layer on the local
@@ -1433,6 +1436,7 @@ Options:
14331436

14341437

14351438

1439+
[[cmdhelp_cluster_wait_for_startup,Wait for cluster to start]]
14361440
==== `wait_for_startup`
14371441

14381442
Mostly useful in scripts or automated workflows, this command will
@@ -2493,6 +2497,7 @@ Options:
24932497

24942498

24952499

2500+
[[cmdhelp_node_ready,put node into ready mode]]
24962501
==== `ready`
24972502

24982503
Set the node's maintenance status to `off`. The node should be
@@ -2550,6 +2555,7 @@ Options:
25502555

25512556

25522557

2558+
[[cmdhelp_node_status-attr,manage status attributes]]
25532559
==== `status-attr`
25542560

25552561
Edit node attributes which are in the CIB status section, i.e.,

0 commit comments

Comments
 (0)