Skip to content

Commit c2b32ec

Browse files
authored
Merge pull request #177 from marklogic-community/release/1.3.0
Merging doc changes into master
2 parents bea489a + d7c370a commit c2b32ec

File tree

70 files changed

+2770
-1036
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+2770
-1036
lines changed

.editorconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ insert_final_newline = true
1212
[*.md]
1313
trim_trailing_whitespace = false
1414

15-
[*.mdown]
16-
trim_trailing_whitespace = false
15+
[*.java]
16+
indent_size = 4
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
2+
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
3+
4+
on:
5+
# Runs on pushes targeting the default branch
6+
push:
7+
branches: ["develop"]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow one concurrent deployment
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: true
22+
23+
jobs:
24+
# Build job
25+
build:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v3
30+
- name: Setup Pages
31+
uses: actions/configure-pages@v3
32+
- name: Build with Jekyll
33+
uses: actions/jekyll-build-pages@v1
34+
with:
35+
source: ./docs/
36+
destination: ./_site
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v1
39+
40+
# Deployment job
41+
deploy:
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
runs-on: ubuntu-latest
46+
needs: build
47+
steps:
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v1

CODEOWNERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Lines starting with '#' are comments.
2+
# Each line is a file pattern followed by one or more owners.
3+
4+
# These owners will be the default owners for everything in the repo.
5+
* @anu3990 @billfarber @rjrudin

CONTRIBUTING.md

Lines changed: 14 additions & 165 deletions
Original file line numberDiff line numberDiff line change
@@ -26,172 +26,21 @@ the marklogic-junit5 subproject will also hit the MarkLogic App-Services app ser
2626
After running `./gradlew test`, you can also point your browser at http://localhost:8008/test to access the
2727
marklogic-unit-test UI for running tests.
2828

29-
## <a name="issue"></a> Found an Issue?
30-
If you find a bug in the source code or a mistake in the documentation, you can
31-
help us by submitting an issue to our [GitHub Issue Tracker][issue tracker].
32-
Even better you can submit a Pull Request with a fix for the issue you filed.
29+
## Testing the documentation locally
3330

