Closed rortizmerino closed 4 months ago
Below a few steps to get a function documented using the validate function. They assume the folders and files are already correctly configured and sphinx is already installed locally.
"""
Module for validation functions.
This module provides functions for validating various data structures.
"""
def validate_data(data):
"""
Validate the given data.
Parameters:
data (dict): The data to validate.
Returns:
bool: True if the data is valid, False otherwise.
"""
# Implementation here
pass
docs
. For validate.py
would be validate.rst
. validate module
===============
.. automodule:: reduce.validate
:members:
:undoc-members:
:show-inheritance:
It's defined as reduce.validate
since it is within the src/reduce/
folder.
.. toctree::
:maxdepth: 2
:caption: Contents:
reduce.validate
make clean
make html
Note: Some modifications might be required for building directly in github, might be added at a later time. Closing the issue for now.
Requires:
check more details in: https://www.sphinx-doc.org/en/master/tutorial/automatic-doc-generation.html