Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
74e42de
ignore(package): release fallout
duncdrum Jan 26, 2020
0a4689c
feat(page): add issue report button
duncdrum Jan 26, 2020
fa0503f
fix(lucene): add info about diacritics analyzer
duncdrum Jan 27, 2020
23895a8
fix(lucene): add info about diacritics analyzer
duncdrum Jan 27, 2020
3e8a263
Merge branch 'springcleaning-2020' of https://github.com/duncdrum/doc…
duncdrum Jan 27, 2020
c212b6d
fix(page): breadcrumbs
duncdrum Jan 27, 2020
fe71c09
docs(readme): remove WIP note about unit tests
duncdrum Jan 27, 2020
e68d2b1
fix(urlrewrite): metion missing errorhandler element
duncdrum Jan 27, 2020
c70ba1d
ci(cypress): adjust test
duncdrum Jan 27, 2020
012e96b
fix(webdav): rewrite and outdated info
duncdrum Jan 27, 2020
ee4c8e4
fix(log4j): start rewrite of log4j
duncdrum Jan 27, 2020
bd8539e
fix(log4j): continue rewrite
duncdrum Jan 27, 2020
7db2b52
fix(xsl-transform): add -it and catalog info
duncdrum Jan 28, 2020
cc3e07d
fix(xqsuite): add assertEqualsPermutation
duncdrum Jan 28, 2020
d8a6c63
feature(docker): start adding docker docs
duncdrum Jan 28, 2020
13c4e14
Correct XQSuite punctuation
joewiz Jan 28, 2020
dc7cb3b
feature(docker): finish docker docs
duncdrum Jan 28, 2020
50775f9
Merge branch 'springcleaning-2020' of https://github.com/duncdrum/doc…
duncdrum Jan 28, 2020
2b357af
fix(page): remove broken status link
duncdrum Jan 28, 2020
0fd051c
fix(page): add version popover to breadcrumbs home
duncdrum Jan 28, 2020
89d3317
fix(xar-assembly): workaround namespace confusion in xar builder
duncdrum Jan 28, 2020
d07ffc6
fix(lucene): add ranged query
duncdrum Jan 28, 2020
1813edf
fix(prod_web_prox): add warning about poor default configs
duncdrum Jan 28, 2020
6f16656
feat(gulp): lint xml listings
duncdrum Jan 28, 2020
09c39d6
ignore(listings): have been linted
duncdrum Jan 28, 2020
8988ba6
fix(gulp): switch xml lint library
duncdrum Jan 29, 2020
290af25
ignore(listings) lint xml listings
duncdrum Jan 29, 2020
080cb76
docs(xquery): highlight func docs in context of xquery support
duncdrum Jan 29, 2020
6980d6a
ignore(git): remove outdated template file
duncdrum Jan 29, 2020
acc1b5d
feature(docbook): switch to docbook 5.1 and relaxng validation
duncdrum Jan 29, 2020
4bfd2cd
feature(exist-docs.rng): generate custom schema
duncdrum Jan 29, 2020
c5006ae
fix(schema): cleanup schema and increase consistency of articles
duncdrum Jan 29, 2020
3f8a2dc
doc(readme): explain new validation mode
duncdrum Jan 29, 2020
63b2a4b
fix(backup-task): address inconsistencies with configuration
duncdrum Jan 30, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ target/
*.iml
.idea/
*.xpr
tmp/

github-report.html
node_modules/*
Expand Down
29 changes: 27 additions & 2 deletions Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ var paths = {
output: 'src/main/xar-resources/resources/'
},
fonts: {
output: 'src/main/xar-resources/resources/fonts/',
output: 'src/main/xar-resources/resources/fonts/'
},
xml: {
listings: 'src/main/xar-resources/data/*/listings/*.xml',
articles: 'src/main/xar-resources/data/*/*.xml'
}
}

Expand Down Expand Up @@ -85,6 +89,8 @@ var lazypipe = require('lazypipe')
var rename = require('gulp-rename')
var header = require('gulp-header')
var pkg = require('./package.json')
var muxml = require('gulp-muxml')


// Scripts
var standard = require('gulp-standard')
Expand Down Expand Up @@ -193,6 +199,24 @@ var lintScripts = function(done) {
done()
}

// pretty print all xml listings
// articles not yet decided
var prettyXml = function(done) {
src(paths.xml.listings, { base: "./" })
.pipe(muxml({
stripComments: false,
stripCdata: false,
stripInstruction: false,
saxOptions: {
trim: true,
normalize: true
}
}))
.pipe(dest("./"))
// Signal completion
done()
}

// Process, lint, and minify Sass files
var buildStyles = function(done) {
// Make sure this feature is activated before running
Expand Down Expand Up @@ -327,6 +351,7 @@ exports.default = series(
buildStyles,
buildSVGs,
copyFiles,
buildPack
buildPack,
prettyXml
)
)
11 changes: 0 additions & 11 deletions ISSUE_TEMPLATE.md

This file was deleted.

10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# eXist-db Documentation
[![Build Status](https://travis-ci.com/eXist-db/documentation.svg?branch=master)](https://travis-ci.com/eXist-db/documentation)
[![Docbook version](https://img.shields.io/badge/docbook-5.0-19a5a4.svg)](http://docbook.org/xml/5.0/)
[![Docbook version](https://img.shields.io/badge/docbook-5.1-19a5a4.svg)](http://docbook.org/xml/5.1/)
[![eXist-db version](https://img.shields.io/badge/eXist_db-5.2.0-blue.svg)](http://www.exist-db.org/exist/apps/homepage/index.html)

<img src="src/main/xar-resources/icon.png" align="left" width="15%"/>
Expand Down Expand Up @@ -38,12 +38,14 @@ Should you encounter documentation for features that are deprecated in the minim

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

## (WIP) Testing
## 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](https://www.cypress.io). This is only required once. To execute the tests run the following commands:
- To validate xml files run `mvn validate`,
- to run the javascript tests `mvn test` (xQsuite coming soon). We do **not** support testing via node alone, aka `npm test`, use the maven command instead.
- 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`.
Expand Down
111 changes: 110 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "exist-documentation",
"version": "5.0.4-SNAPSHOT",
"version": "5.1.1-SNAPSHOT",
"description": "Documentation package for eXist-db",
"scripts": {
"test": "standard 'src/test/**/*.js' && mocha src/test/mocha/ --recursive --exit",
Expand Down Expand Up @@ -39,6 +39,7 @@
"gulp-cssnano": "^2.1.3",
"gulp-flatmap": "^1.0.2",
"gulp-header": "^2.0.9",
"gulp-muxml": "^2.0.0",
"gulp-optimize-js": "^1.1.0",
"gulp-rename": "^2.0.0",
"gulp-sass": "^4.0.2",
Expand Down
Loading