-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b9365a3
commit 4a4452a
Showing
53 changed files
with
5,509 additions
and
492 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
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,14 @@ | ||
version: 2 | ||
python: | ||
install: | ||
- path: . | ||
method: pip | ||
extra_requirements: | ||
- doc | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
sphinx: | ||
builder: html | ||
configuration: docs/source/conf.py |
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 |
---|---|---|
@@ -1 +1,4 @@ | ||
# Query Package Documentation | ||
|
||
* Installation: [PyPI](https://pypi.org/project/query-package-documentation/) | ||
* Documentation: [Read the Docs](https://query-package-documentation.readthedocs.io) |
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,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = source | ||
BUILDDIR = build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
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,35 @@ | ||
@ECHO OFF | ||
|
||
pushd %~dp0 | ||
|
||
REM Command file for Sphinx documentation | ||
|
||
if "%SPHINXBUILD%" == "" ( | ||
set SPHINXBUILD=sphinx-build | ||
) | ||
set SOURCEDIR=source | ||
set BUILDDIR=build | ||
|
||
%SPHINXBUILD% >NUL 2>NUL | ||
if errorlevel 9009 ( | ||
echo. | ||
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx | ||
echo.installed, then set the SPHINXBUILD environment variable to point | ||
echo.to the full path of the 'sphinx-build' executable. Alternatively you | ||
echo.may add the Sphinx directory to PATH. | ||
echo. | ||
echo.If you don't have Sphinx installed, grab it from | ||
echo.https://www.sphinx-doc.org/ | ||
exit /b 1 | ||
) | ||
|
||
if "%1" == "" goto help | ||
|
||
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
goto end | ||
|
||
:help | ||
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
|
||
:end | ||
popd |
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,7 @@ | ||
cli module | ||
========== | ||
|
||
.. automodule:: cli | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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,86 @@ | ||
"""Configure Sphinx documentation.""" | ||
# pylint: disable=invalid-name | ||
import sys | ||
|
||
import generative_ai | ||
|
||
sys.path.insert(0, "../src") | ||
|
||
project = "query-package-documentation" | ||
version = str(generative_ai.__version__) | ||
project_copyright = "2024, Anirban Ray" | ||
author = "Anirban Ray" | ||
release = f"v{version}" | ||
|
||
extensions = [ | ||
"myst_parser", | ||
"sphinx.ext.autodoc", | ||
"sphinx.ext.intersphinx", | ||
"sphinx.ext.napoleon", | ||
"sphinx_copybutton", | ||
] | ||
source_suffix = {".md": "markdown", ".rst": "restructuredtext"} | ||
|
||
smartquotes = False | ||
today_fmt = "%Y-%m-%d" | ||
highlight_language = "python3" | ||
pygments_style = "friendly" | ||
add_function_parentheses = False | ||
add_module_names = False | ||
option_emphasise_placeholders = True | ||
|
||
html_theme = "furo" | ||
html_theme_options = {"top_of_page_button": None} | ||
html_title = f"{project} {release}" | ||
|
||
html_last_updated_fmt = "%B %d, %Y" | ||
html_use_index = True | ||
html_split_index = False | ||
html_copy_source = False | ||
html_show_sourcelink = False | ||
html_show_sphinx = False | ||
html_output_encoding = "utf-8" | ||
|
||
python_display_short_literal_types = True | ||
|
||
myst_enable_extensions = [ | ||
"amsmath", | ||
"attrs_inline", | ||
"colon_fence", | ||
"deflist", | ||
"dollarmath", | ||
"fieldlist", | ||
"html_admonition", | ||
"html_image", | ||
"linkify", | ||
"replacements", | ||
"smartquotes", | ||
"strikethrough", | ||
"substitution", | ||
"tasklist", | ||
] | ||
|
||
autoclass_content = "class" | ||
autodoc_inherit_docstrings = True | ||
autodoc_member_order = "bysource" | ||
autodoc_typehints = "both" | ||
autodoc_typehints_description_target = "documented" | ||
autodoc_typehints_format = "short" | ||
|
||
intersphinx_mapping = { | ||
"python": ("https://docs.python.org/3", None), | ||
"langchain": ("https://api.python.langchain.com/en/stable", None), | ||
"numpydoc": ("https://numpydoc.readthedocs.io/en/stable", None), | ||
} | ||
|
||
napoleon_google_docstring = False | ||
napoleon_numpy_docstring = True | ||
napoleon_include_init_with_doc = False | ||
napoleon_use_param = True | ||
napoleon_use_keyword = True | ||
napoleon_use_rtype = True | ||
napoleon_preprocess_types = True | ||
|
||
copybutton_prompt_text = r">>> |\.\.\. |\$ " | ||
copybutton_prompt_is_regexp = True | ||
copybutton_line_continuation_character = "\\" |
7 changes: 7 additions & 0 deletions
7
docs/source/generative_ai.dataset_generation.orchestrate_generation.rst
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,7 @@ | ||
generative\_ai.dataset\_generation.orchestrate\_generation module | ||
================================================================= | ||
|
||
.. automodule:: generative_ai.dataset_generation.orchestrate_generation | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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,21 @@ | ||
generative\_ai.dataset\_generation package | ||
========================================== | ||
|
||
Submodules | ||
---------- | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
|
||
generative_ai.dataset_generation.orchestrate_generation | ||
generative_ai.dataset_generation.step_1_generation | ||
generative_ai.dataset_generation.step_2_generation | ||
generative_ai.dataset_generation.utils_generation | ||
|
||
Module contents | ||
--------------- | ||
|
||
.. automodule:: generative_ai.dataset_generation | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
7 changes: 7 additions & 0 deletions
7
docs/source/generative_ai.dataset_generation.step_1_generation.rst
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,7 @@ | ||
generative\_ai.dataset\_generation.step\_1\_generation module | ||
============================================================= | ||
|
||
.. automodule:: generative_ai.dataset_generation.step_1_generation | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
7 changes: 7 additions & 0 deletions
7
docs/source/generative_ai.dataset_generation.step_2_generation.rst
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,7 @@ | ||
generative\_ai.dataset\_generation.step\_2\_generation module | ||
============================================================= | ||
|
||
.. automodule:: generative_ai.dataset_generation.step_2_generation | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
7 changes: 7 additions & 0 deletions
7
docs/source/generative_ai.dataset_generation.utils_generation.rst
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,7 @@ | ||
generative\_ai.dataset\_generation.utils\_generation module | ||
=========================================================== | ||
|
||
.. automodule:: generative_ai.dataset_generation.utils_generation | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
7 changes: 7 additions & 0 deletions
7
docs/source/generative_ai.information_retrieval.orchestrate_retrieval.rst
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,7 @@ | ||
generative\_ai.information\_retrieval.orchestrate\_retrieval module | ||
=================================================================== | ||
|
||
.. automodule:: generative_ai.information_retrieval.orchestrate_retrieval | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
Oops, something went wrong.