34-
## <a name="feature"></a> Want a Feature?
35-
You can request a new feature by submitting an issue to our
36-
[GitHub Issue Tracker][issue tracker]. If youwould like to implement a new
37-
feature then first create a new issue and discuss it with one of our project
38-
maintainers.
31+
The docs for this project are stored in the `./docs` directory as a set of Markdown files. These are published via
32+
[GitHub Pages](https://docs.github.com/en/pages/getting-started-with-github-pages/about-github-pages) using the
33+
configuration found under "Settings / Pages" in this repository.
3934

40-
## <a name="submit"></a> Submission Guidelines
35+
You can build and test the docs locally by
36+
[following these GitHub instructions](https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/testing-your-github-pages-site-locally-with-jekyll),
37+
though you don't need to perform all of those steps since some files generated by doing so are already in the
38+
`./docs` directory. You just need to do the following:
4139

42-
### Submitting an Issue
43-
Before you submit your issue search the archive.
40+
1. Install the latest Ruby (rbenv works well for this).
41+
2. Install Jekyll.
42+
3. Go to the docs directory - `cd ./docs` .
43+
4. Run `bundle install` (this may not be necessary due to Gemfile.lock being in version control).
44+
5. Run `bundle exec jekyll serve`.
4445

45-
If your issue appears to be a bug, and hasn't been reported, open a new issue.
46-
Help us to maximize the effort we can spend fixing issues and adding new
47-
features by not reporting duplicate issues. Providing the following
48-
information will increase the chances of your issue being dealt with quickly:
49-
50-
* **Overview of the Issue** - if an error is being thrown a stack trace helps
51-
* **Motivation for or Use Case** - explain why this is a bug for you
52-
* **marklogic-unit-test Version** - is it a named version or from our dev branch
53-
* **Operating System** - Mac, windows? details help
54-
* **Suggest a Fix** - if you can't fix the bug yourself, perhaps you can point to what might be
55-
causing the problem (line of code or commit)
56-
57-
### Submitting a Pull Request
58-
59-
#### Fork marklogic-unit-test
60-
61-
Fork the project [on GitHub](https://github.com/marklogic-community/marklogic-unit-test/fork) and clone
62-
your copy.
63-
64-
```sh
65-
$ git clone [email protected]:username/marklogic-unit-test.git
66-
$ cd marklogic-unit-test
67-
$ git remote add upstream git://github.com/marklogic-community/marklogic-unit-test.git
68-
```
69-
70-
All bug fixes and new features go into the dev branch.
71-
72-
We ask that you open an issue in the [issue tracker][] and get agreement from
73-
at least one of the project maintainers before you start coding.
74-
75-
Nothing is more frustrating than seeing your hard work go to waste because
76-
your vision does not align with that of a project maintainer.
77-
78-
#### Create a branch for your changes
79-
80-
Okay, so you have decided to fix something. Create a feature branch
81-
and start hacking:
82-
83-
```sh
84-
$ git checkout -b my-feature-branch -t origin/dev
85-
```
86-
87-
#### Formatting code
88-
89-
We use [.editorconfig][] to configure our editors for proper code formatting. If you don't
90-
use a tool that supports editorconfig be sure to configure your editor to use the settings
91-
equivalent to our .editorconfig file.
92-
93-
#### Commit your changes
94-
95-
Make sure git knows your name and email address:
96-
97-
```sh
98-
$ git config --global user.name "J. Random User"
99-
$ git config --global user.email "[email protected]"
100-
```
101-
102-
Writing good commit logs is important. A commit log should describe what
103-
changed and why. Follow these guidelines when writing one:
104-
105-
1. The first line should be 50 characters or less and contain a short
106-
description of the change including the Issue number prefixed by a hash (#).
107-
2. Keep the second line blank.
108-
3. Wrap all other lines at 72 columns.
109-
110-
A good commit log looks like this:
111-
112-
```
113-
Fixing Issue #123: make the whatchamajigger work in MarkLogic 8
114-
115-
Body of commit message is a few lines of text, explaining things
116-
in more detail, possibly giving some background about the issue
117-
being fixed, etc etc.
118-
119-
The body of the commit message can be several paragraphs, and
120-
please do proper word-wrap and keep columns shorter than about
121-
72 characters or so. That way `git log` will show things
122-
nicely even when it is indented.
123-
```
124-
125-
The header line should be meaningful; it is what other people see when they
126-
run `git shortlog` or `git log --oneline`.
127-
128-
#### Rebase your repo
129-
130-
Use `git rebase` (not `git merge`) to sync your work from time to time.
131-
132-
```sh
133-
$ git fetch upstream
134-
$ git rebase upstream/dev
135-
```
136-
137-
#### Test your code
138-
139-
We are working hard to improve marklogic-unit-test's testing. If you add new functions
140-
then please write unit tests in `marklogic-unit-test-client/src/test/ml-modules/root/test/suites/`.
141-
When finished, verify that the self-test works. See the instructions for Building and Testing at the top of this
142-
guide for doing so.
143-
144-
For modifications to code in the ./marklogic-junit 5 project, please see the README file in that project.
145-
146-
Make sure that all tests pass. Please, do not submit patches that fail.
147-
148-
#### Push your changes
149-
150-
```sh
151-
$ git push origin my-feature-branch
152-
```
153-
154-
#### Submit the pull request
155-
156-
Go to https://github.com/username/marklogic-unit-test and select your feature branch.
157-
Click the 'Pull Request' button and fill out the form.
158-
159-
Pull requests are usually reviewed within a few days. If you get comments that
160-
need to be to addressed, apply your changes in a separate commit and push that
161-
to your feature branch. Post a comment in the pull request afterwards; GitHub
162-
does not send out notifications when you add commits to existing pull requests.
163-
164-
That's it! Thank you for your contribution!
165-
166-
167-
#### After your pull request is merged
168-
169-
After your pull request is merged, you can safely delete your branch and pull the changes
170-
from the main (upstream) repository:
171-
172-
* Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
173-
174-
```shell
175-
git push origin --delete my-feature-branch
176-
```
177-
178-
* Check out the dev branch:
179-
180-
```shell
181-
git checkout dev -f
182-
```
183-
184-
* Delete the local branch:
185-
186-
```shell
187-
git branch -D my-feature-branch
188-
```
189-
190-
* Update your dev with the latest upstream version:
191-
192-
```shell
193-
git pull --ff upstream dev
194-
```
195-
196-
[issue tracker]: https://github.com/marklogic/marklogic-unit-test/issues
197-
[.editorconfig]: http://editorconfig.org/
46+
You can then go to http://localhost:4000 to view the docs.

Jenkinsfile

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
@Library('shared-libraries') _
2+
pipeline{
3+
agent {label 'devExpLinuxPool'}
4+
options {
5+
checkoutToSubdirectory 'marklogic-unit-test'
6+
buildDiscarder logRotator(artifactDaysToKeepStr: '7', artifactNumToKeepStr: '', daysToKeepStr: '30', numToKeepStr: '')
7+
}
8+
environment{
9+
JAVA_HOME_DIR="/home/builder/java/jdk-11.0.2"
10+
GRADLE_DIR =".gradle"
11+
DMC_USER = credentials('MLBUILD_USER')
12+
DMC_PASSWORD = credentials('MLBUILD_PASSWORD')
13+
}
14+
stages{
15+
stage('tests'){
16+
steps{
17+
copyRPM 'Release','11.0.0'
18+
setUpML '$WORKSPACE/xdmp/src/Mark*.rpm'
19+
sh label:'test', script: '''#!/bin/bash
20+
export JAVA_HOME=$JAVA_HOME_DIR
21+
export GRADLE_USER_HOME=$WORKSPACE/$GRADLE_DIR
22+
export PATH=$GRADLE_USER_HOME:$JAVA_HOME/bin:$PATH
23+
cd marklogic-unit-test
24+
echo "mlPassword=admin" > marklogic-junit5/gradle-local.properties
25+
./gradlew test -PmlPassword=admin || true
26+
'''
27+
junit '**/build/**/*.xml'
28+
}
29+
}
30+
stage('publish'){
31+
when {
32+
branch 'develop'
33+
}
34+
steps{
35+
sh label:'publish', script: '''#!/bin/bash
36+
export JAVA_HOME=$JAVA_HOME_DIR
37+
export GRADLE_USER_HOME=$WORKSPACE/$GRADLE_DIR
38+
export PATH=$GRADLE_USER_HOME:$JAVA_HOME/bin:$PATH
39+
cp ~/.gradle/gradle.properties $GRADLE_USER_HOME;
40+
cd marklogic-unit-test
41+
./gradlew publish
42+
'''
43+
}
44+
}
45+
}
46+
}

0 commit comments

Comments
 (0)