Skip to content

Commit 9f9a50d

Browse files
first commit
0 parents  commit 9f9a50d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+4895
-0
lines changed

.eslintrc.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": ["../../libs/eslint-config-decipad/react"],
3+
"ignorePatterns": ["!**/*"],
4+
"rules": {
5+
// TODO re-enable when using Yarn workspaces
6+
"import/no-extraneous-dependencies": "off"
7+
}
8+
}

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Docs
2+
3+
Docs are built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.x
4+
5+
### Local Development
6+
7+
```
8+
$ nx serve docs
9+
```
10+
11+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
12+
13+
### Build
14+
15+
```
16+
$ yarn build:docs
17+
```
18+
19+
This command generates static content into the `build` directory and can be served using any static contents hosting service.
20+
21+
### Test
22+
23+
```
24+
$ nx test docs -- [--update]
25+
```
26+
27+
This runs the snapshot tests. Snapshots are found in code blocks (after the `==>`). Add `-- --update` to update those snapshots.

algolia.config.js

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const defaultIndexName = 'docs.dev.decipad.com';
2+
3+
const configs = {
4+
'docs.dev.decipad.com': {
5+
appId: 'TV8XZ0RFSZ',
6+
// Public API key: it is safe to commit it
7+
apiKey: 'db6e12842f8c0c9dded465872fe17d54',
8+
indexName: 'docs.dev.decipad.com',
9+
},
10+
'docs.alpha.decipad.com': {
11+
appId: 'T5O5EB5YRE',
12+
// Public API key: it is safe to commit it
13+
apiKey: '9d26f5ed12e439a985a277527c30749a',
14+
indexName: 'docs.alpha.decipad.com',
15+
},
16+
};
17+
18+
module.exports = function algoliaConfig() {
19+
const algoliaIndexName =
20+
(typeof window !== 'undefined' &&
21+
`docs.${window?.location?.hostname || 'dev.decipad.com'}`) ||
22+
defaultIndexName;
23+
return configs[algoliaIndexName] || configs[defaultIndexName];
24+
};

babel.config.js

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
presets: [
3+
'@nrwl/web/babel',
4+
[
5+
require.resolve('@babel/preset-react'),
6+
{ runtime: 'automatic', importSource: '@emotion/react' },
7+
],
8+
require.resolve('@docusaurus/core/lib/babel/preset'),
9+
],
10+
plugins: [
11+
[
12+
require.resolve('@babel/plugin-proposal-private-methods'),
13+
{ loose: true },
14+
],
15+
[
16+
require.resolve('@babel/plugin-proposal-private-property-in-object'),
17+
{ loose: true },
18+
],
19+
require.resolve('@emotion/babel-plugin'),
20+
],
21+
};

base.config.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const defaultBaseName = 'https://dev.decipad.com';
2+
3+
module.exports = function baseName() {
4+
return (
5+
(typeof window !== 'undefined' &&
6+
`docs.${window?.location?.hostname || 'dev.decipad.com'}`) ||
7+
defaultBaseName
8+
);
9+
};

blog/2019-05-28-first-blog-post.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
slug: decipad-launched
3+
title: Decipad launched
4+
authors: [dolivetree]
5+
tags: [deci, low-code, no-code]
6+
---
7+
8+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet

blog/authors.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
dolivetree:
2+
name: Diana Oliveira
3+
title: Research @ Decipad
4+
url: https://github.com/dolivetree
5+
image_url: https://github.com/dolivetree.png
6+
7+
dscape:
8+
name: Nuno Job
9+
title: CEO @ Decipad
10+
url: https://github.com/dscape
11+
image_url: https://github.com/dscape.png
12+
13+
pgte:
14+
name: Pedro Teixeira
15+
title: CTO @ Decipad
16+
url: https://github.com/pgte
17+
image_url: https://github.com/pgte.png
18+
19+
fabiosantoscode:
20+
name: Fabio Santos
21+
title: Language Engineer @ Decipad
22+
url: https://github.com/fabiosantoscode
23+
image_url: https://github.com/fabiosantoscode.png
24+
25+
jeysal:
26+
name: Tim Seckinger
27+
title: Product Engineer @ Decipad
28+
url: https://github.com/jeysal
29+
image_url: https://github.com/jeysal.png

