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

@@ -14,4 +14,4 @@ mut site := docs.get(
init: true // init means we put config files if not there
)!
site.dev()!
site.dev(host: 'localhost', port: 3000)!