Skip to content

Commit de02c8d

Browse files
committed
fixed minor documentation issues
1 parent 28daee5 commit de02c8d

5 files changed

Lines changed: 5 additions & 17 deletions

File tree

build-tools/docs.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ def build_docs_local(source_dir: Path):
2525
print("\n--- Step 1: Installing in editable mode ---")
2626
try:
2727
run_command([sys.executable, "-m", "pip", "install", "-e", "."], cwd=source_dir)
28-
# Explicitly run schema generation to be sure
29-
run_command([sys.executable, "setup.py", "generate_schema"], cwd=source_dir)
3028
except SystemExit:
3129
print("Warning: 'pip install -e .' failed. This might be due to an externally managed environment.")
3230
print("Attempting to proceed with documentation build assuming dependencies are met...")

clams/appmetadata/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import json
12
import os
23
import shutil
34
import subprocess
@@ -523,4 +524,4 @@ def jsonify(self, pretty=False):
523524

524525

525526
if __name__ == '__main__':
526-
print(AppMetadata.schema_json(indent=2))
527+
print(json.dumps(AppMetadata.model_json_schema(), indent=2))

documentation/autodoc/clams.mmif_utils.rst

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,3 @@ clams.mmif_utils package
22
========================
33

44
Package providing utility functions for working with MMIF data.
5-
6-
``rewind`` module
7-
-----------------
8-
9-
.. automodule:: clams.mmif_utils.rewind
10-
:members:
11-
12-
``source`` module
13-
-----------------
14-
15-
.. automodule:: clams.mmif_utils.source
16-
:members:

documentation/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
6464
# dynamically generated files
6565
exclude_patterns.extend(['cli_help.rst', 'whatsnew.md'])
66+
# this is user manual, and not part of API docs, will be used in a remote site
67+
exclude_patterns.extend(['clamsapp.md'])
6668

6769

6870
# -- Options for HTML output -------------------------------------------------

documentation/tutorial.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ def tokenize(text):
2323

2424
```
2525
26-
``` python
27-
$ python
26+
``` pycon
2827
>>> import tokenizer
2928
>>> tokenizer.tokenize('Fido barks.')
3029
[(0, 4), (5, 10)]

0 commit comments

Comments
 (0)