Added docs for running locally (#8852)

Merge pull request 8852
This commit is contained in:
Meet Gor 2021-10-23 23:45:32 +05:30 committed by GitHub
parent 26a949df85
commit 868d9af3cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -118,3 +118,14 @@ to see more detailed examples.
<a href="{{ '/docs/installation/windows/' | relative_url }}">Windows-specific docs page</a>. <a href="{{ '/docs/installation/windows/' | relative_url }}">Windows-specific docs page</a>.
</p> </p>
</div> </div>
### Running and Testing Locally
Once the project is configured with the github-pages environment, it's quite hard to switch back and forth with the local settings and the production-level settings. For that we can use certain CLI options to make the workflow hassle-free.
```
bundle exec jekyll serve --baseurl=""
```
This will run the jekyll server on your local machine i.e. on `http://localhost:4000`. Refer <a href="{{ '/docs/configuration/options/#serve-command-options' | relative_url }}">server options</a> for available options.