-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from mohanvive/master
Add new Siddhi site theme to PySiddhi
- Loading branch information
Showing
15 changed files
with
640 additions
and
485 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,15 +5,12 @@ described via a ***Streaming SQL language***, and triggers actions. It performs | |
***Complex Event Processing*** on streaming data. Its Siddhi core is written in Java library. | ||
|
||
- PySiddhi wraps [Siddhi 5](https://siddhi-io.github.io/siddhi/) | ||
- PySiddhi includes a REST Client for [WSO2 Stream Processor(SP) 4.x.x](https://wso2.com/analytics). | ||
|
||
## Features | ||
|
||
- [x] Basic functionality of Siddhi 5.x.x | ||
- [x] Siddhi Debugger | ||
- [x] Support to Siddhi Extensions Loading | ||
- [x] Rest Client on WSO2 SP 4.x.x - Siddhi App Management | ||
- [x] Rest Client on WSO2 SP 4.x.x - Event Simulation | ||
|
||
For a Quick Demo and documentation refer [PySiddhi Site](https://siddhi-io.github.io/PySiddhi/) | ||
|
||
|
@@ -25,15 +22,10 @@ Contributed by: __Madhawa Vidanapathirana__ | |
Email: [email protected] | ||
Organization: University of Moratuwa, Sri Lanka. | ||
|
||
## How to Contribute | ||
* Report issues at <a target="_blank" href="https://github.com/siddhi-io/PySiddhi/issues">GitHub Issue Tracker</a>. | ||
* Feel free to try out the <a target="_blank" href="https://github.com/siddhi-io/PySiddhi">PySiddhi source code</a> and send your contributions as pull requests to the <a target="_blank" href="https://github.com/siddhi-io/PySiddhi/tree/master">master branch</a>. | ||
|
||
## Contact us | ||
* Post your questions with the <a target="_blank" href="http://stackoverflow.com/search?q=siddhi">"Siddhi"</a> tag in <a target="_blank" href="http://stackoverflow.com/search?q=siddhi">Stackoverflow</a>. | ||
* For more details and support contact us via <a target="_blank" href="http://wso2.com/support?utm_source=gitanalytics&utm_campaign=gitanalytics_Jul17">http://wso2.com/support/</a> | ||
|
||
## Support | ||
* We are committed to ensuring support for [Siddhi](https://siddhi-io.github.io/siddhi/) (with its <a target="_blank" href="https://siddhi-io.github.io/siddhi/extensions/">extensions</a>) and <a target="_blank" href="http://wso2.com/analytics?utm_source=gitanalytics&utm_campaign=gitanalytics_Jul17">WSO2 Stream Processor</a> from development to production. | ||
* Our unique approach ensures that all support leverages our open development methodology and is provided by the very same engineers who build the technology. | ||
* For more details and to take advantage of this unique opportunity, contact us via <a target="_blank" href="http://wso2.com/support?utm_source=gitanalytics&utm_campaign=gitanalytics_Jul17">http://wso2.com/support/</a>. | ||
## Support and Contribution | ||
|
||
* We encourage users to ask questions and get support via <a target="_blank" href="https://stackoverflow.com/questions/tagged/siddhi">StackOverflow</a>, make sure to add the `siddhi` tag to the issue for better response. | ||
|
||
* If you find any issues related to the extension please report them on <a target="_blank" href="https://github.com/siddhi-io/siddhi-execution-string/issues">the issue tracker</a>. | ||
|
||
* For production support and other contribution related information refer <a target="_blank" href="https://siddhi.io/community/">Siddhi Community</a> documentation. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/* | ||
~ Copyright (c) WSO2 Inc. (http://wso2.com) All Rights Reserved. | ||
~ | ||
~ Licensed under the Apache License, Version 2.0 (the "License"); | ||
~ you may not use this file except in compliance with the License. | ||
~ You may obtain a copy of the License at | ||
~ | ||
~ http://www.apache.org/licenses/LICENSE-2.0 | ||
~ | ||
~ Unless required by applicable law or agreed to in writing, software | ||
~ distributed under the License is distributed on an "AS IS" BASIS, | ||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
~ See the License for the specific language governing permissions and | ||
~ limitations under the License. | ||
*/ | ||
|
||
var logo = document.querySelector('.md-logo'); | ||
var logoTitle = logo.title; | ||
logo.setAttribute('href', 'https://siddhi.io/') | ||
|
||
var header = document.querySelector('.md-header-nav__title'); | ||
var headerContent = document.querySelectorAll('.md-header-nav__title span')[1].textContent; | ||
var url = document.querySelector('.md-nav__item a.md-nav__link').href | ||
header.innerHTML = '<a class="extension-title" href="' + url + '">' + logoTitle + '</a>' + | ||
'<a class="extension-title-low">' + headerContent + '</a>' | ||
|
||
|
||
/* | ||
* TOC position highlight on scroll | ||
*/ | ||
|
||
var observeeList = document.querySelectorAll(".md-sidebar__inner > .md-nav--secondary .md-nav__link"); | ||
var listElems = document.querySelectorAll(".md-sidebar__inner > .md-nav--secondary > ul li"); | ||
var config = {attributes: true, childList: true, subtree: true}; | ||
|
||
var callback = function (mutationsList, observer) { | ||
for (var mutation of mutationsList) { | ||
if (mutation.type == 'attributes') { | ||
mutation.target.parentNode.setAttribute(mutation.attributeName, | ||
mutation.target.getAttribute(mutation.attributeName)); | ||
scrollerPosition(mutation); | ||
} | ||
} | ||
}; | ||
var observer = new MutationObserver(callback); | ||
|
||
listElems[0].classList.add('active'); | ||
|
||
for (var i = 0; i < observeeList.length; i++) { | ||
var el = observeeList[i]; | ||
|
||
observer.observe(el, config); | ||
|
||
el.onclick = function (e) { | ||
listElems.forEach(function (elm) { | ||
if (elm.classList) { | ||
elm.classList.remove('active'); | ||
} | ||
}); | ||
|
||
e.target.parentNode.classList.add('active'); | ||
} | ||
} | ||
|
||
function scrollerPosition(mutation) { | ||
var blurList = document.querySelectorAll(".md-sidebar__inner > .md-nav--secondary > ul li > .md-nav__link[data-md-state='blur']"); | ||
|
||
listElems.forEach(function (el) { | ||
if (el.classList) { | ||
el.classList.remove('active'); | ||
} | ||
}); | ||
|
||
if (blurList.length > 0) { | ||
if (mutation.target.getAttribute('data-md-state') === 'blur') { | ||
if (mutation.target.parentNode.querySelector('ul li')) { | ||
mutation.target.parentNode.querySelector('ul li').classList.add('active'); | ||
} else { | ||
setActive(mutation.target.parentNode); | ||
} | ||
} else { | ||
mutation.target.parentNode.classList.add('active'); | ||
} | ||
} else { | ||
if (listElems.length > 0) { | ||
listElems[0].classList.add('active'); | ||
} | ||
} | ||
} | ||
|
||
function setActive(parentNode, i) { | ||
i = i || 0; | ||
if (i === 5) { | ||
return; | ||
} | ||
if (parentNode.nextElementSibling) { | ||
parentNode.nextElementSibling.classList.add('active'); | ||
return; | ||
} | ||
setActive(parentNode.parentNode.parentNode.parentNode, ++i); | ||
} |
Oops, something went wrong.