-
Notifications
You must be signed in to change notification settings - Fork 3
Command Line
To use LuaWebGen, navigate to your site's root folder and run this from the command line:
lua "path/to/LuaWebGen/main.lua" some_command [options]In Windows you can optionally add the bin folder to your PATH
and take advantage of webgen.exe:
webgen some_command [options]Much nicer! The rest of the documentation will use this format.
webgen build [options]
Build the website. Also look at the available build options.
webgen new page "page_path"
Create a new page with some basic information. Example:
webgen new page blog/first-post.mdwebgen new site "folder_name"
Initialize a folder to contain a new site. Example:
webgen new site internetdogs
cd internetdogs
webgen new page blog/first-post.md
webgen buildAuto-build website when changes are detected. This makes LuaWebGen run until you press Ctrl+C in the command prompt.
Include page drafts when building.
Force-update all. This makes LuaWebGen treat all previously outputted files as if they were modified. This has the same effect as deleting the output folder.
Enable verbose printing in the console.
- Home
- Command Line
- Site Configuration
- Embedding Lua
- Constants
- Functions
- Objects
- Other Modules and Information