- Git
python3
- pip
To build and view the docs for a specific version of Marvin, you can use this script.
You can either clone the Marvin repo and run the script locally, or copy the script and run it directly in your terminal after making it executable:
# unix
chmod +x scripts/serve_legacy_docs
# run the script (default version is v1.5.6)
./scripts/serve_legacy_docs
# optionally, specify a version
./scripts/serve_legacy_docs v1.5.3
If you prefer to manually perform the steps or need to tailor them for your specific operating system, follow these instructions:
-
Clone the Repository
Clone the Marvin repository using Git:git clone https://github.com/PrefectHQ/marvin.git cd marvin
-
Checkout the Specific Tag
Checkout the tag for the version you are interested in. Replacev1.5.6
with the desired version tag:git fetch --tags git checkout tags/v1.5.6
-
Create a Virtual Environment
Create and activate a virtual environment to isolate the dependency installation:python3 -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install Dependencies
Install the necessary dependencies for the documentation:pip install -e ".[dev,docs]"
-
Serve the Documentation Locally
Usemkdocs
to serve the documentation:mkdocs serve
This will start a local server. View the documentation by navigating to
http://localhost:8000
in your web browser. -
Exit Virtual Environment
Once finished, you can exit the virtual environment:deactivate
Optionally, you can remove the virtual environment folder:
rm -rf venv