docs/Glossary.md

+156
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
---
2+
sidebar_position: 500
3+
---
4+
5+
# Glossary
6+
7+
Learn about terms and references commonly used in the documentation.
8+
9+
### Argument
10+
11+
An argument is a variable that affects a function's result.
12+
13+
### Binary operator
14+
15+
A binary operator is an operator that operates on two operands and manipulates them to return a result.
16+
17+
### Boolean
18+
19+
A Boolean is a data type with two possible values: `true` or `false`.
20+
21+
### Calculations block
22+
23+
The calculations block is the place where you can type numbers and perform operations in a more natural way, powered by the Decipad language. In the calculations block, you can type numbers, units, variables, functions, as well as create tables.
24+
25+
```deci live
26+
2 + 2
27+
==> 4
28+
```
29+
30+
### Condition
31+
32+
A conditional statement or conditional is an if-then-else statement.
33+
34+
```deci live
35+
sun_is_down = false
36+
if sun_is_down then "dinner👩‍🍳" else "lunch💪"
37+
==> 'lunch💪'
38+
```
39+
40+
### Decipad language
41+
42+
The language is how you interact and use data in a calculations block.
43+
44+
```deci live
45+
CurrentSavings = 50000
46+
==> 50000
47+
```
48+
49+
### Dimension
50+
51+
A dimension is a category that can be broken down into different items.
52+
53+
### Exponentiation
54+
55+
Exponentiation is the mathematical operation of raising a quantity to a power.
56+
57+
```deci live
58+
(3 meters) ** 2
59+
==> 9 meters²
60+
```
61+
62+
### Expression
63+
64+
An expression is a combination of numbers, variables, functions such as `+`, `-`, `*`, etc.
65+
66+
```deci live
67+
6 / 2
68+
==> 3
69+
```
70+
71+
### Function
72+
73+
A function is a block of reusable Decipad language used to perform a set of operations.
74+
75+
```deci live
76+
max([1, 3, 2])
77+
rounddown(2.9)
78+
==> 2
79+
```
80+
81+
### Integer
82+
83+
An integer is a whole number, not a fractional number, that can be positive, negative or 0.
84+
85+
```deci live
86+
21
87+
-21
88+
0
89+
==> 0
90+
```
91+
92+
### Lookup
93+
94+
Lookup is a pre-built function that can be used to access values in a table to be used in further calculations.
95+
96+
```deci live
97+
Employees = {
98+
name = ["Jane", "Peter", "John"]
99+
Office = ["USA", "Germany", "Japan"]
100+
}
101+
102+
lookup(Employees, "Peter")
103+
==> {
104+
name = 'Peter',
105+
Office = 'Germany'
106+
}
107+
```
108+
109+
### Notebook
110+
111+
A notebook is a place where narrative and data coexist.
112+
113+
## Operand
114+
115+
An operand is a number or quantity upon which a mathematical operation is performed.
116+
117+
## Operator
118+
119+
An operator is a symbol used to perform a mathematical operation.
120+
121+
```deci live
122+
5 - 7
123+
8 + 6
124+
10 / 2
125+
12 * 5
126+
==> 60
127+
```
128+
129+
## String
130+
131+
A string is a data type used to represent text.
132+
133+
## Text block
134+
135+
A text block is a paragraph of text with different text styling options.
136+
137+
## Unit
138+
139+
A unit is any type of measurement. The Decipad language understands some units and knows how to convert between units of that same quantity. Units can be simple and composed.
140+
141+
```deci live
142+
2 apples
143+
50 miles/hour
144+
==> 50 miles per hour
145+
```
146+
147+
## Variable
148+
149+
A variable is a way to store a value in a name, which can then be used in further calculations. Declaring a variable is assigning it a value using the `=` operator.
150+
151+
```deci live
152+
Total_Revenue = 50000 USD
153+
Total_Costs = 23000 USD
154+
Yearly_Profit = Total_Revenue - Total_Costs
155+
==> 27000 $
156+
```

docs/_category_.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"label": "Decipad Documentation",
3+
"position": 2
4+
}
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"label": "Advanced Concepts",
3+
"position": 25
4+
}

0 commit comments

Comments
 (0)