Updating github file from Oxygen

Post here questions and problems related to oXygen frameworks/document types.
Claudius Teodorescu
Posts: 6

Updating github file from Oxygen

Mon Oct 17, 2016 4:17 pm

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

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 0 guests