File tree Expand file tree Collapse file tree 2 files changed +17
-11
lines changed
Expand file tree Collapse file tree 2 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 1616# -- Auto-generate API documentation -----------------------------------------
1717# Run sphinx-apidoc automatically when building docs
1818
19+
1920def 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
3641def setup (app ):
3742 app .connect ("builder-inited" , run_apidoc )
3843
44+
3945project = "LM-Polygraph"
4046author = "MBZUAI"
4147copyright = f"{ datetime .now ().year } , { author } "
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments