-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c54b17
commit 047a199
Showing
6 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,6 @@ composer.phar | |
.php_cs.cache | ||
composer.lock | ||
docs/build | ||
docs/.phpdoc | ||
phpunit/ | ||
.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
# This script assumes that it is running in a Docker container using the image | ||
# "ldcircleci/php-sdk-release", defined in https://github.com/launchdarkly/sdks-ci-docker | ||
|
||
set -e | ||
|
||
cd docs | ||
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# Releaser will publish the docs to GitHub pages for us if we put a "docs.zip" artifact in ./artifacts | ||
|
||
mkdir -p artifacts | ||
pushd docs/build/html | ||
rm -f docs.zip | ||
zip -r docs.zip * | ||
popd | ||
mv docs/build/html/docs.zip artifacts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
SOURCE_DIR = $(shell cd .. && pwd) | ||
PHPDOCUMENTOR = php $(LDTOOLS_DIR)/php/phpDocumentor.phar | ||
|
||
.PHONY: html | ||
|
||
html: | ||
rm -rf build/temp build/html | ||
$(PHPDOCUMENTOR) \ | ||
-d $(SOURCE_DIR)/src \ | ||
-t build/html \ | ||
--visibility public \ | ||
--defaultpackagename "SDK" \ | ||
--title "${LD_RELEASE_DOCS_TITLE} ${LD_RELEASE_VERSION}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters