Repository navigation
tools
Python 3.10+ and the standard library are sufficient for structural and link audits.
The optional preference catalogue uses the JDK parser (full JDK 17+). Run commands from the wiki root.
All tools are read-only with respect to pages/assets; only --out writes a requested report.
Use an output path under tmp/ so the report is not scanned as documentation on the next run.
python skills/gama-documentation/scripts/docs.py check --out tmp/documentation-check.json
python skills/gama-documentation/scripts/docs.py check --tracked --out tmp/publication-check.json
python skills/gama-documentation/scripts/docs.py images --out tmp/images.json
python skills/gama-documentation/scripts/sitegraph.py --out tmp/sitegraph.json --mermaid-out tmp/sitegraph.mmd --dot-out tmp/sitegraph.dotAdd --hash to include SHA-256 identities in the image inventory for review evidence.
check reports missing wiki pages, ambiguous flat names, unclosed fenced code blocks, missing local
attachments/images and referenced images outside the repository. --tracked also requires
referenced images to be in the Git index. Empty alt text and non-flat wiki URLs are review warnings.
images produces the same inventory, including unused resources and remote URLs; it does not gate
on structural errors. PDF resources appear in this inventory too. A candidate orphan is not proof
that deletion is safe. No image bytes or pixels are interpreted by these tools.
Exit codes: check returns 1 for structural errors, 2 for input/operational failure, 0 otherwise.
Read the JSON diagnostics and compare to the pre-edit state where the repository has existing errors.
Reports are factual work lists, not instructions to expand the requested scope.
sitegraph.py reads wiki page links and _Sidebar.md to report directed reachability from the
sidebar, isolated pages, weakly connected components and unresolved or ambiguous local page targets.
Generated pages are included. It can export JSON for analysis, Mermaid for rendering in Markdown, and
Graphviz DOT for graph viewers.
An unreachable page may still be linked from a generated index or reached through a URL outside the wiki. Review reported pages and edge cases before changing navigation. The graph follows parsed wiki links, not rendered sidebar behavior, redirects, search results or anchors.
See external-links.md. Inventory is offline by default. --check explicitly
performs requests; --url URL can be repeated to check only affected URLs already in the inventory.
The report retains all URL locations, but unchecked URLs remain clearly marked.
HTTP checking does not validate page meaning, fragment targets or successful image rendering.
See portable tools for the image, OCR, launch and desktop commands.
Run wiki_tools.py source-links --clone ../gama to check the locally available Git refs named in URLs.
Use external HTTP checks as one signal. For version-specific claims, inspect the source at the named
tag/commit (for example git show <ref>:<path> in a suitable checkout); don't silently substitute
main. Record unavailable refs as unverified. The check uses the refs available in the local checkout.
The application, not a checkout, decides what the documentation may assert about a release. Three routes, in increasing cost, none of them specific to an operating system:
-
Registered names. The names the compiler accepts sit in the constant pool of the
gaml/additions/**/GamlAdditions*.classentries of the product's jars. Extract those classes and read their strings to get the list actually registered by that build. Absence from such an extraction is a strong hint, not proof: only the additions classes are scanned, and a name can also be contributed by a plugin that is not installed. Presence in a checkout is not proof either: the checkout may be older or newer than the release. -
Shipped model paths. The library jar carries
models/<Category>/<Project>/models/<name>.gaml. Unzip it to a scratch folder and grep it: that is the authority for a category name, a project name, a file quoted by animport, or a model a page tells the reader to open. It is also where a correct usage of a difficult operator can be found, in code that compiles in this release. -
Compiling an example. The release ships a headless application. Wrapping the example in an
experiment ... mode: testblock and passing it to the batch mode of the headless launcher exits0when the model parses and passes the static validation of that build, and non-zero when it does not. Give it a scratch workspace with-ws, outside the repository; aguiexperiment does not terminate on its own, so usetest. The message is generic ("GAMA encountered an error and crashed", with no file, no line, no cause), so treat the exit code as a boolean oracle and use the two routes above, or the generated operator reference, for the reason. The experiment must bemode: testand carry no output: an experiment that declares adisplayexits 1 whatever its type (step,batch,record,memorizeand a deliberately invented type all behave alike), so the batch can never decide whether an experiment type, an output or a display is valid. -
What that oracle does not prove. It answers "does this compile?", never "does this run?". Observed on
the installed build: a test block whose
assertis false exits0; a division by zero inside a test block exits0;writein a test block produces nothing on stdout;save ... to: "<absolute path>"ininitor in a test block leaves no file anywhere; and an undefined preference name (gama.pref_shapefiles_in_memoryx) compiles although the key does not exist. Scope, syntax, operator names and facets are checked statically - an attribute read from the wrong species really is refused - but values, effects and output are not observable this way. Do not cite a0as evidence that a listing behaves as written; say only that it compiles.
The shared extractor covers common inline/reference Markdown, bare HTTP URLs, autolinks and single-line HTML href/src/poster attributes. Comments, fenced/indented code and inline code are excluded. It is not a Markdown renderer: multiline constructs, nested labels, unusual escaping, HTML srcset and renderer-specific syntax require manual review. GitHub wiki publication is the final authority on rendering and resource URL resolution. Filesystem checks preserve exact case by comparing the inventory where relevant; check publication if paths differ only by case.
imageinventory.py remains available for the old Markdown register and manual verdict table.
Prefer docs.py images for new machine-readable audits; do not confuse a legacy verdict with a
fresh inspection. Use the portable capture and image commands above. Vocabulary/emoji scanners have been removed: review writing in context.
PreferencesFromSource.java builds the Java source catalogue; see
preferences.md for the command, exported fields and source-only limitations.
python -B -m unittest discover -s skills/gama-documentation/scripts/testsTests use temporary repositories, Java source fixtures and mocked HTTP responses; they do not contact external sites. Java extraction tests require a full JDK and are skipped if it is absent.
A plugin of an installed Eclipse product may sit in the plugins folder as an unpacked directory
beside the jars - a release examined here ships five, including its physics extension and its shared UI
plugin. A scan restricted to *.jar therefore reports the contents of those plugins as absent, which
reads as evidence that a documented name, string or resource does not exist in the release. Walk both
forms (directories and jars) before declaring anything missing, and treat a negative result as provisional
until the folder layout has been checked.
Prefer a positive control next to a negative one: a search that finds the expected names but not the unexpected one is credible, while an unexplained absence is usually the scan, not the product.
- Installation and Launching
- Workspace, Projects and Models
- Editing Models
- Running Experiments
- Running Headless
- Exporting models and projects
- Preferences
- gama platform agent
- Troubleshooting
- Introduction
- Manipulate basic Species
- Global Species
- Defining Advanced Species
- Defining GUI Experiment
- Classes and Objects
- Exploring Models
- Optimizing Models
- Multi-Paradigm Modeling
- Manipulate OSM Data
- Cleaning OSM Data
- Diffusion
- Using Database
- Using Dataframes
- Using FIPA ACL
- Using BDI with BEN
- Using Driving Skill
- Manipulate dates
- Manipulate lights
- Using comodel
- Save and restore Simulations
- Using network
- Writing Unit Tests
- Ensure model's reproducibility
- Going further with extensions
- Built-in Species
- Built-in Skills
- Built-in Architecture
- Statements
- Data Type
- File Type
- Stats Extension
- Sound Extension
- BDI Extension
- FIPA Skill
- Expressions
- Exhaustive list of GAMA Keywords
- Installing the development version
- Introduction to GAMA Java API
- Developing Extensions
- Using GAMA flags
- Export plugin : Technical Documentation
- Creating a release of GAMA
- Documentation generation
- Desktop startup and deferred initialization