Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let Flow-Launcher/Flow.Launcher.Plugin.PythonTemplate readme could show #30

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@
- JSONRPC
- [**JSON RPC Introduction**](/json-rpc.md)
- [**Porting Plugins**](/port-plugins.md)
- Plugin Templates
- [**Python Template**](/python.template.md)
- [**How To Create a Theme**](/how-to-create-a-theme.md)
15 changes: 13 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,21 @@
subMaxLevel: 4,
search: 'auto',
auto2top: true,
alias: {
'.*?/python.template':
'https://raw.githubusercontent.com/Flow-Launcher/Flow.Launcher.Plugin.PythonTemplate/master/README.md',
},
plugins: [
function (hook, vm) {
hook.beforeEach(function (html) {
url = 'https://github.com/Flow-Launcher/Docs/blob/main/' + vm.route.file
if (/githubusercontent\.com/.test(vm.route.file)) {
url = vm.route.file
.replace('raw.githubusercontent.com', 'github.com')
.replace(/\/master/, '/blob/master')
.replace(/\/main/, '/blob/main');
} else {
url = 'https://github.com/Flow-Launcher/docs/blob/main/' + vm.route.file
}
taooceros marked this conversation as resolved.
Show resolved Hide resolved
var editHtml = '[:memo: Edit this Page](' + url + ')\n'
return editHtml + html
})
Expand All @@ -56,4 +67,4 @@
</script>
</body>

</html>
</html>