File tree Expand file tree Collapse file tree 6 files changed +14
-403
lines changed Expand file tree Collapse file tree 6 files changed +14
-403
lines changed Original file line number Diff line number Diff line change
1
+ [submodule "build/php-library "]
2
+ path = build/php-library
3
+ url = https://github.com/mongodb/mongo-php-library.git
4
+ branch = master
Original file line number Diff line number Diff line change @@ -6,18 +6,24 @@ STAGING_BUCKET=docs-mongodb-org-staging
6
6
PRODUCTION_BUCKET =docs-mongodb-org-prod
7
7
PREFIX =php-library
8
8
9
- .PHONY : help stage fake-deploy deploy
9
+ .PHONY : help publish stage fake-deploy deploy
10
10
11
11
help :
12
12
@echo ' Targets'
13
13
@echo ' help - Show this help message'
14
+ @echo ' publish - Publish docs locally'
14
15
@echo ' stage - Host online for review'
15
16
@echo ' fake-deploy - Create a fake deployment in the staging bucket'
16
17
@echo ' deploy - Deploy to the production bucket'
17
18
@echo ' '
18
19
@echo ' Variables'
19
20
@echo ' ARGS - Arguments to pass to mut-publish'
20
21
22
+ publish :
23
+ git submodule update --init
24
+ rsync -a --delete build/php-library/docs/ source/
25
+ giza make publish
26
+
21
27
stage :
22
28
mut-publish build/${GIT_BRANCH} /html ${STAGING_BUCKET} --prefix=${PREFIX} --stage ${ARGS}
23
29
@echo " Hosted at ${STAGING_URL} /${PREFIX} /${USER} /${GIT_BRANCH} /index.html"
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ the following command: ::
15
15
16
16
git clone git://github.com/mongodb/docs-php-library
17
17
cd docs-php-library/
18
- giza make html
18
+ make publish
19
19
20
- View ``build/html /index.html `` to view your current build of the
20
+ View ``build/master /index.html `` to view your current build of the
21
21
documentation.
22
22
23
23
If you have not installed giza, you can do so with `pip `.
Original file line number Diff line number Diff line change @@ -21,14 +21,10 @@ system:
21
21
- ' sphinx_local.yaml'
22
22
- ' push.yaml'
23
23
- htaccess : ['htaccess.yaml']
24
- - migrations : ' migrations-php.yaml'
25
24
assets :
26
25
- branch : master
27
26
path : build/docs-tools
28
27
repository : http://github.com/mongodb/docs-tools.git
29
- - branch : master
30
- path : build/php-library # this is where we'll put the source docs (from the driver repo)
31
- repository : https://github.com/mongodb/mongo-php-library.git
32
28
paths :
33
29
output : ' build'
34
30
source : ' source'
You can’t perform that action at this time.
0 commit comments