forked from cocos2d/cocos2d-x-docs
-
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.
* increment revision number * added links and formatting * Basic Concepts - index - formatting, grammar, etc * now use this for developers, builds cocos2d-x and runs gitbook serve * index - refinements * index - added link to next page * Basic Concepts - added learn section, refinements, typos * CMake - comment out unused sections * Basic Concepts - added learn section, refinements, typos * Index - formatting * Getting Started - formatting and AppDelegate additions * Linux installation - corrected a few typos * Director - build out new content * Getting Started - added making a small code change * Director - continuing improvements * Director - added images * added re-target Windows SDK to FAQ per community feedback * http -> // * refined * sudo -v and sudo rm * clean up URLs after SSL and nginx work * fixed mis-use of //, new Windows developer link * fixed mis-use of // * removed obsolete functions * Prebuilts - removed old gen-libs content * deprecate prebuilts libraries
- Loading branch information
1 parent
a1c0084
commit 0f2fba8
Showing
67 changed files
with
390 additions
and
382 deletions.
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
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 |
---|---|---|
@@ -1,187 +1,15 @@ | ||
#!/bin/sh | ||
|
||
# This script builds: Cocos2d-x-docs, Cocos Creator Manual, Cocos Creator API-Ref. | ||
|
||
# on production this script should be run as: | ||
# (cd /data/home/docops/cocos2d-x-docs && exec /data/home/docops/cocos2d-x-docs/deploy_cron.sh) | ||
# This script lets developers test docs locally | ||
|
||
echo "-----------------" | ||
echo "Cocos2d-x-docs..." | ||
echo "-----------------" | ||
# First Cocos2d-x docs, we are aready in this repo when executing this script | ||
## pull latest from github | ||
echo "Cocos2d-x-docs -- pulling latest from GitHub..." | ||
git pull origin master | ||
|
||
cp -rf config/cocos2d-x.org/. ./ | ||
|
||
## make sure gitbook is up to date | ||
echo "Cocos2d-x-docs -- ensuring GitBook is up to date..." | ||
gitbook install | ||
|
||
## build it | ||
echo "Cocos2d-x-docs -- building GitBook docs...." | ||
gitbook build | ||
|
||
## copy some needed files | ||
echo "Cocos2d-x-docs -- copying needed files..." | ||
cp redirect.html.en _book/index.html | ||
cp index.html.en ../documentation/index.html | ||
|
||
## copy everything to deployment directory | ||
echo "Cocos2d-x-docs -- copy everything to deployment directory..." | ||
|
||
mv _book/ cocos2d-x/ | ||
|
||
rsync --recursive cocos2d-x ../documentation | ||
|
||
rm -rf cocos2d-x/ | ||
|
||
git stash | ||
|
||
echo "-----------------------" | ||
echo "Cocos Creator Manual..." | ||
echo "-----------------------" | ||
## pull latest from github | ||
echo "Cocos Creator -- building documentation..." | ||
cd ../creator-docs | ||
|
||
## pulling legacy version | ||
echo "Cocos Creator -- pulling v1.9..." | ||
git checkout v1.9 | ||
git pull origin v1.9 | ||
cp -rf config/cocos2d-x.org/. ./ | ||
echo "Cocos Creator -- building GitBook docs...." | ||
echo "If this is your first time build this repo, please stop this process and run:" | ||
echo "npm install gulp -g" | ||
echo "npm install" | ||
echo "DO NOT COMMIT: package-lock.json" | ||
sudo npm install gulp -g | ||
sudo npm install | ||
echo "Cocos Creator -- ensuring GitBook is up to date..." | ||
gitbook install | ||
npm run build | ||
echo "Cocos Creator -- copy everything to deployment directory..." | ||
cp ../cocos2d-x-docs/redirect.html.en _book/index.html | ||
mv _book/ manual/ | ||
rsync --recursive manual ../documentation/creator/1.9 | ||
rm -rf manual/ | ||
git stash | ||
|
||
## pulling previous version | ||
echo "Cocos Creator -- pulling v1.10..." | ||
git checkout master | ||
git pull origin master | ||
cp -rf config/cocos2d-x.org/. ./ | ||
echo "Cocos Creator -- building GitBook docs...." | ||
echo "If this is your first time build this repo, please stop this process and run:" | ||
echo "npm install gulp -g" | ||
echo "npm install" | ||
echo "DO NOT COMMIT: package-lock.json" | ||
sudo npm install gulp -g | ||
sudo npm install | ||
echo "Cocos Creator -- ensuring GitBook is up to date..." | ||
gitbook install | ||
npm run build | ||
echo "Cocos Creator -- copy everything to deployment directory..." | ||
cp ../cocos2d-x-docs/redirect.html.en _book/index.html | ||
mv _book/ manual/ | ||
rsync --recursive manual ../documentation/creator/1.10 | ||
rm -rf manual/ | ||
git stash | ||
|
||
## pulling next version | ||
echo "Cocos Creator -- pulling v2.x.." | ||
git checkout next | ||
git pull origin next | ||
cp -rf config/cocos2d-x.org/. ./ | ||
echo "Cocos Creator -- building GitBook docs...." | ||
echo "If this is your first time build this repo, please stop this process and run:" | ||
echo "npm install gulp -g" | ||
echo "npm install" | ||
echo "DO NOT COMMIT: package-lock.json" | ||
sudo npm install gulp -g | ||
sudo npm install | ||
echo "Cocos Creator -- ensuring GitBook is up to date..." | ||
gitbook install | ||
npm run build | ||
echo "Cocos Creator -- copy everything to deployment directory..." | ||
cp ../cocos2d-x-docs/redirect.html.en _book/index.html | ||
mv _book/ manual/ | ||
rsync --recursive manual ../documentation/creator | ||
rm -rf manual/ | ||
git stash | ||
|
||
echo "------------------------" | ||
echo "Cocos Creator API-Ref..." | ||
echo "------------------------" | ||
## pull latest from github | ||
echo "Cocos Creator API -- building documentation..." | ||
cd ../creator-api-docs | ||
|
||
echo "Cocos Creator API - pulling legacy version..." | ||
git checkout v1.9 | ||
git pull origin v1.9 | ||
cp -rf config/cocos2d-x.org/. ./ | ||
echo "Cocos Creator API -- ensuring GitBook is up to date..." | ||
gitbook install | ||
echo "Cocos Creator API -- building GitBook docs...." | ||
gitbook build | ||
echo "Cocos Creator API -- copy everything to deployment directory..." | ||
cp ../cocos2d-x-docs/redirect.html.en _book/index.html | ||
mv _book/ v1.9/ | ||
rsync --recursive v1.9 ../documentation/api-ref/creator | ||
mv v1.9/ api/ | ||
rsync --recursive api ../documentation/creator/1.9 | ||
|
||
|
||
#rm -rf ../documentation/api-ref/creator/v1.9/ | ||
#mv ../documentation/api-ref/creator/api/ ../documentation/api-ref/creator/v1.9/ | ||
|
||
rm -rf api/ | ||
git stash | ||
|
||
echo "Cocos Creator API - pulling previous version..." | ||
git checkout master | ||
git pull origin master | ||
cp -rf config/cocos2d-x.org/. ./ | ||
echo "Cocos Creator API -- ensuring GitBook is up to date..." | ||
gitbook install | ||
echo "Cocos Creator API -- building GitBook docs...." | ||
gitbook build | ||
echo "Cocos Creator API -- copy everything to deployment directory..." | ||
cp ../cocos2d-x-docs/redirect.html.en _book/index.html | ||
mv _book/ v1.10/ | ||
rsync --recursive v1.10 ../documentation/api-ref/creator | ||
mv v1.10/ api/ | ||
rsync --recursive api ../documentation/creator/1.10 | ||
|
||
|
||
#rm -rf ../documentation/api-ref/creator/v1.9/ | ||
#mv ../documentation/api-ref/creator/api/ ../documentation/api-ref/creator/v1.9/ | ||
|
||
rm -rf api/ | ||
git stash | ||
|
||
echo "Cocos Creator API - pulling current version..." | ||
git checkout v2.0 | ||
git pull origin v2.0 | ||
cp -rf config/cocos2d-x.org/. ./ | ||
echo "Cocos Creator API -- ensuring GitBook is up to date..." | ||
gitbook install | ||
echo "Cocos Creator API -- building GitBook docs...." | ||
gitbook build | ||
echo "Cocos Creator API -- copy everything to deployment directory..." | ||
cp ../cocos2d-x-docs/redirect.html.en _book/index.html | ||
mv _book/ api/ | ||
rsync --recursive api ../documentation/creator/ | ||
mv api/ v2.0/ | ||
rsync --recursive v2.0 ../documentation/api-ref/creator | ||
|
||
#rm -rf ../documentation/api-ref/creator/v1.9/ | ||
#mv ../documentation/api-ref/creator/api/ ../documentation/api-ref/creator/v1.9/ | ||
|
||
rm -rf v2.0/ | ||
git stash | ||
|
||
cd .. | ||
gitbook serve |
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
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
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
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
Oops, something went wrong.