Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Glenn Jocher d9db6cd42d
`ultralytics 8.0.131` NCNN, HUB and FastSAM fixes (#3587)
2 years ago
..
ccb6419835
Add YOLOv5 tutorials to docs.ultralytics.com (#1657)
2 years ago
8a11eda4a9
`ultralytics 8.0.125` NMS speed improvements (#3463)
2 years ago
1c4a363497
Update Discord links to role assign (#3533)
2 years ago
hub
1c4a363497
Update Discord links to role assign (#3533)
2 years ago
ad99246ff1
`ultralytics 8.0.128` FastSAM autodownload and super() init (#3552)
2 years ago
d9db6cd42d
`ultralytics 8.0.131` NCNN, HUB and FastSAM fixes (#3587)
2 years ago
d1107ca4cb
`ultralytics 8.0.97` confusion matrix, windows, docs updates (#2511)
2 years ago
1e5702a5b5
Add Ultralytics ViT Docs (#3230)
2 years ago
bd0f7ecf6f
Docstrings arguments cleanup (#3229)
2 years ago
d9db6cd42d
`ultralytics 8.0.131` NCNN, HUB and FastSAM fixes (#3587)
2 years ago
4c22273198
`ultralytics 8.0.126` Ray Tune refactoring (#3511)
2 years ago
1c4a363497
Update Discord links to role assign (#3533)
2 years ago
c42e44a021
Release 8.0.5 PR (#279)
2 years ago
2f02d8ea53
Docs updates for HUB, YOLOv4, YOLOv7, NAS (#3174)
2 years ago
2f02d8ea53
Docs updates for HUB, YOLOv4, YOLOv7, NAS (#3174)
2 years ago
bd0f7ecf6f
Docstrings arguments cleanup (#3229)
2 years ago
2f02d8ea53
Docs updates for HUB, YOLOv4, YOLOv7, NAS (#3174)
2 years ago
15c027a9fc
Add `torch.Tensor` checks and pip badges (#3368)
2 years ago
243fc4b1fe
`ultralytics 8.0.89` SAM predict and auto-annotate (#2298)
2 years ago

README.md

You have to be logged in to leave a comment. Sign In
description keywords
Learn how to install the Ultralytics package in developer mode and build/serve locally using MkDocs. Deploy your project to your host easily. install Ultralytics package, deploy documentation, building locally, deploy site, GitHub Pages, GitLab Pages, Amazon S3, MkDocs documentation

Ultralytics Docs

Ultralytics Docs are deployed to https://docs.ultralytics.com.

Install Ultralytics package

To install the ultralytics package in developer mode, you will need to have Git and Python 3 installed on your system. Then, follow these steps:

  1. Clone the ultralytics repository to your local machine using Git:
git clone https://github.com/ultralytics/ultralytics.git
  1. Navigate to the root directory of the repository:
cd ultralytics
  1. Install the package in developer mode using pip:
pip install -e '.[dev]'

This will install the ultralytics package and its dependencies in developer mode, allowing you to make changes to the package code and have them reflected immediately in your Python environment.

Note that you may need to use the pip3 command instead of pip if you have multiple versions of Python installed on your system.

Building and Serving Locally

The mkdocs serve command is used to build and serve a local version of the MkDocs documentation site. It is typically used during the development and testing phase of a documentation project.

mkdocs serve

Here is a breakdown of what this command does:

  • mkdocs: This is the command-line interface (CLI) for the MkDocs static site generator. It is used to build and serve MkDocs sites.
  • serve: This is a subcommand of the mkdocs CLI that tells it to build and serve the documentation site locally.
  • -a: This flag specifies the hostname and port number to bind the server to. The default value is localhost:8000.
  • -t: This flag specifies the theme to use for the documentation site. The default value is mkdocs.
  • -s: This flag tells the serve command to serve the site in silent mode, which means it will not display any log messages or progress updates. When you run the mkdocs serve command, it will build the documentation site using the files in the docs/ directory and serve it at the specified hostname and port number. You can then view the site by going to the URL in your web browser.

While the site is being served, you can make changes to the documentation files and see them reflected in the live site immediately. This is useful for testing and debugging your documentation before deploying it to a live server.

To stop the serve command and terminate the local server, you can use the CTRL+C keyboard shortcut.

Deploying Your Documentation Site

To deploy your MkDocs documentation site, you will need to choose a hosting provider and a deployment method. Some popular options include GitHub Pages, GitLab Pages, and Amazon S3.

Before you can deploy your site, you will need to configure your mkdocs.yml file to specify the remote host and any other necessary deployment settings.

Once you have configured your mkdocs.yml file, you can use the mkdocs deploy command to build and deploy your site. This command will build the documentation site using the files in the docs/ directory and the specified configuration file and theme, and then deploy the site to the specified remote host.

For example, to deploy your site to GitHub Pages using the gh-deploy plugin, you can use the following command:

mkdocs gh-deploy

If you are using GitHub Pages, you can set a custom domain for your documentation site by going to the "Settings" page for your repository and updating the "Custom domain" field in the "GitHub Pages" section.

196814117-fc16e711-d2be-4722-9536-b7c6d78fd167

For more information on deploying your MkDocs documentation site, see the MkDocs documentation.

Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...