Skip to content

Commit

Permalink
Merge pull request #3 from Bashamega/website
Browse files Browse the repository at this point in the history
Added Documentation
  • Loading branch information
merwin-asm authored Jan 20, 2024
2 parents 334611e + f4cf9d1 commit ebe682f
Show file tree
Hide file tree
Showing 15 changed files with 451 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/author/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
<a href="../../index.html" >About</a>
</li>
<li><a href="../gettingstarted/">Getting Started</a></li>
<li><a href="../cmdExamples/">Commandline examples</a></li>
<li><a href="../key/">Key Words</a></li>
<li><a href="../general/">General Commands</a></li>
<li><a href="../properties/">Properties</a></li>
<li><a href="../import/">Importing</a></li>
<li><a href="../newpackage/">Creating new package</a></li>
<li><a href="../commenting/">Commenting</a></li>
<li><a href="../packages/">Packages</a></li>
<li><a href="../contributing/">Contibuting</a></li>
<li><a href="../support/">Support</a></li>
Expand Down
61 changes: 61 additions & 0 deletions docs/cmdExamples/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>April | Documentation</title>
<link rel="stylesheet" href="../../style.css">
</head>
<body>
<nav>
<ul class="nav-list">
<li>
<a href="../../index.html" >About</a>
</li>
<li><a href="../gettingstarted/">Getting Started</a></li>
<li class="active"><a href="../cmdExamples/">Commandline examples</a></li>
<li><a href="../key/">Key Words</a></li>
<li><a href="../general/">General Commands</a></li>
<li><a href="../properties/">Properties</a></li>
<li><a href="../import/">Importing</a></li>
<li><a href="../newpackage/">Creating new package</a></li>
<li><a href="../commenting/">Commenting</a></li>
<li><a href="../packages/">Packages</a></li>
<li><a href="../contributing/">Contibuting</a></li>
<li><a href="../support/">Support</a></li>
<li><a href="../author/">Author</a></li>
<li><a href="../license/">License</a></li>
</ul>
</nav>
<main>
<div class="theme-switcher">
<span id="toggle-icon" class="light-mode"></span>
<label class="switch">
<input type="checkbox" id="theme-toggle">
<span class="slider round"></span>
</label>
</div>
<h1>Commandline examples</h1>
<div class="content">
<p>Get the list of allowed commands</p>
<div class="codeSnippet">april -h</div>
<p>Get info of the language</p>
<div class="codeSnippet">april -a</div>
<p>Compile an .apl file (april file):</p>
<ul>
<li>This converts the april code to python3 code</li>
<li>Compiled file is saved as filename without extention apl + '_apl.py'</li>
</ul>
<div class="codeSnippet">april -c file.apl</div>
<p>Run an .apl file (start the API server):</p>
<ul>
<li>Format for the command is - april -r host:port</li>
</ul>
<div class="codeSnippet">april -r file.apl 0.0.0.0:8080</div>
<p>Get the version of april:</p>
<div class="codeSnippet">april -v</div>
</div>
</main>
<script src="../../script.js"></script>
</body>
</html>
55 changes: 55 additions & 0 deletions docs/commenting/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>April | Documentation</title>
<link rel="stylesheet" href="../../style.css">
</head>
<body>
<nav>
<ul class="nav-list">
<li>
<a href="../../index.html" >About</a>
</li>
<li><a href="../gettingstarted/">Getting Started</a></li>
<li><a href="../cmdExamples/">Commandline examples</a></li>
<li><a href="../key/">Key Words</a></li>
<li><a href="../general/">General Commands</a></li>
<li><a href="../properties/">Properties</a></li>
<li><a href="../import/">Importing</a></li>
<li><a href="../newpackage/">Creating new package</a></li>
<li class="active"><a href="../commenting/">Commenting</a></li>
<li><a href="../packages/">Packages</a></li>
<li><a href="../contributing/">Contibuting</a></li>
<li><a href="../support/">Support</a></li>
<li><a href="../author/">Author</a></li>
<li><a href="../license/">License</a></li>
</ul>
</nav>
<main>
<div class="theme-switcher">
<span id="toggle-icon" class="light-mode"></span>
<label class="switch">
<input type="checkbox" id="theme-toggle">
<span class="slider round"></span>
</label>
</div>
<h1>License</h1>
<div class="content">
<ul>
<li>This can be done by using '//'</li>
<li>There is only single line commenting</li>
</ul>
<h2>Example:</h2>
<div class="codeSnippet">
// Program 1
<br>
<br>
IMPORT X // importing x
</div>
</div>
</main>
<script src="../../script.js"></script>
</body>
</html>
7 changes: 7 additions & 0 deletions docs/contributing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
<a href="../../index.html" >About</a>
</li>
<li><a href="../gettingstarted/">Getting Started</a></li>
<li><a href="../cmdExamples/">Commandline examples</a></li>
<li><a href="../key/">Key Words</a></li>
<li><a href="../general/">General Commands</a></li>
<li><a href="../properties/">Properties</a></li>
<li><a href="../import/">Importing</a></li>
<li><a href="../newpackage/">Creating new package</a></li>
<li><a href="../commenting/">Commenting</a></li>
<li><a href="../packages/">Packages</a></li>
<li class="active"><a href="#" aria-current="page">Contibuting</a></li>
<li><a href="../support/">Support</a></li>
Expand Down
55 changes: 55 additions & 0 deletions docs/general/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>April | Documentation</title>
<link rel="stylesheet" href="../../style.css">
</head>
<body>
<nav>
<ul class="nav-list">
<li>
<a href="../../index.html" >About</a>
</li>
<li><a href="../gettingstarted/">Getting Started</a></li>
<li><a href="../cmdExamples/">Commandline examples</a></li>
<li><a href="../key/">Key Words</a></li>
<li class="active"><a href="../general/">General Commands</a></li>
<li><a href="../properties/">Properties</a></li>
<li><a href="../import/">Importing</a></li>
<li><a href="../newpackage/">Creating new package</a></li>
<li><a href="../commenting/">Commenting</a></li>
<li><a href="../packages/">Packages</a></li>
<li><a href="../contributing/">Contibuting</a></li>
<li><a href="../support/">Support</a></li>
<li><a href="../author/">Author</a></li>
<li><a href="../license/">License</a></li>
</ul>
</nav>
<main>
<div class="theme-switcher">
<span id="toggle-icon" class="light-mode"></span>
<label class="switch">
<input type="checkbox" id="theme-toggle">
<span class="slider round"></span>
</label>
</div>
<h1>License</h1>
<div class="content">
<ul><li>General format:</li></ul>
<p>&lt;request_type eg: get,post..&gt;(&lt;the api endpoint, use '{var-name}' when there is a variable in the endpoint url eg: '/home/page/{}'&gt;) :
</p>
<h3>Examples</h3>
<h4>Making a GET end point:</h4>
<div class="codeSnippet">get('/home') : python3 home.py</div>
<h4>Making a Get endpoint with 1/more variables:</h4>
<div class="codeSnippet">get('/home/page/{x}/para/{y}') : python3 home.py</div>
<p>Then the rest is done with the help of packages made for integrating april with them. You can find the list of packages <a href="../packages/">here</a>.</p>


