Merge branch 'in-app-documentation' of https://github.com/Superalgos/Superalgos into in-app-documentation
This commit is contained in:
commit
1cef450030
4 files changed
+82
-15
No files matched your search
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"type": "The Docs Explained",
|
||||
"definition": {
|
||||
"text": "This book will walk you through everything you need to know about the Docs.",
|
||||
"updated": 1609762580891
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Chapter",
|
||||
"text": "Superalgos->I->Docs Basics->Read Chapter I to learn the basics concepts. They are the foundation that will let you understand the commands and styles explained later in this book.",
|
||||
"updated": 1609763076399
|
||||
},
|
||||
{
|
||||
"style": "Chapter",
|
||||
"text": "Superalgos->II->Docs Commands->The Docs include a powerful command line interface that allows you to quickly fire commands from the search box. Dive into Chapter II to learn the details of each available command.",
|
||||
"updated": 1609763122458
|
||||
},
|
||||
{
|
||||
"style": "Chapter",
|
||||
"text": "Superalgos->III->Docs Commands Errors"
|
||||
},
|
||||
{
|
||||
"style": "Chapter",
|
||||
"text": "Superalgos->IV->Docs Commands Messages",
|
||||
"updated": 1609783744261
|
||||
},
|
||||
{
|
||||
"style": "Chapter",
|
||||
"text": "Superalgos->V->Docs Paragraph Styles"
|
||||
},
|
||||
{
|
||||
"style": "Chapter",
|
||||
"text": "Superalgos->VI->Docs Context Menu Actions"
|
||||
}
|
||||
]
|
||||
}
|
||||
+2
-2
@@ -3,8 +3,8 @@
|
||||
"pageNumber": "2",
|
||||
"type": "App Error Github Credentials Missing",
|
||||
"definition": {
|
||||
"text": "In order to manage contributions from within the app, you first need to provide your Github.com credentials so that we can get authenticated when pushing your changes to the remote repository.",
|
||||
"updated": 1609855182001
|
||||
"text": "In order to manage contributions from within the app, you first need to provide your Github.com credentials so that we can get authenticated when pushing your changes to the remote repository. 5",
|
||||
"updated": 1609939011496
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
|
||||
@@ -31,12 +31,34 @@ function newSuperalgosDocsCommmandInterface() {
|
||||
}
|
||||
if (UI.projects.superalgos.spaces.docsSpace.commandInterface.command.indexOf('App.Contribute') !== 0 && UI.projects.superalgos.spaces.docsSpace.commandInterface.command.indexOf('app.contribute') !== 0) { return }
|
||||
|
||||
/* Set up the commit message */
|
||||
let message = UI.projects.superalgos.spaces.docsSpace.commandInterface.command.trim().substring(UI.projects.superalgos.spaces.docsSpace.commandInterface.command.indexOf(' ') + 1, UI.projects.superalgos.spaces.docsSpace.commandInterface.command.length)
|
||||
if (message.toLowerCase() === 'app.contribute') {
|
||||
message = 'This is my contribution to Superalgos'
|
||||
}
|
||||
}
|
||||
|
||||
httpRequest(undefined, 'App/Contribute/' + message, onResponse)
|
||||
/* Find the Username and Password */
|
||||
let apisNode = UI.projects.superalgos.spaces.designSpace.workspace.getHierarchyHeadsByType('APIs')
|
||||
if (apisNode === undefined) {
|
||||
UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Error Github Credentials Missing', 'Anchor Github Credentials Missing')
|
||||
return true
|
||||
}
|
||||
if (apisNode.githubAPI === undefined) {
|
||||
UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Error Github Credentials Missing', 'Anchor Github Credentials Missing')
|
||||
return true
|
||||
}
|
||||
|
||||
let config = JSON.parse(apisNode.githubAPI.config)
|
||||
if (config.username === undefined || config.username === "") {
|
||||
UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Error Github Credentials Missing', 'Anchor Github Credentials Missing')
|
||||
return true
|
||||
}
|
||||
if (config.token === undefined || config.token === "") {
|
||||
UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'App Error Github Credentials Missing', 'Anchor Github Credentials Missing')
|
||||
return true
|
||||
}
|
||||
|
||||
httpRequest(undefined, 'App/Contribute/' + message + '/' + config.username + '/' + config.token, onResponse)
|
||||
return true
|
||||
|
||||
function onResponse(err, data) {
|
||||
|
||||
Reference in new issue
Block a user