The teiid.io website repo contains 3 branches.
- dev
- development branch used to stage the latest yet-to-be-released content
- commits/merges will trigger a Netlify build (~ 5 minutes) that will generate and publish web content
- view staging website at: https://teiiddev.netlify.com/
- master
- contains the approved/latest site source code/markdown
- when sufficient new content is added to dev, or critical fixes or additions are applied, a PR will be created and merged to the master branch.
- gh-pages
- changes to the master branch will trigger a .travis.yml build to generate content, merge to gh-pages and published to https://teiid.github.io/teiid.io/
The easiest way to get started with the code is to create your own fork of this repository, and then clone your fork:
$ git clone git@github.com:<github-username>/teiid.io.git
$ cd teiid.io
$ git remote add upstream git@github.com:<github-username>/teiid.io.git
At any time, you can pull changes from the upstream and merge them onto your dev:
$ git checkout dev # switches to the 'dev' branch
$ git pull upstream dev # fetches all 'upstream' changes and merges 'upstream/dev' onto your 'dev' branch
$ git push origin # pushes all the updates to your fork, which should be in-sync with 'upstream'
- Install NodeJS
- Install
yarn
:curl -o- -L https://yarnpkg.com/install.sh | bash
- macOS and Homebrew users:
brew install yarn
- macOS and Homebrew users:
- Add yarn's binary directory to your path in your
.bashrc
or.bash_profile
:export PATH=${PATH}:$(yarn global bin)
- Install
gulp
globally:yarn global add gulp-cli
- Install
hugo
(see http://gohugo.io/overview/installing/) - Run
yarn
Run gulp build
to build site into public
directory.
- Run
gulp
- Open your browser at http://localhost:1313/
- Commit your changes to your forked dev branch
- Submit pull request against the teiid.io dev branch.
When your PR is merged, a Netlify build (~ 5 minutes) will generate and publish the web content which you can view on our staging site at : https://teiiddev.netlify.com/
Project leads will periodically merge dev content into master branch which will move the changes to the publich site at: https://teiid.github.io/teiid.io/
Blog posts can be added by creating/editing and committing markdown files just like any other source
- On the command line create a new markdown file
$ hugo new blog/post-MM-DD-YY.md
- This will add a timestamp to the mardkdown and set draft: true (changed to false before committing)
- Edit the file and add your content
- The build framework will discover the new markdown page and add it to the site as an article
- Build/preview/commit your changes...