diff --git a/docs/img/cl_connect_repos.png b/docs/img/cl_connect_repos.png new file mode 100644 index 0000000..4553542 Binary files /dev/null and b/docs/img/cl_connect_repos.png differ diff --git a/docs/img/cl_join.png b/docs/img/cl_join.png new file mode 100644 index 0000000..0137c72 Binary files /dev/null and b/docs/img/cl_join.png differ diff --git a/docs/index.md b/docs/index.md index ef16fe6..e3052bd 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,5 +1,44 @@ # Overview -The CodeLingo platform guide's software teams to build better code, faster. CodeLingo has been built to integrate with the unique workflows and existing tooling of software development teams and their unique software development life-cycle (SDLC). With CodeLingo you can query patterns in any domain of the SDLC and automate tasks based on the patterns found. From static to runtime analysis, to timelines and logs - powerful [Flows](concepts/flows.md) can be written to: automate code reviews, provide real-time crash reporting, performance tune systems, migrate architectures and so on. +The CodeLingo platform guide's software teams to build better code, faster. CodeLingo has been built to integrate with the unique workflows and existing tooling of software development teams and their unique software development life-cycle (SDLC). With CodeLingo you can query patterns in any domain of the SDLC and automate tasks based on the patterns found. From static to runtime analysis, to timelines and logs - powerful Tenets can be written to: automate code reviews, provide real-time crash reporting, performance tune systems, migrate architectures and so on. + + +There are three key concepts to CodeLingo: [Bots](/bots), [Tenets](tenets), and [Lexicons](/lexicons). -Our Enterprise offering includes access to the CodeLingo team to compose solutions for customers based on their unique software development life-cycle (SDLC) and to on-board the customer so they can compose/develop their own solutions. \ No newline at end of file + +## The lingo Client + +The lingo client is a command line interface (CLI) tool used to manage the Lexicons, Tenets and Bots. The lingo client will help you find, create and run these resources. For example, to list available lexicons run `$ lingo lexicon list`. You will see output similar to the following: + +```bash +ast/codelingo/cs +ast/codelingo/php +ast/codelingo/golang +vcs/codelingo/git +vcs/codelingo/perforce +... +``` + + +To see a description of a lexicon run `$ lingo lexicon describe`. For example: + +```bash +$ lingo lexicon describe ast/codelingo/cs + +C# AST Lexicon + +This lexicon is a list of facts about the c# AST. +``` + +To list the lexicon’s facts: + +```bash +$ lingo lexicon list-facts ast/codelingo/cs + +name: cs.func_decl +properties: + name + +``` + +To see the full list of commands available, please run `$ lingo --help`. The lingo CLI tool also powers IDE plugins, such as the CLQL generation example above. diff --git a/docs/tutorials/clair-webhooks.md b/docs/tutorials/clair-webhooks.md new file mode 100644 index 0000000..4fc13bd --- /dev/null +++ b/docs/tutorials/clair-webhooks.md @@ -0,0 +1,17 @@ +# Getting started with CLAIR + +CLAIR (CodeLingo AI Reviewer) is a Bot that automatically reviews incoming pull requests on Github repositories. + +She can be setup in a few simple steps: + +1. Make sure you have [joined Codelingo](https://codelingo.io/join) and are logged in. +![CodeLingo Join](../img/cl_join.png) + +2. Visit the [CodeLingo Dashboard](https://codelingo.io/dashboard). + +3. Select the repositories that CLAIR should monitor. +![Codelingo Dashboard](../img/cl_connect_repos.png) + +And that's it. Now whenever a pull request is made on a monitored repo, CLAIR will write a review based on all the +tenets found in the repository. +![CLAIR (CodeLingo AI Reviewer)](../img/clair_review_simple.png)