-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #594 from conjure-cp/docbits
Adding the "bits" in the documentation to sphinx
- Loading branch information
Showing
18 changed files
with
64 additions
and
19 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
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,25 @@ | ||
|
||
.. _bits: | ||
|
||
Bits | ||
==== | ||
|
||
These *bits* of documentation are used in the Visual Studio Code extension for Conjure. | ||
Search for `conjure-vs-code` inside VS Code to install this extension. | ||
The extension is open source as well, and it is hosted at https://github.com/conjure-cp/conjure-vs-code. | ||
|
||
We include them here for reference and convenience, but this part of the documentation is intended to be useful primarily through the VS Code extension. | ||
|
||
.. toctree:: | ||
|
||
bits/attribute/L_regular.md | ||
bits/function/min.md | ||
bits/function/and.md | ||
bits/function/max.md | ||
bits/function/allDiff.md | ||
bits/keyword/find.md | ||
bits/keyword/expr_projection.md | ||
bits/keyword/new_type_enum.md | ||
bits/operator/L_Div.md | ||
bits/operator/L_in.md | ||
bits/operator/L_Mod.md |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
## `regular` : partition attribute | ||
# regular | ||
|
||
Regular is an attribute for partitions that takes no arguments. | ||
|
||
It enforces that the sizes of the parts are equal. |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# AllDifferent | ||
# allDiff | ||
|
||
```essence | ||
allDiff(_) | ||
``` | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# and | ||
|
||
Conjunction (logical and) operator. | ||
|
||
Can be applied on a list of Booleans and produces a single Boolean as the result. |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Max | ||
# max | ||
|
||
```essence | ||
max(expr) $or | ||
max(`domain`) | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Min | ||
# min | ||
|
||
```essence | ||
min(expr) $or | ||
min(`domain`) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
## Find | ||
# find | ||
|
||
The `find` keyword is used to declare decision variables. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# / (integer division) | ||
|
||
This is the integer division operator. | ||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
**Mod operator** | ||
# % (modulo) | ||
|
||
``` | ||
% | ||
``` | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
## Operator in | ||
# in (membership check) | ||
|
||
```essence | ||
in | ||
``` | ||
|
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 |
---|---|---|
@@ -1,2 +1,6 @@ | ||
python3 -m pip install -r requirements.txt | ||
python3 -m sphinx . _build | ||
rm -rf myenv | ||
python3 -m venv myenv | ||
source myenv/bin/activate | ||
pip install -r requirements.txt | ||
make html | ||
deactivate |
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 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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
nbsphinx==0.9.3 | ||
sphinx-mdinclude==0.5.3 | ||
sphinx==7.2.6 | ||
sphinx_rtd_theme==1.3.0 | ||
sphinxcontrib-bibtex==2.5.0 | ||
sphinxcontrib-inlinesyntaxhighlight==0.2 | ||
sphinx_rtd_theme==1.2.0 | ||
sphinx==6.1.3 | ||
nbsphinx==0.9.1 | ||
sphinxcontrib-jquery==4.1 |