feat: Allow specifying host and port for dev servers

- Updated `dev()` methods in Docusaurus and Starlight to accept
  host and port arguments, defaulting to `localhost:3000`.
- This allows more flexibility in development server setup.
- Updated example scripts to use the new parameters.
This commit is contained in:
Mahmoud-Emad
2025-06-22 15:34:03 +03:00
parent 483b6e3de3
commit dbf18c7a34
7 changed files with 28 additions and 21 deletions

View File

@@ -206,7 +206,7 @@ fn cmd_docusaurus_execute(cmd Command) ! {
}
if dev {
site.dev()!
site.dev(host: 'localhost', port: 3000)!
}
if open {

View File

@@ -138,6 +138,6 @@ fn cmd_starlight_execute(cmd Command) ! {
}
if dev {
site.dev()!
site.dev(host: 'localhost', port: 3000)!
}
}