Skip to content

teiid/teiid.io

Repository files navigation

teiid.io website

Repo Structure

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

Get the code

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'

Building Locally

Prerequisites

  • Install NodeJS
  • Install yarn: curl -o- -L https://yarnpkg.com/install.sh | bash
    • macOS and Homebrew users: brew install yarn
  • 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

Building

Run gulp build to build site into public directory.

Previewing

Promoting your changes

  1. Commit your changes to your forked dev branch
  2. 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

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...