Page 1 of 1

Updating github file from Oxygen

Posted: Mon Oct 17, 2016 4:17 pm
by Claudius Teodorescu
Hi,

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();}"))
}
Regards,
Claudius