Skip to content

Commit

Permalink
section_table is a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Feb 1, 2023
1 parent 8fe3f5e commit 3e316df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rerun_py/docs/gen_common_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@

import re
from pathlib import Path
from typing import Final

import griffe
import mkdocs_gen_files

# This is the list of sections and functions that will be included in the index
# for each of them.
section_table = [
SECTION_TABLE: Final[list[tuple[str, list[str]]]] = [
(
"Initialization",
["init", "set_recording_id", "connect", "spawn_and_connect"],
Expand Down Expand Up @@ -100,7 +101,7 @@ def make_slug(s: str) -> str:
"""
)

for (heading, func_list) in section_table:
for (heading, func_list) in SECTION_TABLE:

# Turn the heading into a slug and add it to the nav
md_name = make_slug(heading)
Expand Down

0 comments on commit 3e316df

Please sign in to comment.