Files
herolib/examples/web/starllight_example.vsh
Mahmoud-Emad dbf18c7a34 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.
2025-06-22 15:34:03 +03:00

18 lines
491 B
GLSL
Executable File

#!/usr/bin/env -S v -n -w -gc none -cg -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.web.starlight
// import freeflowuniverse.herolib.data.doctree
// Create a new starlight factory
mut docs := starlight.new(
build_path: '/tmp/starlight_build'
)!
// Create a new starlight site
mut site := docs.get(
url: 'https://git.threefold.info/tfgrid/docs_aibox'
init: true // init means we put config files if not there
)!
site.dev(host: 'localhost', port: 3000)!