|
|
|
@ -60,14 +60,35 @@ You can edit |
|
|
|
|
You can use `hugo new blog/i-create-a-new-entry.md` command and then edit it. |
|
|
|
|
Or just copy an already existing blog entry, and update the content. |
|
|
|
|
|
|
|
|
|
## Tooling |
|
|
|
|
|
|
|
|
|
First you need to install dependencies with `yarn`. |
|
|
|
|
### Update the theme |
|
|
|
|
|
|
|
|
|
If you need to touch file of the theme (i.e. into `./themes/devfest-theme-hugo/`) you to know one more thing: |
|
|
|
|
|
|
|
|
|
The theme is in another Git repository <https://github.com/GDGToulouse/devfest-theme-hugo>, |
|
|
|
|
it's using [git submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules), |
|
|
|
|
so you need to handle this two repository. |
|
|
|
|
|
|
|
|
|
So this is an example of workflow: |
|
|
|
|
|
|
|
|
|
* install last NodeJS and yarn, see [here](https://github.com/creationix/nvm) and [yarn](https://yarnpkg.com/) |
|
|
|
|
* go into the theme folder `./themes/devfest-theme-hugo/` |
|
|
|
|
* install dependencies with `yarn` |
|
|
|
|
* run `npm start` to launch automatically the build when a file change |
|
|
|
|
* (you still need to launch `hugo server` into the site folder) |
|
|
|
|
* HACK, HACK, HACK |
|
|
|
|
* then build an optimized version with `npm run build` |
|
|
|
|
* then create the PR (or push) |
|
|
|
|
* into the site folder, `git add themes/devfest-theme-hugo` |
|
|
|
|
* then create the PR (or push) |
|
|
|
|
|
|
|
|
|
### Publish |
|
|
|
|
|
|
|
|
|
To publish the site on firebase, just run `firebase deploy`. |
|
|
|
|
Note that you need to authenticate once with `firebase login` |
|
|
|
|
YOU DON'T NEED to publish manually the website, it's already done by pushing on `develop` or `master` branches. |
|
|
|
|
|
|
|
|
|
You could take a look at the `.gitlab-ci.yml` file |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Extract data from CFP |
|
|
|
|
|
|
|
|
|