-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial extension commit for indices.
- Loading branch information
Showing
4 changed files
with
99 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
from typing import Iterable, Optional as Nullable, List, Tuple | ||
|
||
from sphinx.domains import Index, IndexEntry | ||
|
||
|
||
class ComponentIndex(Index): | ||
name = "componentindex" | ||
localname = "Component Index" | ||
shortname = "Components" | ||
|
||
def generate(self, docnames: Iterable[str] = None) -> Tuple[List[Tuple[str, List[IndexEntry]]], bool]: | ||
result: List[Tuple[str, List[IndexEntry]]] = [] | ||
|
||
return result, True | ||
|
||
class PackageIndex(Index): | ||
name = "packageindex" | ||
localname = "Package Index" | ||
shortname = "Packages" | ||
|
||
def generate(self, docnames: Iterable[str] = None) -> Tuple[List[Tuple[str, List[IndexEntry]]], bool]: | ||
result: List[Tuple[str, List[IndexEntry]]] = [] | ||
|
||
return result, True | ||
|
||
|
||
class SubprogramIndex(Index): | ||
name = "subprogramindex" | ||
localname = "Subprogram Index" | ||
shortname = "Subprograms" | ||
|
||
def generate(self, docnames: Iterable[str] = None) -> Tuple[List[Tuple[str, List[IndexEntry]]], bool]: | ||
result: List[Tuple[str, List[IndexEntry]]] = [] | ||
|
||
return result, True | ||
|
||
|
||
class TypeIndex(Index): | ||
name = "typeindex" | ||
localname = "Type Index" | ||
shortname = "Types" | ||
|
||
def generate(self, docnames: Iterable[str] = None) -> Tuple[List[Tuple[str, List[IndexEntry]]], bool]: | ||
result: List[Tuple[str, List[IndexEntry]]] = [] | ||
|
||
return result, True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -189,6 +189,7 @@ | |
"sphinx_fontawesome", | ||
"sphinx_autodoc_typehints", | ||
"autoapi.sphinx", | ||
"VHDLDomain", | ||
] | ||
|
||
|
||
|