CLI
The CLI takes the following commands:
new <name>orn <name>: Scaffolds a new Fluorite project by the given name.buildorb: Builds the docs using theflconfig.jsoninside the current directory or the specified config file. Options:--configor-c: Specifies the path to the config file.
serveors: Builds and serves the generated docs on port6001or the specified port (either through CLI option or theserverOptionsof the config file). Looks forflconfig.jsonin the current directory unless specified by the CLI option. Options:--portor-p: Specifies the server port.--configor-c: Specifies the path to the config file.--watchor-w: Starts watching the config file and all the input files and rebuilds the docs if files are changed.--skip-build: Skips building the documentation before serving.
theme new <themename>ort new <themename>: Scaffolds a new Fluorite theme by the given name.theme add <themename>ort add <themename>: Installs a Fluorite theme by the directory name (refer to theme installation for examples.) Options:--asor-a: A new name for the theme to be installed as.--symlinkor-s: Creates a symlink instead of copying the theme (useful for theme development and testing).
theme remove <themename>ort remove <themename>: Uninstalls a theme by the given name.
Usage Example
Scaffold a new project, build, serve, and watch the docs:
fl new docs
cd docs
fl build
fl serve --watch