Skip to content

Commit 6a033f5

Browse files
committed
DOCSP-41495: php v1.20 compat updates
1 parent b35d8d8 commit 6a033f5

File tree

3 files changed

+49
-25
lines changed

3 files changed

+49
-25
lines changed

README.rst

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,23 @@
22
MongoDB PHP Library Documentation
33
=================================
44

5-
This repository contains documentation regarding the MongoDB PHP Library. This
6-
documentation builds on the work of the `MongoDB
7-
Manual <http://docs.mongodb.org/manual/>`_.
5+
This repository contains documentation for the PHP Library component of
6+
the MongoDB PHP Driver.
87

9-
Building the documentation requires `giza
10-
<https://pypi.python.org/pypi/giza/>`_.
8+
File JIRA Tickets
9+
-----------------
1110

12-
If you already have `giza <https://pypi.python.org/pypi/giza/>`_
13-
installed, you can download and build this documentation locally with
14-
the following command: ::
11+
Please file issue reports or requests at the `Documentation Jira Project
12+
<https://jira.mongodb.org/browse/DOCS>`_.
1513

16-
git clone git://github.com/mongodb/docs-php-library
17-
cd docs-php-library/
18-
make publish
19-
20-
View ``build/master/html/index.html`` to view your current build of the
21-
documentation.
22-
23-
If you have not installed giza, you can do so with `pip`.
24-
25-
To contribute to the documentation, please fork this repository on
26-
GitHub and issue a pull request. If you have not done so already,
27-
please sign the `MongoDB/10gen Contributor Agreement
28-
<https://www.mongodb.com/legal/contributor-agreement>`_.
14+
Licenses
15+
--------
2916

3017
All documentation is available under the terms of a `Creative Commons
31-
License <http://creativecommons.org/licenses/by-nc-sa/3.0/>`_.
18+
License <https://creativecommons.org/licenses/by-nc-sa/3.0/>`_.
3219

3320
The MongoDB Documentation Project is governed by the terms of the
34-
`MongoDB/10gen Contributor Agreement
21+
`MongoDB Contributor Agreement
3522
<https://www.mongodb.com/legal/contributor-agreement>`_.
3623

37-
-- The MongoDB Docs Team
24+
-- The MongoDB Docs Team

mongo-php-library

Submodule mongo-php-library updated 175 files

php_deploy.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/sh
2+
3+
# version branch names in descending order
4+
VERSIONS=(v1.17 v1.16)
5+
6+
# clean
7+
git checkout master
8+
9+
TODEPLOY=()
10+
for i in "${VERSIONS[@]}"
11+
do
12+
read -p "add branch [$i]? [y/n] " REPLY
13+
if [[ $REPLY =~ ^[Yy]$ ]]; then
14+
TODEPLOY+=($i)
15+
fi
16+
done
17+
18+
# build each version in order
19+
for i in "${TODEPLOY[@]}"; do
20+
echo "Branch [$i]: Generating HTML and local directories"
21+
git checkout $i && git pull && make html publish
22+
done
23+
24+
# Prompt in case errors encountered
25+
read -p "Proceed with deploy? " -n 1 -r
26+
echo
27+
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
28+
[[ "$0" = "$BASH_SOURCE" ]] && exit 1 || return 1
29+
fi
30+
31+
# deploy
32+
for i in "${TODEPLOY[@]}"; do
33+
echo "Deploying [$i]"
34+
git checkout $i && yes | make deploy
35+
done
36+
37+
echo "Deployment complete!"

0 commit comments

Comments
 (0)