Skip to content

Commit f0f2662

Browse files
authored
Fix/design doc (#422)
* UPD docs * Add docs for normalization * Fix linter issue * Fix version
1 parent 7384d03 commit f0f2662

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

docs/conf.py

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,32 @@
1616
# -- Auto-generate API documentation -----------------------------------------
1717
# Run sphinx-apidoc automatically when building docs
1818

19+
1920
def run_apidoc(_):
2021
from sphinx.ext.apidoc import main as apidoc_main
21-
22+
2223
docs_dir = Path(__file__).parent
2324
output_dir = docs_dir / "api" # Output .rst files to docs/
2425
source_dir = docs_dir.parent / "src" / "lm_polygraph"
25-
26+
2627
# Only run if source directory exists
2728
if source_dir.exists():
28-
apidoc_main([
29-
"--force", # Overwrite existing files
30-
"--module-first", # Put module documentation before submodule documentation
31-
"--separate", # Create separate pages for each module
32-
"-o", str(output_dir),
33-
str(source_dir),
34-
])
29+
apidoc_main(
30+
[
31+
"--force", # Overwrite existing files
32+
"--module-first", # Put module documentation before submodule documentation
33+
"--separate", # Create separate pages for each module
34+
"-o",
35+
str(output_dir),
36+
str(source_dir),
37+
]
38+
)
39+
3540

3641
def setup(app):
3742
app.connect("builder-inited", run_apidoc)
3843

44+
3945
project = "LM-Polygraph"
4046
author = "MBZUAI"
4147
copyright = f"{datetime.now().year}, {author}"

docs/usage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ However code from the main branch may be unstable, so it is recommended to check
2626
.. code-block:: console
2727
2828
$ git clone https://github.com/IINemo/lm-polygraph.git
29-
$ git checkout tags/v0.3.0
29+
$ git checkout tags/v0.5.0
3030
$ python3 -m venv env
3131
$ source env/bin/activate
3232
(env) $ cd lm-polygraph
@@ -49,7 +49,7 @@ To install a specific version, run:
4949
5050
$ python3 -m venv env
5151
$ source env/bin/activate
52-
$ pip install lm-polygraph==0.3.0
52+
$ pip install lm-polygraph==0.5.0
5353
5454
.. _quick_start:
5555

0 commit comments

Comments
 (0)