Skip to content

docs(quarto): Tidy up & address Quarto-rendered formatting for first Pages deployment#148

Draft
lukeroantreeONS wants to merge 6 commits intomainfrom
146-quarto-documentation-review-for-initial-deployment
Draft

docs(quarto): Tidy up & address Quarto-rendered formatting for first Pages deployment#148
lukeroantreeONS wants to merge 6 commits intomainfrom
146-quarto-documentation-review-for-initial-deployment

Conversation

@lukeroantreeONS
Copy link
Collaborator

@lukeroantreeONS lukeroantreeONS commented Mar 10, 2026

📌 Tidy up & address Quarto-rendered formatting for first Pages deployment

✨ Summary

Address outdated / missing documentation information and (quarto-rendered) formatting ahead of first Pages deployment.
Scope determined in Excel spreadsheet.

📜 Changes Introduced

  • docs(hooks): Demo notebook updated - install instructions removed, table reformatted

✅ Checklist

Please confirm you've completed these checks before requesting a review.

  • Code passes linting with Ruff
  • Security checks pass using Bandit
  • API and Unit tests are written and pass using pytest
  • Terraform files (if applicable) follow best practices and have been validated (terraform fmt & terraform validate)
  • DocStrings follow Google-style and are added as per Pylint recommendations
  • Documentation has been updated if needed

🔍 How to Test

Ensure the quarto application is installed locally, then run the following from the repo root directory;

uv run quartodoc build
uv run quarto render
uv run quarto preview

Go section by section, checking the issues noted in the spreadsheet are resolved to satisfaction.

@lukeroantreeONS lukeroantreeONS linked an issue Mar 10, 2026 that may be closed by this pull request
Copy link
Collaborator

@rileyok-ons rileyok-ons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes mainly look much better, got a few updates to the servers and got a formatting issue with the new preprocessing hook table

"\n",
"The reverse_search() and embed() VectorStore functions have their own input and output data classes with their own validity column data checks. The names of each set are intuitively:\n",
"| **VectorStore Method** | **Input Dataclass** | **Output Dataclass** |\n",
"\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't render right for me


def get_router(vector_stores: list[VectorStore], endpoint_names: list[str]) -> APIRouter:
"""Create and return a FastAPI router with search endpoints.
"""Create and return a FastAPI.APIRouter with search endpoints.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"""Create and return a FastAPI.APIRouter with search endpoints.
"""Create and return a `FastAPI.APIRouter` with search endpoints.

endpoint_names (list[str]): A list of endpoint names corresponding to the vector stores.
vector_stores (list[VectorStore]): A list of `VectorStore` objects, each responsible for handling embedding and search operations for a specific endpoint.
endpoint_names (list[str]): A list of endpoint names corresponding to the `VectorStore`s to be exposed.
port (int): [optional] The port on which the API server will run. Defaults to 8000.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
port (int): [optional] The port on which the API server will run. Defaults to 8000.
port (int): [optional] The port on which the API server will run. Defaults to 8000.
Raises:
DataValidationError: Raised if the input port is out of bounds.

data_type (str): The type of input data (currently supports only "csv").
vectoriser (object): The vectoriser object used to transform text into
vector embeddings.
vectoriser (object): The `Vectoriser` object used to transform text into
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
vectoriser (object): The `Vectoriser` object used to transform text into
vectoriser (VectoriserBase): The `Vectoriser` object used to transform text into

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quarto Documentation Review for initial deployment

2 participants