Open bradley-holt opened 7 years ago
According to the documentation https://help.github.com/articles/configuring-a-publishing-source-for-github-pages/ we cannot use a branch other than master:
If your site is a User or Organization Page that has a repository named
.github.io or .github.io, you cannot publish your site's source files from different locations. User and Organization Pages that have this type of repository name are only published from the master branch.
Oddly enough this does work.
I think you're misunderstanding the docs @ptitzler (I went back over it multiple times too). They mean if your repo name is something.github.io, it has to use the master branch for GH publication. This repo's name is shopping-list
so that rule doesn't apply.
@ptitzler What @rajrsingh said. 😄
You should be able to create new orphan gh-pages
branch with something like the following:
git checkout --orphan gh-pages
git rm -rf .
touch index.html
git add index.html
git commit -m "Make index"
git push -u origin gh-pages
Yup, my interpretation wasn't correct. I tested this in my own org.
Catalogued the following demo app implementations:
Each entry is backed by a metadata file in https://github.com/ibm-watson-data-lab/shopping-list/tree/gh-pages/_how_tos. The structure of each metadata file is as shown in the following example:
---
title: Cordova and PouchDB
headline: Learn how to build an Offline First shopping list demo app using <a href="http://cordova.apache.org">Cordova</a> and <a href="https://pouchdb.com">PouchDB</a>
repo_url: https://github.com/ibm-watson-data-lab/shopping-list-cordova-pouchdb
tutorial_url:
demo_url:
type: Hybrid Mobile App
author: Glynn Bird
author_url: https://github.com/glynnbird
---
The
title
,headline
,repo_url
,author
andauthor_url
properties are required. The followingtype
values are considered valid:Progressive Web App
,Native Mobile App
,Hybrid Mobile App
andDesktop App
. (case matters!)
To add another demo app simply create a new metadata file in https://github.com/ibm-watson-data-lab/shopping-list/tree/gh-pages/_how_tos, using the following naming convention: <app_framework>_<offline_framework>
.
@ptitzler can PWAs be the first/default tab on the page?
@ptitzler Following on the comment from @rajrsingh, the ideal tab order would be:
@ptitzler initial commit of vanilla js tutorial: https://github.com/ibm-watson-data-lab/shopping-list-vanillajs-pouchdb/tree/master/tutorial
Metadata was added @vabarbosa
@ptitzler initial draft for electron tutorial: https://github.com/ibm-watson-data-lab/shopping-list-electron-pouchdb/tree/master/tutorial
We should create a landing page to aggregate these different demo apps, somewhat similar to: https://hnpwa.com/
This should be created as a GitHub pages website using a
gh-pages
branch of the mainshopping-list
repo (which would place the URL for this athttp://ibm-watson-data-lab.github.io/shopping-list/
). For each implementation we should capture (at a minimum):Much of this info is already in the README file, but we can make this information more digestable on a landing page.