From 579f96161885465b185966c503427b1172e62968 Mon Sep 17 00:00:00 2001 From: Mantas Vilčinskas Date: Sun, 9 May 2021 13:21:50 +0300 Subject: v5.0.3 --- README.md | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index e073253..2f588fb 100644 --- a/README.md +++ b/README.md @@ -263,10 +263,12 @@ Check out [the wiki](https://github.com/cstate/cstate/wiki). ## Contribute šŸ’„ -### Making a change in the code +### Making a change in the code for the cstate/cstate repo PRs should be submitted to the `dev` branch, if it exists. Before submitting a pull request, create an issue to [discuss the implications of your proposal](https://github.com/cstate/cstate/issues). +The root directory is where the theme itself is (the cState guts, basically) and the `exampleSite` folder houses all content for your specific site. Use this local setup to experiment before making a PR. + Here is a guide for how you should develop: 1. Clone this repository in the command line: @@ -275,22 +277,18 @@ Here is a guide for how you should develop: git clone --recursive -b master https://github.com/cstate/cstate.git ``` -2. Navigate to the theme directory: - -```bash -cd cstate/exampleSite -``` - -3. Launch the development setup like this: +2. Launch the development setup like this: ```bash # old command +# navigate to the directory where your content is and start dev server from there +cd cstate/exampleSite hugo serve --baseUrl=http://localhost/ --theme=cstate --themesDir=../.. --verbose # new command partially works for v5.0.2; does not load images from static/ +# for this you need to be in the theme root hugo serve --config=exampleSite/config.yml --theme=../ --contentDir=exampleSite/content ``` -The main directory is the theme itself (the cState guts, basically) and the `exampleSite` folder houses all content. Use this local setup to experiment before making a PR. ### For translators -- cgit v1.2.3-70-g09d2