-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation Instructions - Quarto and Quartodoc #6
Comments
Example of NumPy Style Docstringsdef add_numbers(num1, num2):
"""
Add two numbers together.
This function takes two numbers, `num1` and `num2`, and returns their sum.
The numbers can be either integers or floats.
Parameters
----------
num1 : int or float
The first number to be added.
num2 : int or float
The second number to be added.
Returns
-------
int or float
The sum of `num1` and `num2`.
Examples
--------
>>> add_numbers(2, 3)
5
>>> add_numbers(3.5, 5.5)
9.0
Notes
-----
This is a simple illustrative example and not intended for actual use.
"""
return num1 + num2 |
Hi Matt, I've finished a fresh install on a mew environment. I've found that we need to install |
Hey, if you run into any issues at all with quartodoc, don't hesitate to reach out. I'm always happy to clone repos and try building / debugging them, since I want to make sure the doc building process is as painless as possible! |
@machow excellent work on Quartodoc. It's been a breeze to set up good looking and performant documentation. |
Documentation Instructions
1. Create Package Documentation
The easiest way to create documentation fast is to use Mintlify Doc Writer for Python
IMPORTANT: Quartodoc uses Numpy Docstring Formatting
You can then highlight a function and select "Generate Docstring".
2. Use Quartodoc & Quarto to generate Package Documentation
Make sure Quarto and Quartodoc are installed.
The main commands are:
You should now see a website on your localhost:
Making Tutorials
We will eventually need to make some tutorials and documentation. Will cover this later after we create the core
timetk
functions.Publishing Changes
quarto publish gh-pages
, which publishes to the gh-pages branch.The text was updated successfully, but these errors were encountered: