Skip to content

telota/exist-documentation

 
 

Repository files navigation

eXist-db Documentation

Build Status Docbook version eXist-db version

This repository contains the official documentation for the eXist-db native XML database and the application for browsing it. You can browse the latest release of the documentation on eXist-db homepage. User reporting errors should check the contributions section below. Core-contributors preparing a release should consult the release procedure

Dependencies

Installation

  • The default eXist-db installer includes the documentation app. Just go to your eXist server's Dashboard and select Documentation.
  • If you need to install an older version, you can download EXPath Application Packages (.xar files) of previous releases from GitHub.
  • Update to the latest release via the eXist-db package manager or via the eXist-db.org public app repository at http://exist-db.org/exist/apps/public-repo/.

Contributions

Found an area of the documentation that needs to be improved? Please raise an issue or better yet submit a pull request!

Before you edit the docs please take a look at our style guide. It should help you understand our articles structure and use of the docbook format. You can speed up the review process by running mvn validate on your local machine before opening a pull request. This way you can be certain that your edits won't interfere with the automated tests of this repo.

Should you encounter documentation for features that are deprecated in the minimum eXist-db version mentioned above, you can simply delete them. If you are unsure about this, please open an issue.

Building from source

  1. Clone the repository to your system:

    $ git clone https://github.com/exist-db/documentation.git
  2. Build the documentation application:

    $ cd documentation
    $ mvn clean package

    The compiled .xar file is located in the /target directory

  3. Install this file via the Dashboard > Package Manager.

Testing

Unit tests

The full test-suite consists of validation, unit, and integration tests, it runs automatically on travis. To be able to run integration tests locally, contributors should run npm i to download and install cypress.js. This is only required once. To execute the tests run the following commands:

  • To validate article files run mvn validate,
    • Validation uses both the official docbook.rng and our own exist-docs.rng (experimental) schema.
    • The schema files are located at: src/main/relaxng
  • to run the javascript or XQSuite unit tests run: mvn test. We do not support testing via node alone, aka npm test, use the maven command instead.
  • To run the Integrations tests, however, use npm run cypress.

Both unit and integration tests, expect a running instance of exist with a copy of the documentation app installed reachable at localhost:8080 and an empty admin password. It might be necessary to skip test execution during building from time to time, use: mvn clean package -DskipTests.

You can view recordings of the previous integration test runs on our Cypress Dashboard

License

LGPLv2.1 eXist-db.org

Packages

No packages published

Languages

  • XQuery 41.2%
  • XSLT 22.7%
  • JavaScript 13.3%
  • CSS 12.3%
  • HTML 9.9%
  • Perl 0.6%