clindocs 1.5.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- clindocs-1.5.1/.envrc +10 -0
- clindocs-1.5.1/.github/workflows/deploy.yml +46 -0
- clindocs-1.5.1/.github/workflows/doc.yml +49 -0
- clindocs-1.5.1/.github/workflows/test.yml +41 -0
- clindocs-1.5.1/.gitignore +39 -0
- clindocs-1.5.1/.pre-commit-config.yaml +74 -0
- clindocs-1.5.1/CHANGES.md +14 -0
- clindocs-1.5.1/CONTRIBUTING.md +31 -0
- clindocs-1.5.1/DEPLOYMENT.md +15 -0
- clindocs-1.5.1/DEVELOPMENT.md +62 -0
- clindocs-1.5.1/LICENSE +21 -0
- clindocs-1.5.1/PKG-INFO +81 -0
- clindocs-1.5.1/README.md +19 -0
- clindocs-1.5.1/docs/SUMMARY.md +25 -0
- clindocs-1.5.1/docs/_custom/css/extra.css +196 -0
- clindocs-1.5.1/docs/_custom/css/mkdocstrings.css +50 -0
- clindocs-1.5.1/docs/_custom/css/window_suggestions.css +13 -0
- clindocs-1.5.1/docs/_custom/javascripts/mathjax.js +19 -0
- clindocs-1.5.1/docs/_custom/overrides/.icons/potassco-full-logo.svg +21 -0
- clindocs-1.5.1/docs/_custom/overrides/.icons/potassco-logo.svg +10 -0
- clindocs-1.5.1/docs/_custom/overrides/partials/logo.html +29 -0
- clindocs-1.5.1/docs/assets/images/potassco-logo-dark.svg +10 -0
- clindocs-1.5.1/docs/assets/images/potassco-logo.svg +10 -0
- clindocs-1.5.1/docs/assets/images/pt_rgb_green_digital.svg +9 -0
- clindocs-1.5.1/docs/community/CHANGES.md +11 -0
- clindocs-1.5.1/docs/community/CONTRIBUTING.md +5 -0
- clindocs-1.5.1/docs/community/DEPLOYMENT.md +5 -0
- clindocs-1.5.1/docs/community/DEVELOPMENT.md +5 -0
- clindocs-1.5.1/docs/community/index.md +33 -0
- clindocs-1.5.1/docs/examples/config.md +25 -0
- clindocs-1.5.1/docs/examples/index.md +22 -0
- clindocs-1.5.1/docs/examples/sudoku.md +30 -0
- clindocs-1.5.1/docs/index.md +19 -0
- clindocs-1.5.1/docs/reference/index.md +24 -0
- clindocs-1.5.1/docs/reference/predicate-docs.md +54 -0
- clindocs-1.5.1/docs/reference/sections/dependency-graph.md +35 -0
- clindocs-1.5.1/docs/reference/sections/encodings.md +118 -0
- clindocs-1.5.1/docs/reference/sections/glossary.md +69 -0
- clindocs-1.5.1/docs/reference/sections/index.md +10 -0
- clindocs-1.5.1/docs/reference/sections/predicate-table.md +83 -0
- clindocs-1.5.1/docs/reference/style.md +6 -0
- clindocs-1.5.1/docs/use/help.md +53 -0
- clindocs-1.5.1/docs/use/index.md +28 -0
- clindocs-1.5.1/docs/use/installation.md +13 -0
- clindocs-1.5.1/docs/use/quick-start.md +86 -0
- clindocs-1.5.1/examples/config/base/clingo/boolean.lp +23 -0
- clindocs-1.5.1/examples/config/base/clingo/integer.lp +5 -0
- clindocs-1.5.1/examples/config/base/clingo/numerics.lp +21 -0
- clindocs-1.5.1/examples/config/base/clingo/table.lp +14 -0
- clindocs-1.5.1/examples/config/base/clingo/user.lp +8 -0
- clindocs-1.5.1/examples/config/base/constraints.lp +7 -0
- clindocs-1.5.1/examples/config/base/defined.lp +29 -0
- clindocs-1.5.1/examples/config/base/discrete.lp +11 -0
- clindocs-1.5.1/examples/config/base/show-clingo.lp +6 -0
- clindocs-1.5.1/examples/config/base/structure.lp +17 -0
- clindocs-1.5.1/examples/config/doc.lp +310 -0
- clindocs-1.5.1/examples/config/encoding-base-clingo.lp +14 -0
- clindocs-1.5.1/examples/sudoku/encoding.lp +62 -0
- clindocs-1.5.1/examples/sudoku/instance.lp +35 -0
- clindocs-1.5.1/mkdocs.yml +128 -0
- clindocs-1.5.1/noxfile.py +88 -0
- clindocs-1.5.1/pyproject.toml +108 -0
- clindocs-1.5.1/setup.cfg +4 -0
- clindocs-1.5.1/src/clindocs.egg-info/PKG-INFO +81 -0
- clindocs-1.5.1/src/clindocs.egg-info/SOURCES.txt +118 -0
- clindocs-1.5.1/src/clindocs.egg-info/dependency_links.txt +1 -0
- clindocs-1.5.1/src/clindocs.egg-info/entry_points.txt +2 -0
- clindocs-1.5.1/src/clindocs.egg-info/requires.txt +35 -0
- clindocs-1.5.1/src/clindocs.egg-info/top_level.txt +1 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/__init__.py +5 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/__init__.py +0 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/collect/__init__.py +0 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/collect/debug.py +19 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/collect/extractors.py +317 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/collect/load.py +92 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/collect/queries/body.scm +11 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/collect/queries/documentation_argument.scm +4 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/collect/queries/documentation_predicate.scm +12 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/collect/queries/head.scm +54 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/collect/queries/predicate.scm +29 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/collect/queries/show.scm +15 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/collect/syntax.py +95 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/config.py +133 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/domain.py +140 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/error.py +5 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/handler.py +175 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/render/__init__.py +0 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/render/dependency_graph_context.py +66 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/render/encodings_context.py +134 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/render/glossary_context.py +155 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/render/predicate_info.py +197 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/render/predicate_table_context.py +56 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/_internal/render/render_context.py +74 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/py.typed +0 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/templates/material/dependency_graph.html.jinja +55 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/templates/material/documentation.html.jinja +13 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/templates/material/encodings.html.jinja +55 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/templates/material/glossary.html.jinja +67 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/templates/material/glossary_references.html.jinja +51 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/templates/material/icons.html.jinja +62 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/templates/material/predicate_table.html.jinja +39 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/templates/material/separator.html.jinja +3 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/templates/material/source.html.jinja +8 -0
- clindocs-1.5.1/src/mkdocstrings_handlers/asp/templates/material/style.css +89 -0
- clindocs-1.5.1/tests/__init__.py +0 -0
- clindocs-1.5.1/tests/collect/__init__.py +0 -0
- clindocs-1.5.1/tests/collect/test_debug.py +27 -0
- clindocs-1.5.1/tests/collect/test_extractors.py +635 -0
- clindocs-1.5.1/tests/collect/test_load.py +160 -0
- clindocs-1.5.1/tests/collect/test_syntax.py +39 -0
- clindocs-1.5.1/tests/conftest.py +63 -0
- clindocs-1.5.1/tests/py.typed +0 -0
- clindocs-1.5.1/tests/render/__init__.py +0 -0
- clindocs-1.5.1/tests/render/test_dependency_graph_context.py +36 -0
- clindocs-1.5.1/tests/render/test_encodings_context.py +135 -0
- clindocs-1.5.1/tests/render/test_glossary_context.py +77 -0
- clindocs-1.5.1/tests/render/test_predicate_info.py +134 -0
- clindocs-1.5.1/tests/render/test_predicate_table_context.py +58 -0
- clindocs-1.5.1/tests/test_config.py +72 -0
- clindocs-1.5.1/tests/test_handler.py +151 -0
clindocs-1.5.1/.envrc
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# automatically activate dev environment when in project tree using direnv.
|
|
2
|
+
ACT=.nox/dev/bin/activate
|
|
3
|
+
|
|
4
|
+
if [ -e $ACT ]
|
|
5
|
+
then
|
|
6
|
+
source $ACT
|
|
7
|
+
else
|
|
8
|
+
echo "Activation script ${ACT} not found for dev environment.
|
|
9
|
+
Run nox -s dev to install dev environment"
|
|
10
|
+
fi
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: deploy to pypi
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
push:
|
|
6
|
+
tags:
|
|
7
|
+
- "v[0-9]+.[0-9]+.[0-9]+"
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
deploy:
|
|
11
|
+
name: deploy
|
|
12
|
+
permissions:
|
|
13
|
+
id-token: write
|
|
14
|
+
environment: release
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
if: ${{ endsWith(github.event.base_ref, 'master') }}
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
with:
|
|
20
|
+
fetch-depth: 0
|
|
21
|
+
|
|
22
|
+
- uses: actions/setup-python@v5
|
|
23
|
+
with:
|
|
24
|
+
python-version: 3.11
|
|
25
|
+
|
|
26
|
+
- name: install build dependencies
|
|
27
|
+
run: python3 -m pip install build
|
|
28
|
+
|
|
29
|
+
- name: build package
|
|
30
|
+
run: python3 -m build --sdist --wheel --outdir dist/
|
|
31
|
+
|
|
32
|
+
- name: upload package
|
|
33
|
+
uses: actions/upload-artifact@v4
|
|
34
|
+
with:
|
|
35
|
+
name: package
|
|
36
|
+
path: dist/
|
|
37
|
+
|
|
38
|
+
- name: publish package (pypi)
|
|
39
|
+
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
|
|
40
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
41
|
+
|
|
42
|
+
- name: publish package (test.pypi)
|
|
43
|
+
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
44
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
45
|
+
with:
|
|
46
|
+
repository-url: "https://test.pypi.org/legacy/"
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
name: Deploy Documentation
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- master
|
|
6
|
+
permissions:
|
|
7
|
+
contents: read
|
|
8
|
+
pages: write
|
|
9
|
+
id-token: write
|
|
10
|
+
|
|
11
|
+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
|
12
|
+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
|
13
|
+
concurrency:
|
|
14
|
+
group: "pages"
|
|
15
|
+
cancel-in-progress: false
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
build:
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- name: Checkout
|
|
22
|
+
uses: actions/checkout@v4
|
|
23
|
+
- name: Set up Python 3.11
|
|
24
|
+
uses: actions/setup-python@v5
|
|
25
|
+
with:
|
|
26
|
+
python-version: 3.11
|
|
27
|
+
- name: Install dependencies
|
|
28
|
+
run: |
|
|
29
|
+
python -m pip install --upgrade pip
|
|
30
|
+
python -m pip install -e .[doc]
|
|
31
|
+
- name: Build the documentation
|
|
32
|
+
run: mkdocs build
|
|
33
|
+
- name: Setup Pages
|
|
34
|
+
id: pages
|
|
35
|
+
uses: actions/configure-pages@v5
|
|
36
|
+
- name: Upload artifact
|
|
37
|
+
uses: actions/upload-pages-artifact@v3
|
|
38
|
+
with:
|
|
39
|
+
path: "./site"
|
|
40
|
+
deploy:
|
|
41
|
+
runs-on: ubuntu-latest
|
|
42
|
+
environment:
|
|
43
|
+
name: github-pages
|
|
44
|
+
url: ${{ format('{0}docs/', steps.deployment.outputs.page_url) }}
|
|
45
|
+
needs: build
|
|
46
|
+
steps:
|
|
47
|
+
- name: Deploy to GitHub Pages
|
|
48
|
+
id: deployment
|
|
49
|
+
uses: actions/deploy-pages@v4
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: run CI test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [devel, main, master, wip]
|
|
6
|
+
pull_request:
|
|
7
|
+
workflow_call:
|
|
8
|
+
|
|
9
|
+
env:
|
|
10
|
+
FORCE_COLOR: "3"
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
name: test on ${{ matrix.os }}
|
|
15
|
+
runs-on: ${{ matrix.os }}
|
|
16
|
+
strategy:
|
|
17
|
+
fail-fast: false
|
|
18
|
+
matrix:
|
|
19
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
20
|
+
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v4
|
|
23
|
+
- uses: actions/setup-python@v5
|
|
24
|
+
with:
|
|
25
|
+
python-version: 3.9
|
|
26
|
+
- uses: actions/setup-python@v5
|
|
27
|
+
with:
|
|
28
|
+
python-version: 3.11
|
|
29
|
+
|
|
30
|
+
- name: install requirements
|
|
31
|
+
run: |
|
|
32
|
+
python -m pip install nox pre-commit
|
|
33
|
+
python -m pip install -e .[dev]
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
- name: run pre-commit
|
|
37
|
+
if: ${{ matrix.os == 'ubuntu-latest' }}
|
|
38
|
+
run: pre-commit run --all --show-diff-on-failure
|
|
39
|
+
|
|
40
|
+
- name: run tests
|
|
41
|
+
run: nox
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Editors
|
|
2
|
+
.vscode/
|
|
3
|
+
*~
|
|
4
|
+
\#*\#
|
|
5
|
+
.\#*
|
|
6
|
+
|
|
7
|
+
# Mac/OSX
|
|
8
|
+
.DS_Store
|
|
9
|
+
|
|
10
|
+
# Byte-compiled / optimized / DLL files
|
|
11
|
+
__pycache__/
|
|
12
|
+
*.py[cod]
|
|
13
|
+
*$py.class
|
|
14
|
+
|
|
15
|
+
# Installer logs
|
|
16
|
+
pip-log.txt
|
|
17
|
+
pip-delete-this-directory.txt
|
|
18
|
+
|
|
19
|
+
# Unit test / coverage reports
|
|
20
|
+
.pytest_cache/
|
|
21
|
+
|
|
22
|
+
# pyenv
|
|
23
|
+
.python-version
|
|
24
|
+
|
|
25
|
+
# mypy
|
|
26
|
+
.mypy_cache/
|
|
27
|
+
.dmypy.json
|
|
28
|
+
dmypy.json
|
|
29
|
+
*egg-info*
|
|
30
|
+
|
|
31
|
+
# unclassified
|
|
32
|
+
dist
|
|
33
|
+
build
|
|
34
|
+
.coverage
|
|
35
|
+
_build
|
|
36
|
+
_autosummary
|
|
37
|
+
site
|
|
38
|
+
|
|
39
|
+
.conda
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/myint/autoflake
|
|
3
|
+
rev: v2.3.1
|
|
4
|
+
hooks:
|
|
5
|
+
- id: autoflake
|
|
6
|
+
args: ["--in-place", "--imports=constraint_handler_benchmarks", "--ignore-init-module-imports", "--remove-unused-variables"]
|
|
7
|
+
exclude: ^.github/
|
|
8
|
+
|
|
9
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
10
|
+
rev: v6.0.0
|
|
11
|
+
hooks:
|
|
12
|
+
- id: end-of-file-fixer
|
|
13
|
+
- id: trailing-whitespace
|
|
14
|
+
exclude: ^.github/
|
|
15
|
+
|
|
16
|
+
- repo: https://github.com/pycqa/isort
|
|
17
|
+
rev: 7.0.0
|
|
18
|
+
hooks:
|
|
19
|
+
- id: isort
|
|
20
|
+
exclude: ^.github/
|
|
21
|
+
|
|
22
|
+
- repo: https://github.com/psf/black
|
|
23
|
+
rev: 25.11.0
|
|
24
|
+
hooks:
|
|
25
|
+
- id: black
|
|
26
|
+
exclude: ^.github/
|
|
27
|
+
|
|
28
|
+
- repo: https://github.com/executablebooks/mdformat
|
|
29
|
+
rev: 1.0.0
|
|
30
|
+
hooks:
|
|
31
|
+
- id: mdformat
|
|
32
|
+
args: ["--wrap", "79"]
|
|
33
|
+
exclude: ^docs/
|
|
34
|
+
additional_dependencies:
|
|
35
|
+
- mdformat-gfm
|
|
36
|
+
|
|
37
|
+
- repo: https://github.com/djlint/djLint
|
|
38
|
+
rev: v1.36.4
|
|
39
|
+
hooks:
|
|
40
|
+
- id: djlint-reformat-jinja
|
|
41
|
+
files: \.html\.jinja$
|
|
42
|
+
types_or: [html, jinja]
|
|
43
|
+
|
|
44
|
+
- repo: local
|
|
45
|
+
hooks:
|
|
46
|
+
- id: mypy
|
|
47
|
+
name: mypy
|
|
48
|
+
entry: mypy
|
|
49
|
+
language: system
|
|
50
|
+
types: [python]
|
|
51
|
+
args: ["--strict"]
|
|
52
|
+
require_serial: true
|
|
53
|
+
|
|
54
|
+
- id: pylint
|
|
55
|
+
name: pylint
|
|
56
|
+
entry: pylint
|
|
57
|
+
language: system
|
|
58
|
+
types: [python]
|
|
59
|
+
|
|
60
|
+
- id: coverage
|
|
61
|
+
name: coverage
|
|
62
|
+
entry: coverage
|
|
63
|
+
language: system
|
|
64
|
+
pass_filenames: false
|
|
65
|
+
always_run: true
|
|
66
|
+
args: [run, -m, pytest]
|
|
67
|
+
|
|
68
|
+
- id: coverage-report
|
|
69
|
+
name: coverage-report
|
|
70
|
+
entry: coverage
|
|
71
|
+
language: system
|
|
72
|
+
pass_filenames: false
|
|
73
|
+
always_run: true
|
|
74
|
+
args: [report, -m, --fail-under=100]
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thanks for considering a contribution to clindocs. ❤️
|
|
4
|
+
|
|
5
|
+
## How to get help or discuss possible contributions
|
|
6
|
+
|
|
7
|
+
To avoid duplicating issues, please search our [issue tracker][issues] and our
|
|
8
|
+
[mailing list][mailing_list] before filing a new issue.
|
|
9
|
+
|
|
10
|
+
- Open an [issue][new_issue] describing your problem.
|
|
11
|
+
- [Subscribe] to our mailing list on SourceForge.
|
|
12
|
+
|
|
13
|
+
## How to make a contribution
|
|
14
|
+
|
|
15
|
+
- Fork the [clindocs][project_url] repository and create a branch for your
|
|
16
|
+
changes.
|
|
17
|
+
- Submit a pull request to the master branch with your changes.
|
|
18
|
+
- Respond to feedback on your pull request.
|
|
19
|
+
- If everything is fine your pull request is merged. 🥳
|
|
20
|
+
|
|
21
|
+
## License
|
|
22
|
+
|
|
23
|
+
When contributing to this project, you agree that you have authored 100% of the
|
|
24
|
+
content, that you have the necessary rights to the content and that the content
|
|
25
|
+
you contribute may be provided under the project license.
|
|
26
|
+
|
|
27
|
+
[issues]: https://github.com/potassco/clindocs.git/issues/
|
|
28
|
+
[mailing_list]: https://sourceforge.net/p/potassco/mailman/potassco-users/
|
|
29
|
+
[new_issue]: https://github.com/potassco/clindocs.git/issues/new/
|
|
30
|
+
[project_url]: https://github.com/potassco/clindocs.git/
|
|
31
|
+
[subscribe]: https://sourceforge.net/projects/potassco/lists/potassco-users/
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Deployment
|
|
2
|
+
|
|
3
|
+
Releases are deployed on [pypi] whenever a tag of form `vMajor.Minor.Revision`
|
|
4
|
+
is pushed. Furthermore, the deployment workflow can be triggered manually to
|
|
5
|
+
deploy test releases on [test.pypi].
|
|
6
|
+
|
|
7
|
+
For this to work, the workflow has to be granted permission to deploy on the
|
|
8
|
+
two services. Please follow this packaging [guide] to setup your accounts
|
|
9
|
+
accordingly. We also recommend to setup a github [environment] to restrict
|
|
10
|
+
which contributors can deploy packages.
|
|
11
|
+
|
|
12
|
+
[environment]: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment/
|
|
13
|
+
[guide]: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
|
|
14
|
+
[pypi]: https://pypi.org/
|
|
15
|
+
[test.pypi]: https://test.pypi.org/
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Development
|
|
2
|
+
|
|
3
|
+
To improve code quality, we use [nox] to run linters, type checkers, unit
|
|
4
|
+
tests, documentation and more. We recommend installing nox using [pipx] to have
|
|
5
|
+
it available globally.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
# install
|
|
9
|
+
python -m pip install pipx
|
|
10
|
+
python -m pipx install nox
|
|
11
|
+
|
|
12
|
+
# run all sessions
|
|
13
|
+
nox
|
|
14
|
+
|
|
15
|
+
# list all sessions
|
|
16
|
+
nox -l
|
|
17
|
+
|
|
18
|
+
# run individual session
|
|
19
|
+
nox -s session_name
|
|
20
|
+
|
|
21
|
+
# run individual session (reuse install)
|
|
22
|
+
nox -Rs session_name
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Note that the nox sessions create [editable] installs. In case there are
|
|
26
|
+
issues, try recreating environments by dropping the `-R` option. If your
|
|
27
|
+
project is incompatible with editable installs, adjust the `noxfile.py` to
|
|
28
|
+
disable them.
|
|
29
|
+
|
|
30
|
+
We also provide a [pre-commit][pre] config to autoformat code upon commits. It
|
|
31
|
+
can be set up using the following commands:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
python -m pipx install pre-commit
|
|
35
|
+
pre-commit install
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Code structure
|
|
39
|
+
|
|
40
|
+
```text
|
|
41
|
+
src/mkdocstrings_handlers/asp/
|
|
42
|
+
└── _internal/
|
|
43
|
+
├── collect/ # Parsing logic (Input)
|
|
44
|
+
│ ├── queries/ # *.scm files with tree-sitter queries
|
|
45
|
+
│ ├── extractors.py # Extract data from nodes using queries
|
|
46
|
+
│ ├── load.py # File loading and processing loop
|
|
47
|
+
│ └── syntax.py # Query wrappers and node definitions
|
|
48
|
+
├── render/ # View model generation (Processing)
|
|
49
|
+
│ ├── render_context.py # Main rendering context
|
|
50
|
+
│ ├── dependency_graph_context.py # Dependency graph context
|
|
51
|
+
│ ├── encodings_context.py # Encodings context
|
|
52
|
+
│ ├── glossary_context.py # Glossary context
|
|
53
|
+
│ └── predicate_table_context.py # Predicate table context
|
|
54
|
+
├── config.py # Configuration options (using Pydantic)
|
|
55
|
+
├── domain.py # Domain models (Document, Statement, etc.)
|
|
56
|
+
└── handler.py # MkDocstrings handler entry point
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
[editable]: https://setuptools.pypa.io/en/latest/userguide/development_mode.html
|
|
60
|
+
[nox]: https://nox.thea.codes/en/stable/index.html
|
|
61
|
+
[pipx]: https://pypa.github.io/pipx/
|
|
62
|
+
[pre]: https://pre-commit.com/
|
clindocs-1.5.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Potassco
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
clindocs-1.5.1/PKG-INFO
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: clindocs
|
|
3
|
+
Version: 1.5.1
|
|
4
|
+
Summary: Mkdocs plugin to generate documentation from clingo files
|
|
5
|
+
Author-email: Potassco <hahnmartinlu@uni-potsdam.de>
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2024 Potassco
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
|
|
28
|
+
Project-URL: Homepage, https://github.com/potassco/clindocs.git/
|
|
29
|
+
Requires-Python: >=3.11
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
License-File: LICENSE
|
|
32
|
+
Requires-Dist: clingo
|
|
33
|
+
Requires-Dist: mkdocstrings>=1.0.0
|
|
34
|
+
Requires-Dist: tree-sitter
|
|
35
|
+
Requires-Dist: tree-sitter-clingo>=1.0.5
|
|
36
|
+
Requires-Dist: pydantic
|
|
37
|
+
Requires-Dist: pygments_clingo
|
|
38
|
+
Requires-Dist: mkdocs>=1.5
|
|
39
|
+
Requires-Dist: mkdocs-material>=9.5
|
|
40
|
+
Requires-Dist: mkdocs-autorefs>=1.4
|
|
41
|
+
Provides-Extra: format
|
|
42
|
+
Requires-Dist: black; extra == "format"
|
|
43
|
+
Requires-Dist: isort; extra == "format"
|
|
44
|
+
Requires-Dist: autoflake; extra == "format"
|
|
45
|
+
Provides-Extra: lint-pylint
|
|
46
|
+
Requires-Dist: pylint; extra == "lint-pylint"
|
|
47
|
+
Requires-Dist: djlint; extra == "lint-pylint"
|
|
48
|
+
Provides-Extra: typecheck
|
|
49
|
+
Requires-Dist: types-setuptools; extra == "typecheck"
|
|
50
|
+
Requires-Dist: mypy; extra == "typecheck"
|
|
51
|
+
Requires-Dist: types-Markdown; extra == "typecheck"
|
|
52
|
+
Requires-Dist: types-Pygments; extra == "typecheck"
|
|
53
|
+
Provides-Extra: test
|
|
54
|
+
Requires-Dist: coverage[toml]; extra == "test"
|
|
55
|
+
Requires-Dist: pytest; extra == "test"
|
|
56
|
+
Provides-Extra: doc
|
|
57
|
+
Requires-Dist: mkdocstrings[python]; extra == "doc"
|
|
58
|
+
Requires-Dist: mkdocs-literate-nav; extra == "doc"
|
|
59
|
+
Provides-Extra: dev
|
|
60
|
+
Requires-Dist: clindocs[doc,lint_pylint,test,typecheck]; extra == "dev"
|
|
61
|
+
Dynamic: license-file
|
|
62
|
+
|
|
63
|
+
# clindocs
|
|
64
|
+
|
|
65
|
+
**clindocs** is an automated documentation tool tailored for **Answer Set
|
|
66
|
+
Programming (ASP)** code. Built on [MkDocs](https://www.mkdocs.org/) and
|
|
67
|
+
[mkdocs-material](https://squidfunk.github.io/mkdocs-material/), it streamlines
|
|
68
|
+
the creation of high-quality documentation with the following features:
|
|
69
|
+
|
|
70
|
+
- **Render encodings**: Automatically format ASP encodings with comments
|
|
71
|
+
written in Markdown.
|
|
72
|
+
- **Predicate analysis**: Collect and document predicates used across included
|
|
73
|
+
files.
|
|
74
|
+
- **Navigation-friendly documentation**: Generate organized predicate
|
|
75
|
+
documentation with intuitive navigation.
|
|
76
|
+
- **Input/output identification**: Detect and highlight input and output
|
|
77
|
+
predicates.
|
|
78
|
+
- **Dependency graphs**: Visualize dependencies between predicates and files.
|
|
79
|
+
|
|
80
|
+
For installation instructions and detailed usage, visit our
|
|
81
|
+
[official documentation](https://potassco.org/clindocs/docs).
|
clindocs-1.5.1/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# clindocs
|
|
2
|
+
|
|
3
|
+
**clindocs** is an automated documentation tool tailored for **Answer Set
|
|
4
|
+
Programming (ASP)** code. Built on [MkDocs](https://www.mkdocs.org/) and
|
|
5
|
+
[mkdocs-material](https://squidfunk.github.io/mkdocs-material/), it streamlines
|
|
6
|
+
the creation of high-quality documentation with the following features:
|
|
7
|
+
|
|
8
|
+
- **Render encodings**: Automatically format ASP encodings with comments
|
|
9
|
+
written in Markdown.
|
|
10
|
+
- **Predicate analysis**: Collect and document predicates used across included
|
|
11
|
+
files.
|
|
12
|
+
- **Navigation-friendly documentation**: Generate organized predicate
|
|
13
|
+
documentation with intuitive navigation.
|
|
14
|
+
- **Input/output identification**: Detect and highlight input and output
|
|
15
|
+
predicates.
|
|
16
|
+
- **Dependency graphs**: Visualize dependencies between predicates and files.
|
|
17
|
+
|
|
18
|
+
For installation instructions and detailed usage, visit our
|
|
19
|
+
[official documentation](https://potassco.org/clindocs/docs).
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
* Getting Started
|
|
2
|
+
* [Getting Started](use/index.md)
|
|
3
|
+
* [Quick Start Guide](use/quick-start.md)
|
|
4
|
+
* [Installation](use/installation.md)
|
|
5
|
+
* [Help](use/help.md)
|
|
6
|
+
* Examples
|
|
7
|
+
* [Examples](examples/index.md)
|
|
8
|
+
* [Sudoku](examples/sudoku.md)
|
|
9
|
+
* [Product Configuration](examples/config.md)
|
|
10
|
+
* Reference
|
|
11
|
+
* [Reference](reference/index.md)
|
|
12
|
+
* Sections
|
|
13
|
+
* [Sections](reference/sections/index.md)
|
|
14
|
+
* [Predicate table](reference/sections/predicate-table.md)
|
|
15
|
+
* [Dependency graph](reference/sections/dependency-graph.md)
|
|
16
|
+
* [Encodings](reference/sections/encodings.md)
|
|
17
|
+
* [Glossary](reference/sections/glossary.md)
|
|
18
|
+
* [Predicate Docstring](reference/predicate-docs.md)
|
|
19
|
+
* [Style](reference/style.md)
|
|
20
|
+
* Community
|
|
21
|
+
* [Community](community/index.md)
|
|
22
|
+
* [Changes](community/CHANGES.md)
|
|
23
|
+
* [Contributing](community/CONTRIBUTING.md)
|
|
24
|
+
* [Development](community/DEVELOPMENT.md)
|
|
25
|
+
* [Deployment](community/DEPLOYMENT.md)
|