Skip to content

Commit

Permalink
Update API ignore section to allow links to be created in auto-genera…
Browse files Browse the repository at this point in the history
…ted API
  • Loading branch information
nfelt14 authored Oct 17, 2023
1 parent 295a140 commit 731f64e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 29 deletions.
16 changes: 0 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ _readthedocs/
# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

Expand All @@ -87,21 +83,9 @@ ENV*/
env.bak/
venv.bak/

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# ruff
.ruff_cache/

# Pyre type checker
.pyre/
**__pycache__

# PyCharm
.idea/

Expand Down
3 changes: 1 addition & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ build:
python: '3.11' # This needs to stay in sync with pyproject.toml and any CI scripts
nodejs: '18' # This needs to stay in sync with any CI scripts
jobs:
post_install:
- npm install -g @mermaid-js/mermaid-cli
post_install: [npm install -g @mermaid-js/mermaid-cli]
# Configuration
python:
install:
Expand Down
8 changes: 3 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,9 @@ def skip_member(
what == "package"
and obj.short_name not in _package_set # pyright: ignore [reportUnknownMemberType]
)
or (
f"{os.path.sep}commands{os.path.sep}" in obj.pathname
or obj.pathname.endswith(f"{os.path.sep}commands")
or "_commands" in name
)
or f"{os.path.sep}commands{os.path.sep}" in obj.pathname
or obj.pathname.endswith(f"{os.path.sep}commands")
or ("_commands" in name and "ieee" not in name)
):
skip = True

Expand Down
6 changes: 0 additions & 6 deletions src/tm_devices/commands/_helpers/generic_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ class BaseCmd:
"""A class defining the base syntax of a command class.
The syntax is accessible through the ``.cmd_syntax`` property.
Examples:
>>> class Command(BaseCmd):
... '''A basic command.'''
>>> command = Command(None, "cmd")
>>> assert command.cmd_syntax == "cmd"
"""

def __init__(self, device: Optional["Device"], cmd_syntax: str) -> None:
Expand Down

0 comments on commit 731f64e

Please sign in to comment.