Updating github file from Oxygen

Post here questions and problems related to oXygen frameworks/document types.
Claudius Teodorescu
Posts: 6
Joined: Tue Nov 04, 2014 7:05 pm

Updating github file from Oxygen

Post by Claudius Teodorescu » Mon Oct 17, 2016 4:17 pm


If anyone need to do this, it is possible by using a small script located at https://gist.githubusercontent.com/clau ... gen-editor.

This script uses Oxygen operation called JSOperation, see https://www.oxygenxml.com/doc/versions/ ... tions.html.

For generating the personal access token to be used in this script, please select "public_repo | Access public repositories".

This script has to be put in the file ${framework}/commons.js.

In order to add the button for publishing to github, add the following code to any CSS file that is associated within the framework with the edited XML file:

Code: Select all

rdf|RDF:before {
content: oxy_button(action, oxy_action(name, "Publish to github", operation, "ro.sync.ecss.extensions.commons.operations.JSOperation", arg-script, "function doOperation(){publishToGihub();}"))