Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update examples for CLI Commands in UG #2247

Merged
merged 2 commits into from
Mar 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions docs/userGuide/cliCommands.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ The caveat is that not building all pages during the initial process, or not reb


{{ icon_examples }}
* `markbind serve`
* `markbind serve ./myWebsite`
* `markbind serve -p 8888 -s otherSite.json`
* `markbind serve` : Serves the site from the current working directory.
* `markbind serve ./myWebsite` : Serves the site from the `./myWebsite` directory.
* `markbind serve -p 8888 -s otherSite.json` : Serves the site in Port 8888 from the current working directory, using `otherSite.json` as the site configuration file.

</panel>

Expand Down Expand Up @@ -153,19 +153,18 @@ The caveat is that not building all pages during the initial process, or not reb
**Options** :fas-cogs:

* `--baseUrl <base>`<br>
Override the `baseUrl` property (read from the `site.json`) with the give `<base>` value.<br>
Override the `baseUrl` property (read from the `site.json`) with the given `<base>` value.<br>
{{ icon_example }} `--baseUrl staging`

* `-s <file>`, `--site-config <file>`<br>
Specify the site config file (default: `site.json`)<br>
{{ icon_example }} `-s otherSite.json`
lhw-1 marked this conversation as resolved.
Show resolved Hide resolved

**{{ icon_examples }}**
* `markbind build`
* `markbind build ./myWebsite` : Generates the site from the `myWebsite` directory.
* `markbind build ./myWebsite ./myOutDir` : Generates the site to the directory named `myOutDir` in the current directory.
* `markbind build ./myWebsite ./myWebsite/myOutDir` : Generates the site to the directory named `myOutDir` in the `myWebsite` directory.
* `markbind build ./stagingDir --baseUrl staging`
* `markbind build` : Generates the site from the current working directory.
* `markbind build ./myWebsite` : Generates the site from the `./myWebsite` directory.
* `markbind build ./myWebsite ./myOutDir` : Generates the site from the `./myWebsite` directory to the `./myOutDir` directory.
* `markbind build ./stagingDir --baseUrl staging` : Generates the site from the `./stagingDir` directory, with the `baseUrl` property in `site.json` set to `staging`.

</panel>

Expand Down Expand Up @@ -203,9 +202,9 @@ The caveat is that not building all pages during the initial process, or not reb
%%{{ icon_info }} Related: [User Guide: Deploying the Website](deployingTheSite.html).%%

**{{ icon_examples }}**
* `markbind deploy`
* `markbind deploy ./myWebsite` : Generates and deploys the site from the `myWebsite` directory.
* `markbind deploy --no-build` : Deploys the site without generating it first.
* `markbind deploy` : Deploys after generating the site from the current working directory.
* `markbind deploy ./myWebsite` : Deploys after generating the site from the `./myWebsite` directory.
* `markbind deploy --no-build` : Deploys the site from the current working directory without generating it.

</panel>

Expand Down