From 01e240bda9b35bf1c1d9995229d1674ef4e8318a Mon Sep 17 00:00:00 2001 From: Maximilian Schulz <83698606+maxschulz-COL@users.noreply.github.com> Date: Thu, 2 Nov 2023 14:45:14 +0100 Subject: [PATCH] Add hosting option to docs (#145) Signed-off-by: Maximilian Schulz <83698606+maxschulz-COL@users.noreply.github.com> Co-authored-by: Chiara <94166847+chiara-sophie@users.noreply.github.com> --- vizro-ai/.readthedocs.yaml | 16 +++++++ vizro-ai/README.md | 8 +++- ...5201_maximilian_schulz_hosting_vizro_ai.md | 48 +++++++++++++++++++ vizro-ai/docs/index.md | 4 +- .../pages/explanation/safety_in_vizro_ai.md | 10 ++++ vizro-ai/docs/stylesheets/extra.css | 4 ++ vizro-ai/mkdocs.yml | 6 +-- vizro-ai/src/vizro_ai/_vizro_ai.py | 3 +- 8 files changed, 91 insertions(+), 8 deletions(-) create mode 100644 vizro-ai/.readthedocs.yaml create mode 100644 vizro-ai/changelog.d/20231102_095201_maximilian_schulz_hosting_vizro_ai.md diff --git a/vizro-ai/.readthedocs.yaml b/vizro-ai/.readthedocs.yaml new file mode 100644 index 000000000..dd8f1f4ac --- /dev/null +++ b/vizro-ai/.readthedocs.yaml @@ -0,0 +1,16 @@ +# Read the Docs configuration file for MkDocs projects +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.11" + commands: + - pip install hatch + - cd vizro-ai/ && hatch run docs:mkdocs build + - mkdir --parents $READTHEDOCS_OUTPUT + - mv vizro-ai/site/ $READTHEDOCS_OUTPUT/html diff --git a/vizro-ai/README.md b/vizro-ai/README.md index d9685f76c..374ffa851 100644 --- a/vizro-ai/README.md +++ b/vizro-ai/README.md @@ -4,8 +4,12 @@ Vizro-AI is a tool for generating visualizations. ## Disclaimer -Please review the [Disclaimer](docs/pages/explanation/disclaimer.md) before using `vizro-ai` package. +Please review the [Disclaimer](https://vizro-ai.readthedocs.io/en/latest/pages/explanation/disclaimer/) before using `vizro-ai` package. ## Documentation -Here is the link to the [Documentation](docs/pages). +For more information, please refer to our [Documentation](https://vizro-ai.readthedocs.io/en/latest/). + +## Acknowledgment + +Vizro-AI is powered by [LangChain](https://github.com/langchain-ai/langchain). diff --git a/vizro-ai/changelog.d/20231102_095201_maximilian_schulz_hosting_vizro_ai.md b/vizro-ai/changelog.d/20231102_095201_maximilian_schulz_hosting_vizro_ai.md new file mode 100644 index 000000000..f1f65e73c --- /dev/null +++ b/vizro-ai/changelog.d/20231102_095201_maximilian_schulz_hosting_vizro_ai.md @@ -0,0 +1,48 @@ + + + + + + + + + diff --git a/vizro-ai/docs/index.md b/vizro-ai/docs/index.md index abca88111..db302cbd1 100644 --- a/vizro-ai/docs/index.md +++ b/vizro-ai/docs/index.md @@ -6,8 +6,8 @@ Vizro-AI is a tool for generating data visualizations. before using the `vizro-ai` package. Since users must connect to Large Language Models (LLMs) in order to use Vizro-AI, - please also ensure that you review [usage of LLMs](pages/explanation/safety_in_vizro_ai.md) - and required [safeguarding for dynamic code evaluation](pages/explanation/safeguard.md). + please also ensure that you review our guides on the [usage of LLMs](pages/explanation/safety_in_vizro_ai.md) + and the required [safeguarding for dynamic code evaluation](pages/explanation/safeguard.md).