Skip to content

Commit dfa7dc3

Browse files
committed
Fix zeros_vector index entry
1 parent 765d11d commit dfa7dc3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

extract_function_sigs.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
import subprocess
1313

1414

15-
if "functions-reference" not in os.getenv("QUARTO_PROJECT_INPUT_FILES", "").replace("functions-reference/functions_index.qmd", ""):
16-
print("Functions reference didn't change, skipping index update")
17-
exit(0)
18-
1915
@contextlib.contextmanager
2016
def pushd(new_dir):
2117
previous_dir = os.getcwd()

gen_index.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Points to links created by the html-index.lua pandoc filter.
44
"""
55

6+
import os
67
import hashlib
78
import pathlib
89
from collections import defaultdict
@@ -60,6 +61,9 @@ def write_index_page(index):
6061

6162

6263
if __name__ == "__main__":
64+
if "functions-reference" not in os.getenv("QUARTO_PROJECT_INPUT_FILES", "").replace("functions-reference/functions_index.qmd", ""):
65+
print("Functions reference didn't change, skipping index update")
66+
exit(0)
6367
sigs = extract_function_sigs.get_sigs()
6468
index = make_index_mapping(sigs)
6569
write_index_page(index)

src/functions-reference/matrix_operations.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@ Create an int array of length `n` of all zeros
12731273
Create a real array of length `n` of all zeros
12741274
{{< since 2.24 >}}
12751275

1276-
<!-- vector; zeros_row_vector; (int n); -->
1276+
<!-- vector; zeros_vector; (int n); -->
12771277
\index{{\tt \bfseries zeros\_vector }!{\tt (int n): vector}|hyperpage}
12781278

12791279
`vector` **`zeros_vector`**`(int n)`<br>\newline

0 commit comments

Comments
 (0)