-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
149 additions
and
40 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 |
---|---|---|
|
@@ -2,6 +2,3 @@ aquila | |
|
||
# .idea files | ||
.idea | ||
|
||
|
||
aquila.yaml |
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 |
---|---|---|
|
@@ -4,9 +4,9 @@ Manage Docs Seamlessly. Aquila Helps you to manage testable code snippets in you | |
|
||
## Usage | ||
|
||
See Usage Instructions. | ||
See Usage Instructions [here](how_to_use.md), and also see the [example](example/). | ||
|
||
Building from Source : | ||
### Building from Source : | ||
|
||
```bash | ||
git clone [email protected]:amanv8060/aquila.git | ||
|
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
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
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
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,2 @@ | ||
# Ignore Code Regions if you don't want to be source controlled. | ||
code_regions/ |
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,2 @@ | ||
codePath: "." | ||
docsPath: "./docs" |
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,21 @@ | ||
## Getting Started | ||
|
||
This is a simple example of how to use the `example` package. | ||
|
||
### Installation | ||
|
||
Clone the repo and cd into the directory: | ||
|
||
git clone | ||
cd example | ||
|
||
## Example Functions : | ||
|
||
### How to say Hi | ||
|
||
`<?code-region "main.js" region="sayHi"?>` | ||
|
||
### How to add in js | ||
|
||
`<?code-region "main.js" region="addition"?>` | ||
|
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,36 @@ | ||
## Getting Started | ||
|
||
This is a simple example of how to use the `example` package. | ||
|
||
### Installation | ||
|
||
Clone the repo and cd into the directory: | ||
|
||
git clone | ||
cd example | ||
|
||
## Example Functions : | ||
|
||
### How to say Hi | ||
|
||
<?code-region "main.js" region="sayHi"?> | ||
```js | ||
|
||
// Function to say hi. | ||
function sayHi() { | ||
console.log("Hi!"); | ||
} | ||
... | ||
``` | ||
|
||
### How to add in js | ||
|
||
<?code-region "main.js" region="addition"?> | ||
```js | ||
|
||
function addition(a, b) { | ||
return a + b; | ||
} | ||
... | ||
``` | ||
|
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,18 @@ | ||
// #aqstart sayHi | ||
|
||
// Function to say hi. | ||
function sayHi() { | ||
console.log("Hi!"); | ||
} | ||
|
||
// #aqend sayHi | ||
|
||
|
||
// #aqstart addition | ||
|
||
function addition(a, b) { | ||
return a + b; | ||
} | ||
|
||
// #aqend addition | ||
|
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,11 @@ | ||
{ | ||
"name": "example_code_repo", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
} |
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,24 @@ | ||
## How to Use | ||
|
||
Using aquila is a 3-step process: | ||
|
||
### Setup Config Files | ||
|
||
- Create `aquila.yaml` config file. | ||
- Specify the `codePath` & `docsPath` directory in the config file. | ||
|
||
### Setting Up | ||
|
||
- Annotate all the code regions that might be used within the docs using a comment `#aqstart <region-name>` | ||
and closing it with `#aqend <region-name>`. | ||
- Wherever you want to use the code region in the docs, use the following | ||
syntax: `<?code-region <file-name> region="<region-name>"?>`. | ||
|
||
### Using | ||
|
||
- Generate the docs using `aquila generate` command. | ||
- The generated docs will be present in the `./code_regions` directory. | ||
- Run `aquila update-md` to update the docs with the generated code regions. | ||
|
||
Example can be found [here](example/). | ||
|
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
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
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