diff --git a/README.md b/README.md index f5e8469..c4e03b6 100644 --- a/README.md +++ b/README.md @@ -5,5 +5,5 @@ To read the documentation, run ```shell $ git clone --branch rewrite https://git.nyeki.dev/payphone/payphone.git $ cd payphone -$ cargo doc --open --no-deps +$ cargo run -- docs ``` diff --git a/src/main.rs b/src/main.rs index e58e061..951ee46 100644 --- a/src/main.rs +++ b/src/main.rs @@ -74,6 +74,15 @@ //! consistency and readability. //! //! More documentation about each group can be found in the respective submodule's documentation. +//! +//! # Documentation Server +//! +//! Payphone has a built-in documentation server that serves the project's documentation and refreshes +//! it on changes. To start the documentation server, run the following command: +//! +//! ```shell +//! $ cargo run -- docs +//! ``` use std::{net::SocketAddr, path::Path, process::Command, sync::mpsc};