diff --git a/integrations/google_sites_20150606_v0.0.0/README b/integrations/google_sites_20150606_v0.0.0/README new file mode 100644 index 000000000000..1b202f111373 --- /dev/null +++ b/integrations/google_sites_20150606_v0.0.0/README @@ -0,0 +1,17 @@ +Embedding Oppia explorations in a Google Sites page Version 0.0.0 +--------------------------------------------------- + +On the Sites page, select: + + 'Insert' -> 'More Gadgets' -> 'Add gadget by URL' + +and add the following URL [*]: + + https://oppia.googlecode.com/git-history/v2.0.0.rc.3/integrations/google_sites_20150606_v0.0.0/gadget.xml + +Then, enter values for the exploration ID and the Oppia base server URL, and +select 'OK'. + +[*] WARNING: The above URL may change over time. If you want this URL to be +stable, you can download the XML file from integrations/google_sites/gadget.xml +and host it somewhere, then point to it. diff --git a/integrations_dev/exploration_gadget/explorationgadget.xml b/integrations/google_sites_20150606_v0.0.0/gadget.xml similarity index 100% rename from integrations_dev/exploration_gadget/explorationgadget.xml rename to integrations/google_sites_20150606_v0.0.0/gadget.xml diff --git a/integrations_dev/build_new_release.py b/integrations_dev/build_new_release.py index 8864944b31eb..33dbf91b48b8 100644 --- a/integrations_dev/build_new_release.py +++ b/integrations_dev/build_new_release.py @@ -36,9 +36,11 @@ import shutil INTEGRATION_NAME_GCB_OPPIA_TAG = 'gcb_oppia_tag' +INTEGRATION_NAME_GOOGLE_SITES = 'google_sites' INTEGRATION_NAME_OPPIA_PLAYER = 'oppia_player' ALLOWED_INTEGRATION_NAMES = [ INTEGRATION_NAME_GCB_OPPIA_TAG, + INTEGRATION_NAME_GOOGLE_SITES, INTEGRATION_NAME_OPPIA_PLAYER ] @@ -126,9 +128,10 @@ 'coursebuilder', 'modules', 'oppia_tag', 'resources'), INTEGRATION_NAME_OPPIA_PLAYER: '.', } - shutil.copy( - SCRIPT_FILEPATH, - os.path.join(TARGET_DIR, SCRIPT_LOCATIONS[INTEGRATION_NAME])) + if INTEGRATION_NAME in SCRIPT_LOCATIONS: + shutil.copy( + SCRIPT_FILEPATH, + os.path.join(TARGET_DIR, SCRIPT_LOCATIONS[INTEGRATION_NAME])) print '' print 'Done! Please check %s for the release candidate.' % TARGET_DIR diff --git a/integrations_dev/exploration_gadget/README b/integrations_dev/exploration_gadget/README deleted file mode 100644 index f166d91d1871..000000000000 --- a/integrations_dev/exploration_gadget/README +++ /dev/null @@ -1,4 +0,0 @@ -Instructions to add the gadget on a google sites page: -1. Select 'Insert' -> 'More Gadgets' -> 'Add gadget by URL' -2. Add the URL: https://code.google.com/p/oppia/source/browse/integrations_dev/exploration_gadget/explorationgadget.xml -3. Enter values for 'Exploration ID' (required) and 'Oppia Base Server URL' (optional, default is https://www.oppia.org) and hit 'OK'. diff --git a/integrations_dev/google_sites/README b/integrations_dev/google_sites/README new file mode 100644 index 000000000000..23d8396735d7 --- /dev/null +++ b/integrations_dev/google_sites/README @@ -0,0 +1,17 @@ +Embedding Oppia explorations in a Google Sites page Version {{VERSION}} +--------------------------------------------------- + +On the Sites page, select: + + 'Insert' -> 'More Gadgets' -> 'Add gadget by URL' + +and add the following URL [*]: + + https://oppia.googlecode.com/git-history/v2.0.0.rc.3/integrations/google_sites_{{DATE}}_v{{VERSION}}/gadget.xml + +Then, enter values for the exploration ID and the Oppia base server URL, and +select 'OK'. + +[*] WARNING: The above URL may change over time. If you want this URL to be +stable, you can download the XML file from integrations/google_sites/gadget.xml +and host it somewhere, then point to it. diff --git a/integrations_dev/google_sites/gadget.xml b/integrations_dev/google_sites/gadget.xml new file mode 100644 index 000000000000..99d3566e5140 --- /dev/null +++ b/integrations_dev/google_sites/gadget.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + ]]> + +