forked from crossbario/autobahn-java
-
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
Alexander Goedde
committed
Aug 10, 2014
1 parent
4bc7de4
commit 211a0f4
Showing
32 changed files
with
318 additions
and
2,259 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
_build | ||
_gen | ||
_upload | ||
_test | ||
_spelling | ||
_static/img/gen | ||
.sconsign.dblite |
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,13 +1,76 @@ | ||
all: | ||
@echo "Targets:" | ||
@echo "" | ||
@echo " clean : cleanup build artifacts" | ||
@echo " test : build everything and run locally" | ||
@echo " test_no_network : build everything for no network access and run locally" | ||
@echo " publish : build everything and publish to S3" | ||
@echo " copy : copy over shared files to other AutobahnXXX repos" | ||
@echo " install_deps : install build dependencies" | ||
@echo " spelling : run spell checking" | ||
@echo " doctest : run doctests" | ||
@echo "" | ||
|
||
build: | ||
scons | ||
|
||
build_no_network: | ||
scons --no_network | ||
|
||
test: build | ||
python serve.py --root ./_build --silence | ||
|
||
test_no_network: build_no_network | ||
python serve.py --root ./_build --silence | ||
|
||
clean: | ||
rm -rf _build | ||
rm -rf _build_uploaded | ||
rm -rf _static/img/gen | ||
rm -rf _test | ||
rm -rf _spelling | ||
|
||
publish: clean build | ||
scons publish | ||
|
||
doctest: | ||
PYTHONPATH=../autobahn sphinx-build -b doctest -v . _test | ||
|
||
copy_makefile: | ||
cp Makefile ../../AutobahnJS/doc/ | ||
cp Makefile ../../AutobahnAndroid/doc/ | ||
cp Makefile ../../AutobahnCpp/doc/ | ||
cp Makefile ../../AutobahnTestsuite/doc/ | ||
|
||
copy_gitignore: | ||
cp .gitignore ../../AutobahnJS/doc/ | ||
cp .gitignore ../../AutobahnAndroid/doc/ | ||
cp .gitignore ../../AutobahnCpp/doc/ | ||
cp .gitignore ../../AutobahnTestsuite/doc/ | ||
|
||
copy_serve: | ||
cp serve.py ../../AutobahnJS/doc/ | ||
cp serve.py ../../AutobahnAndroid/doc/ | ||
cp serve.py ../../AutobahnCpp/doc/ | ||
cp serve.py ../../AutobahnTestsuite/doc/ | ||
|
||
# copy_readme: | ||
# cp README.md ../../AutobahnJS/doc/ | ||
# cp README.md ../../AutobahnAndroid/doc/ | ||
# cp README.md ../../AutobahnCpp/doc/ | ||
# cp README.md ../../AutobahnTestsuite/doc/ | ||
|
||
copy: copy_makefile copy_gitignore copy_serve | ||
|
||
install_deps: | ||
pip install -U scour | ||
pip install -U taschenmesser | ||
#pip install -U scons | ||
pip install -U sphinx | ||
pip install -U sphinx-bootstrap-theme | ||
pip install -U pyenchant | ||
pip install -U sphinxcontrib-spelling | ||
pip install -U repoze.sphinx.autointerface | ||
|
||
spelling: | ||
PYTHONPATH=../autobahn sphinx-build -b spelling . _spelling |
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,61 +1,17 @@ | ||
# Documentation | ||
|
||
The **Autobahn**|Android documentation is generated using [Sphinx](http://sphinx.pocoo.org/) and the generated documentation is hosted [here](http://autobahn.ws/android). | ||
The documentation is generated using [Sphinx](http://sphinx.pocoo.org/) and the generated documentation is hosted [here](http://autobahn.ws/android). | ||
|
||
## Prerequisites | ||
|
||
## Generate | ||
|
||
You will need to have [SCons](http://scons.org/) installed, plus the following | ||
|
||
```sh | ||
pip install taschenmesser | ||
pip install sphinx | ||
pip install sphinx-bootstrap-theme | ||
pip install sphinxcontrib-spelling | ||
pip install repoze.sphinx.autointerface | ||
``` | ||
|
||
To generate the documentation | ||
|
||
```sh | ||
cd doc | ||
scons | ||
``` | ||
|
||
This will create the documentation under the directory `_build`. | ||
|
||
|
||
## Test | ||
|
||
To build the documentation and start a Web server | ||
```sh | ||
scons test | ||
``` | ||
|
||
## Clean | ||
|
||
To clean up all build artifacts | ||
|
||
```sh | ||
scons -uc | ||
``` | ||
|
||
## Publish | ||
|
||
> Note: this section is only relevant for administrators of the [Autobahn web site](http://autobahn.ws/). | ||
Publishing requires a **2 step process**. | ||
|
||
**First** do | ||
You will need to have Python and [SCons](http://www.scons.org/) installed. To install the rest of the build dependencies | ||
|
||
```sh | ||
scons | ||
make install_deps | ||
``` | ||
|
||
to build the docs and **second** do | ||
Then, to get help on available build targets, just type | ||
|
||
```sh | ||
scons publish | ||
make | ||
``` | ||
|
||
to actually publish the docs. |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.