Skip to content

Commit

Permalink
Introduce a debug configuration for the documentation website (#6377)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas authored Jul 30, 2024
1 parent fafd716 commit 4d2cc40
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Assuming [Jekyll] and [Bundler] are installed on your computer:

2. Run `bundle install`.

3. Run `bundle exec jekyll serve` to build your site and preview it at `localhost:4000`.
3. Run `bundle exec jekyll serve --config _config.yml,_config_debug.ym` to build your site and preview it at `localhost:4000`.

The built site is stored in the directory `_site`.

Expand Down
5 changes: 5 additions & 0 deletions docs/_config_debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
title: FAForever Game Repo [DEBUG MODE]

debug: true
url: http://127.0.0.1:4000
baseurl:
2 changes: 1 addition & 1 deletion docs/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ In addition we recommend the following tooling:
To run the documentations website on the localhost you need a command line where the current directory is the `docs` folder. From there you run the following commands:

- `bundle install`: Similar to `npm install` if you're familiar with the Node Package Manager. Should be necessary only once. Installs all relevant packages.
- `bundle exec jekyll server --incremental`: Once completed the website should be available on your localhost. It runs the website from the `_site` folder. The website is updated automagically on every file change but it is not refreshed automagically. You'll need to refresh the page manually.
- `bundle exec jekyll serve --config _config.yml,_config_debug.ym`: Once completed the website should be available on your localhost. It runs the website from the `_site` folder. The website is updated automagically on every file change but it is not refreshed automagically. You'll need to refresh the page manually.

0 comments on commit 4d2cc40

Please sign in to comment.