Skip to content

Commit

Permalink
Updated README with doc info
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyk committed Feb 25, 2014
1 parent aea53c7 commit 27a8315
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 21 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ distribute/*

# user's specified config
Makefile.config
docs/_site
36 changes: 19 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Caffe: Convolutional Architecture for Fast Feature Extraction](https://caffe.berkeleyvision.org)

Created by Yangqing Jia, Department of EECS, University of California, Berkeley.
Maintained by the Berkeley Vision and Learning Center (BVLC).
Created by [Yangqing Jia](https://daggerfs.com), UC Berkeley EECS department.
In active development by the Berkeley Vision and Learning Center ([BVLC](https://bvlc.eecs.berkeley.edu/)).

## Introduction

Expand Down Expand Up @@ -48,22 +48,24 @@ Please kindly cite Caffe in your publications if it helps your research:
Howpublished = {\url{https://caffe.berkeleyvision.org/}
}

## Contributing
## Building documentation

Tutorials and general documentation is written in Markdown format in the `docs/` folder.
While the format is quite easy to read directly, you may prefer to view the whole thing as a website.
To do so, simply run `jekyll serve -s docs` and view the documentation website at `https://0.0.0.0:4000` (to get jekyll, you must have ruby and do `gem install jekyll`).

Caffe is developed with the community by the [Berkeley Vision and Learning
Center](https://bvlc.eecs.berkeley.edu/). We welcome contributions!
We strive to provide provide lots of usage examples, and to document all code in docstrings.
We'd appreciate your contribution to this effort!

## Contributing

To join in, please note this policy:
Caffe is developed with active participation of the community by the [Berkeley Vision and Learning Center](https://bvlc.eecs.berkeley.edu/).
We welcome all contributions!

- Do your work in [feature
branches](https://www.atlassian.com/git/workflows#!workflow-feature-branch).
- Bring your work up-to-date by
[rebasing](https://git-scm.com/book/en/Git-Branching-Rebasing) onto the latest
`dev`. Polish your changes by [interactive
rebase](https://help.github.com/articles/interactive-rebase) if you like too.
- [Pull request](https://help.github.com/articles/using-pull-requests) your
contribution to BVLC/caffe's `dev` branch for discussion and review.
- `dev` is for new development, community contributions, and testing.
- `master` is handled by BVLC, which will integrate changes from `dev`.
Our workflow is this:

Expect a more detailed contributing guide soon. Thank you.
- The `dev` branch is for new development, community contributions, and testing.
- The `master` branch is handled by BVLC, which will integrate changes from `dev` on a roughly monthly schedule.
- Do new development in [feature branches](https://www.atlassian.com/git/workflows#!workflow-feature-branch) with decriptive names.
- Bring your work up-to-date by [rebasing](https://git-scm.com/book/en/Git-Branching-Rebasing) onto the latest `dev`. (Polish your changes by [interactive rebase](https://help.github.com/articles/interactive-rebase), if you'd like.)
- [Pull request](https://help.github.com/articles/using-pull-requests) your contribution to BVLC/caffe's `dev` branch for discussion and review.
12 changes: 8 additions & 4 deletions build_and_deploy_docs.sh → scripts/build_and_deploy_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,23 @@ ORIGIN=`git config --get remote.origin.url`
BRANCH=`git rev-parse --abbrev-ref HEAD`
MSG=`git log --oneline -1`

if [ $BRANCH='master' ]; then
if [ $BRANCH = 'master' ]; then
# Make sure that docs/_site tracks remote:gh-pages.
# If not, then we make a new repo and check out just that branch.
mkdir docs/_site
cd docs/_site
SITE_ORIGIN=`git config --get remote.origin.url`
SITE_BRANCH=`git rev-parse --abbrev-ref HEAD`

if [ $SITE_ORIGIN=$ORIGIN ] && [ $SITE_BRANCH='gh-pages' ]; then
echo $SITE_ORIGIN
echo $SITE_BRANCH
echo `pwd`

if [[ ( $SITE_ORIGIN == $ORIGIN ) && ( $SITE_BRANCH = 'gh-pages' ) ]]; then
echo "Confirmed that docs/_site has same origin as main repo, and is on gh-pages."
else
echo "Checking out origin:gh-pages into docs/_site."
git init
echo "Checking out origin:gh-pages into docs/_site (will take a little time)."
git init .
git remote add -t gh-pages -f origin $ORIGIN
git co gh-pages
fi
Expand Down

0 comments on commit 27a8315

Please sign in to comment.