Skip to content

Commit afbd70f

Browse files
authored
Merge pull request #11 from oam-dev/flynnduism-patch-1
update README.md
2 parents cb11dce + 66fb8a6 commit afbd70f

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1+
A simple static site: [openappmodel.io](https://openappmodel.io/)
2+
Built with [Hugo](https://gohugo.io) and Github Pages.
3+
4+
## Important Note: Master Branch
5+
6+
The `master` branch is the public-facing production build of the Github Pages website [oam-dev.github.io](https://oam-dev.github.io/).
7+
8+
Hence, the `master` branch is off limits for any development work.
9+
PRs should be opened against the `dev` branch.
10+
11+
12+
## Development
13+
14+
The site uses a custom theme, based off of the Fresh theme for Hugo by Luc Perkins. The underlying CSS framework is bulma, [docs](https://bulma.io/documentation/) are here. Any changes to the CSS/SCSS need to be rebuilt and commited to update the site appearance.
15+
16+
```
17+
// run hugo to have the pipes rebuild and recompile
18+
# hugo
19+
20+
// make sure to commit the generated results to git
21+
# git add resources/*
22+
```
23+
24+
25+
## Deployment
26+
27+
Deploying a Hugo site to Github Pages is a little tricky, there are some common options.
28+
29+
* [Using a two repository method](https://github.com/whipperstacker/blog/blob/master/content/post/deploying-a-hugo-site-to-github-pages.md) where one is the source and one is the dist.
30+
* [Using a deploy script](https://github.com/sglyon/hugo_gh_blog/blob/master/deploy.sh) to push the /public folder to the prod branch
31+
32+
This site currently uses the latter method. To deploy the site:
33+
34+
1. Switch to the dev branch
35+
2. Run the script `bash ./deploy.sh`
36+
37+
This will recompile the hugo site, and then push the content to github (origin > master), overwriting the previous build.
38+
139

240
# Contributing
341

0 commit comments

Comments
 (0)