</div>
</main>
<script src="../../script.js"></script>
</body>
</html>
7 changes: 7 additions & 0 deletions docs/gettingstarted/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
<a href="../../index.html" >About</a>
</li>
<li class="active"><a href="#" aria-current="page">Getting Started</a></li>
<li><a href="../cmdExamples/">Commandline examples</a></li>
<li><a href="../key/">Key Words</a></li>
<li><a href="../general/">General Commands</a></li>
<li><a href="../properties/">Properties</a></li>
<li><a href="../import/">Importing</a></li>
<li><a href="../newpackage/">Creating new package</a></li>
<li><a href="../commenting/">Commenting</a></li>
<li><a href="../packages/">Packages</a></li>
<li><a href="../contributing/">Contibuting</a></li>
<li><a href="../support/">Support</a></li>
Expand Down
58 changes: 58 additions & 0 deletions docs/import/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>April | Documentation</title>
<link rel="stylesheet" href="../../style.css">
</head>
<body>
<nav>
<ul class="nav-list">
<li>
<a href="../../index.html" >About</a>
</li>
<li><a href="../gettingstarted/">Getting Started</a></li>
<li><a href="../cmdExamples/">Commandline examples</a></li>
<li><a href="../key/">Key Words</a></li>
<li><a href="../general/">General Commands</a></li>
<li><a href="../properties/">Properties</a></li>
<li class="active"><a href="../import/">Importing</a></li>
<li><a href="../newpackage/">Creating new package</a></li>
<li><a href="../commenting/">Commenting</a></li>
<li><a href="../packages/">Packages</a></li>
<li><a href="../contributing/">Contibuting</a></li>
<li><a href="../support/">Support</a></li>
<li><a href="../author/">Author</a></li>
<li><a href="#">License</a></li>
</ul>
</nav>
<main>
<div class="theme-switcher">
<span id="toggle-icon" class="light-mode"></span>
<label class="switch">
<input type="checkbox" id="theme-toggle">
<span class="slider round"></span>
</label>
</div>
<h1>Import</h1>
<div class="content">
<ul>
<li>You can import other april files into an april program
</li>
<li>Importing an other apl code would ignore the keyword commands from the imported file
</li>
<li>Importing can be used to apply the same endpoints in your apl file
</li>
<li>You just need to mention the file name without extention
</li>
<li>The file should be saved with an .apl extention
</li>
</ul>
<h3>Example:</h3>
<div class="codeSnippet">IMPORT code // the imported code should be saved as code.apl</div>
</div>
</main>
<script src="../../script.js"></script>
</body>
</html>
69 changes: 69 additions & 0 deletions docs/key/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>April | Documentation</title>
<link rel="stylesheet" href="../../style.css">
</head>
<body>
<nav>
<ul class="nav-list">
<li>
<a href="../../index.html" >About</a>
</li>
<li><a href="../gettingstarted/">Getting Started</a></li>
<li><a href="../cmdExamples/">Commandline examples</a></li>
<li class="active"><a href="../key/">Key Words</a></li>
<li><a href="../general/">General Commands</a></li>
<li><a href="../properties/">Properties</a></li>
<li><a href="../import/">Importing</a></li>
<li><a href="../newpackage/">Creating new package</a></li>
<li><a href="../commenting/">Commenting</a></li>
<li><a href="../packages/">Packages</a></li>
<li><a href="../contributing/">Contibuting</a></li>
<li><a href="../support/">Support</a></li>
<li><a href="../author/">Author</a></li>
<li><a href="../license/">License</a></li>
</ul>
</nav>
<main>
<div class="theme-switcher">
<span id="toggle-icon" class="light-mode"></span>
<label class="switch">
<input type="checkbox" id="theme-toggle">
<span class="slider round"></span>
</label>
</div>
<h1>Keyword commands</h1>
<div class="content">
<ul dir="auto">
<li>
<p dir="auto">Generate Documentation ( 'GEN_DOC {eg : /e/e/doc }' )</p>
</li>
<li>
<p dir="auto">Rate Limiting ( 'RATE_LIMIT {how many per min}' )</p>
</li>
<li>
<p dir="auto">Disallow Private IP ( 'DISALLOW_PRIVATE_IP' )</p>
</li>
<li>
<p dir="auto">Not Allowed IP ( 'NOT_ALLOWED_IP {textfile.txt each ip sep by \n}' )</p>
</li>
<li>
<p dir="auto">Import april files ( 'IMPORT {filename}' )</p>
</li>
<li>
<p dir="auto">Other keywords:</p>
<ul dir="auto">
<li>TITLE '{}'</li>
<li>VERSION {}</li>
<li>DESC '{}'</li>
</ul>
</li>
</ul>
</div>
</main>
<script src="../../script.js"></script>
</body>
</html>
7 changes: 7 additions & 0 deletions docs/license/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
<a href="../../index.html" >About</a>
</li>
<li><a href="../gettingstarted/">Getting Started</a></li>
<li><a href="../cmdExamples/">Commandline examples</a></li>
<li><a href="../key/">Key Words</a></li>
<li><a href="../general/">General Commands</a></li>
<li><a href="../properties/">Properties</a></li>
<li><a href="../import/">Importing</a></li>
<li><a href="../newpackage/">Creating new package</a></li>
<li><a href="../commenting/">Commenting</a></li>
<li><a href="../packages/">Packages</a></li>
<li><a href="../contributing/">Contibuting</a></li>
<li><a href="../support/">Support</a></li>
Expand Down
Loading

0 comments on commit ebe682f

Please sign in to comment.