Buckets:

Pranav2748's picture
download
raw
1.24 kB
Building the Documentation
==========================
Follow this guide to build the Nunchaku documentation locally using Sphinx.
Step 1: Set Up the Environment
------------------------------
First, ensure your environment is prepared. This process is similar to :ref:`Installation <build-from-source>`.
Make sure you have installed all the necessary development and documentation dependencies with the ``dev,docs`` extras:
.. code-block:: shell
pip install -e ".[dev,docs]"
Step 2: Build the Documentation
-------------------------------
Navigate to the ``docs`` directory and build the HTML documentation:
.. code-block:: shell
cd docs
make clean
make html
This will generate the HTML files in the ``docs/build/html`` directory.
Step 3: Preview the Documentation
---------------------------------
To view the generated documentation locally, start a simple HTTP server:
.. code-block:: shell
cd build/html
python -m http.server 2333
Then open your browser and go to ``http://localhost:2333`` to browse the documentation.
Feel free to change the port to any other port you prefer.
.. tip::
If you make changes to the documentation source files, simply rerun ``make html`` to update the output.

Xet Storage Details

Size:
1.24 kB
·
Xet hash:
83c45cf889e0aa10c0fd860245332badb390be142e5ff3e8d361e8926521e2d5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.