Skip to content

Commit d642ed3

Browse files
committed
Create "publish" make target to replace migrations-php.yaml
1 parent 72975e0 commit d642ed3

File tree

6 files changed

+14
-403
lines changed

6 files changed

+14
-403
lines changed

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "build/php-library"]
2+
path = build/php-library
3+
url = https://github.com/mongodb/mongo-php-library.git
4+
branch = master

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,24 @@ STAGING_BUCKET=docs-mongodb-org-staging
66
PRODUCTION_BUCKET=docs-mongodb-org-prod
77
PREFIX=php-library
88

9-
.PHONY: help stage fake-deploy deploy
9+
.PHONY: help publish stage fake-deploy deploy
1010

1111
help:
1212
@echo 'Targets'
1313
@echo ' help - Show this help message'
14+
@echo ' publish - Publish docs locally'
1415
@echo ' stage - Host online for review'
1516
@echo ' fake-deploy - Create a fake deployment in the staging bucket'
1617
@echo ' deploy - Deploy to the production bucket'
1718
@echo ''
1819
@echo 'Variables'
1920
@echo ' ARGS - Arguments to pass to mut-publish'
2021

22+
publish:
23+
git submodule update --init
24+
rsync -a --delete build/php-library/docs/ source/
25+
giza make publish
26+
2127
stage:
2228
mut-publish build/${GIT_BRANCH}/html ${STAGING_BUCKET} --prefix=${PREFIX} --stage ${ARGS}
2329
@echo "Hosted at ${STAGING_URL}/${PREFIX}/${USER}/${GIT_BRANCH}/index.html"

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ the following command: ::
1515

1616
git clone git://github.com/mongodb/docs-php-library
1717
cd docs-php-library/
18-
giza make html
18+
make publish
1919

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
2121
documentation.
2222

2323
If you have not installed giza, you can do so with `pip`.

build/php-library

Submodule php-library added at 83eb398

config/build_conf.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,10 @@ system:
2121
- 'sphinx_local.yaml'
2222
- 'push.yaml'
2323
- htaccess: ['htaccess.yaml']
24-
- migrations: 'migrations-php.yaml'
2524
assets:
2625
- branch: master
2726
path: build/docs-tools
2827
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
3228
paths:
3329
output: 'build'
3430
source: 'source'

0 commit comments

Comments
 (0)